llama.cpp icon indicating copy to clipboard operation
llama.cpp copied to clipboard

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

Open ScarletEmerald opened this issue 1 month ago • 4 comments

Name and Version

version: 4462 (c05e8c99) 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

ScarletEmerald avatar Jan 11 '25 21:01 ScarletEmerald