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

cgraph->work == NULL eventually causes null pointer crash in ggml.c

Open RndyP opened this issue 2 years ago • 0 comments

The eventual crash occurs here: dst_data is NULL because params->wdata is NULL

image

Cause is way up the stack where cgraph->work is zero:

image

My environment is Visual Studio 2022. Crash occurs with optimizations on or disabled. Crash occurs fairly repeatably by simply streaming room noise in whisper. I can debug somewhat with Visual Studio when I turn off optimizations, although I have no idea what exactly the code is doing. Let me know if you have any questions or need help. I am hoping if you look at these sections you will have an epiphany.

RndyP avatar Dec 29 '22 17:12 RndyP