ollama - 💡(How to fix) Fix "Overrun of a stack-based buffer" error when running Phi4

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

It's been a while since I last used the Phi4 model. But when I tried it today, I got a weird error :

RAW_BUFFERClick to expand / collapse

What is the issue?

Hello, It's been a while since I last used the Phi4 model. But when I tried it today, I got a weird error :

llama-server process has terminated: exit status 0xc0000409: The system detected an overrun of a stack-based buffer in this application. This overrun could potentially allow a malicious user to gain control of this application.

This happens whether I use the command line (Ollama run phi4) or the “/api/chat” endpoint. It seems that this is the only model affected at the moment in my Ollama setup.

The full log is attached to this message.

Thanks for your attention (and your amazing work !)

ollama_phi4.log

Relevant log output

OS

Windows

GPU

Nvidia

CPU

AMD

Ollama version

0.30.7

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING