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
Game crashes before first launch #235
Comments
|
Not sure I understand what went wrong. gdb is confusing me. |
|
Autosave that is before it. It often crashes on next turn. |
|
Retry with Valgrind: |
|
I'll take a look at this and see what I can figure out. I tried reproducing the error using the autosave you provided, but it didn't trigger a segmentation fault for me. If you can reliably reproduce the crash I may ask you if you could provide some additional details. Also, while I doubt it has any impact on the crash, I do want to make sure I understood you right - the version you're playing includes the changes you've submitted, correct? |
|
@rnyoakum Correct. I can reproduce it on Fedora 29. It is built from my tag v1_1_0_shared-libs I used to build a package. Found interesting thing. It only crashes in optimized version it seems. Debug build passed just fine. Exact way to crash is not yet known. Used GCC is gcc-8.3.1-2.fc29.x86_64. Happens almost always at the end of turn. |
|
It seems to be it could be something wrong with a compiler or just specific to my CPU. Or just strange thing with compilation? I tried to compile it with Clang. It required one modification, but did not crashed the same way as GCC. Maybe we hit some compiler bug? It seems crashed on place where it should not. Dissassemble in gdb helped a bit. Code generated by clang includes after je nopw and nop instruction. Just in case it might be related to CPU, attaching CPU info. Guessing it might be related to prefetching instructions? |
|
Configured with |
|
It seems to be compiler issue. I worked around this problem by using clang instead of gcc. Works nice with it. Does not fix the issue, but provides optimized version. |
|
Good work, Petr! I just played a game straight through, and it did not crash at the end. Now if we can just figure out how to avoid the game crashing when you go to Astronaut History (#192). |
Just tried the game and tried to remember what game dynamics were. And got crash. Fortunately, ABRT catched it, because I have also unsigned packages checked. So here comes the backtrace:
It comes from recent master with few my changes to linking.
The text was updated successfully, but these errors were encountered: