forked from unknown-horizons/unknown-horizons
-
Notifications
You must be signed in to change notification settings - Fork 0
Segfaults
ChrisOelmueller edited this page Feb 17, 2013
·
2 revisions
A Segfault (Segmentation Fault) is an error that is very difficult to make out, one usually needs a debugger for that. This is a small howto for debugging segfaults in UH. Join via IRC if you have further questions.
- You will need gdb, your distribution provides a package for that.
- You need a debug build for fife, you can get that by compiling fife with
~/fife/trunk $ scons --enable-debug
in the FIFE directory - Run this in your UH directory to start UH:
~/unknown-horizons $ gdb --args python ./unknown-horizons
- Enter
r
followed by the enter key in the prompt that will appear - Reproduce the crash.
- Enter
bt
(again, followed by enter) in the prompt that will reappear at a segfault. - Paste all output to a pastebin like [this one] (http://bpaste.net/+pytb).
- Send us the resulting link via IRC or forums.
Home > Developers >
Who is who?
Cheatsheets
Tests
FIFE: epydoc, doxygen
What to do: Segfaults
Usability