jeremy-rifkin / cpptrace

Simple, portable, and self-contained stacktrace library for C++11 and newer
MIT License
621 stars 64 forks source link

Potential issues with module resolution on windows #103

Open jeremy-rifkin opened 5 months ago

jeremy-rifkin commented 5 months ago

In #84 a stack trace was shown which included symbols that didn't make sense. I've had another user mention to me odd symbols in trace output on windows. I have been unable to reproduce such issues, verify the behavior, or investigate whether the problem lies in dbghelp or cpptrace.

I suspect, however, that if there is a problem it may be with how modules are handled in the dbghelp code.

I'll need more information to confirm this issue and resolve it.

jeremy-rifkin commented 5 months ago

It looks like in the other user's case the issue was a leftover PDB from a debug build that became bogus for their release build. So, back to only one case. I will look into a way to check signatures between the pdb and exe, however, to prevent this.