cppyy icon indicating copy to clipboard operation
cppyy copied to clipboard

No stack trace: cannot find (functions in) dbghelp.dll

Open alexandrumc opened this issue 4 years ago • 2 comments

Hi,

I'm trying to make sil-cling work on Windows, but whenever there's an error I get No stack trace: cannot find (functions in) dbghelp.dll!, so I'm not able to see the stack trace. I've googled this error message and it seems that it comes from here, but I've checked and I have both dbghelp.dll and imagehlp.dll in PATH.

Any ideas what could go wrong?

alexandrumc avatar Sep 14 '21 07:09 alexandrumc

Seems to me that the only way it can fail if the libraries are available in PATH, if there is a 32b/64b mismatch? (Given that the names are explicit 64.) Either way, I've never seen this error before.

Note, however, that I've never had any luck with the stack traces on Windows to begin with and haven't spent the time to figure out why. (Upstream claims they do work for them, so I probably should.) Instead, I've been very happy with WinDbg: https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/debugger-download-tools (Yes, it's only a preview for now, but it's been solid for me.)

wlav avatar Sep 14 '21 17:09 wlav

So you were right about 32b/64b mismatch: my dbghelp.dll was 32b. I added a 64b dbghelp.dll to PATH but I get the same error. It is probably because of imagehlp.dll, of which I have only 32 bit versions on my machine, so I have to find a 64 bit one. Will also try the debugger you suggested. Thanks.

alexandrumc avatar Sep 15 '21 14:09 alexandrumc