Skip to content

Initial prompt (-p) crashes #3720

@Misak89

Description

@Misak89

This is just an LLM hypothesis!

Bug: whisper-cli.exe crashes (0xC0000409 STATUS_STACK_BUFFER_OVERRUN) with any non-empty -p (initial prompt)

Platform: Windows 11 Pro (10.0.26100), x64
Binary: whisper-cli.exe (whisper-bin-x64, Release build)
Model: ggml-small.bin

-p (initial prompt) causes STATUS_STACK_BUFFER_OVERRUN crash on Windows — any non-empty value

Behavior:
Passing any non-empty string via -p causes an immediate crash with exit code
3221226505 (0xC0000409 = STATUS_STACK_BUFFER_OVERRUN). stderr is empty.
The crash occurs with pure ASCII prompts as well — it is not limited to
non-ASCII or Unicode input.

Reproducible command:
whisper-cli.exe -m ggml-small.bin -f audio.wav -l cs -p "hello" -oj -np

Hypothesis:
The -p argument is copied into a fixed-size stack buffer without bounds
checking. The Windows /GS stack cookie mechanism detects the overwrite and
terminates the process before any output is written.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions