-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
phantasmagoria-demo fails in release builds #2
Comments
I wrote the offending code, but you're in the wrong repository :-D I'll fix it in https://github.com/mheyer32/scummvm-amigaos3 I introduced isReleaseBuild to short-circuit some runtime checks I thought were not needed. But I guess some of them are... |
I'm curious how you found this bug. I'm always struggling debugging scummvm, even with bgdbserver... |
Your repo has issues disabled... ^^ |
it's all done via bisection. You need a working version, build it and
and a bad version. Build that too and
depending of the current state, copy good files to fix it or bad files to kill it and run
once you hunted down a single file, compare the asm of these versions, try building a bad and a good file with as less option differences as possible. and then the fun starts: why does it go wrong in gcc... debug gcc... FIX IT. YEAH!!! |
in seq_manager.cpp:
offending code:
if you'd add an else with some warning, you'll note that it attempts to use several invalid offsets for
SEG_TYPE_SCRIPT
.if
isReleaseBuild
is set to true (via-DNDEBUG
) it simply crashes.=> keep that sanity check even if
isReleaseBuild
is set to true:The text was updated successfully, but these errors were encountered: