Skip to content

Eval bug: Crash with filesystem error when run while in a directory containing files with certain names #11198

@ScarletEmerald

Description

@ScarletEmerald

Name and Version

version: 4462 (c05e8c9)
built with cc (Debian 12.2.0-14) 12.2.0 for x86_64-linux-gnu

Operating systems

Linux

GGML backends

CPU

Hardware

N/A

Models

N/A

Problem description & steps to reproduce

Running llama-cli or llama-server while the current directory contains a file with certain characters in the file name causes a crash with the filesystem error shown below.

Here is an example of a character that will cause the crash when present in a file name

First Bad Commit

commit 60cfa72

Relevant log output

terminate called after throwing an instance of 'std::filesystem::__cxx11::filesystem_error'
  what():  filesystem error: Cannot convert character sequence: Invalid or incomplete multibyte or wide character
Aborted

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions