Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0005271Dwarf FortressDwarf Mode -- Embark/Setuppublic2012-02-18 12:582012-10-09 22:13
vinic 
Baughn 
urgentcrashalways
assignedopen 
LinuxUbuntuUbuntu 11.04
0.34.02 
 
0005271: Segmentation Fault when Embarking in PRINT_MODE:TEXT
I play DF in text mode on my VPS. 0.31.25 worked without issue.

I can get into Adventure Mode without a problem, but no matter where I embark, I get a Segmentation Fault as soon as you initiate a proper embark from the setup screen.
print mode text
related to 0005127resolved Baughn Segmentation fault when exporting map/gen info with PRINT_MODE:TEXT 
Issue History
2012-02-18 12:58vinicNew Issue
2012-02-18 12:58vinicTag Attached: print mode text
2012-02-18 14:26Logical2uRelationship addedrelated to 0005127
2012-02-19 02:11FootkerchiefIssue Monitored: Baughn
2012-02-19 02:11FootkerchiefNote Added: 0020108
2012-02-22 14:51BaughnNote Added: 0020497
2012-02-22 15:04FootkerchiefStatusnew => assigned
2012-02-22 15:04FootkerchiefAssigned To => Baughn
2012-03-08 16:11BaughnNote Added: 0021280
2012-10-09 22:09kanobeIssue Monitored: kanobe
2012-10-09 22:13kanobeNote Added: 0023648

Notes
(0020108)
Footkerchief   
2012-02-19 02:11   
Reminder sent to: Baughn

This might interest you.
(0020497)
Baughn   
2012-02-22 14:51   
I'm having trouble reproducing this. Can you run it with 'ulimit -c unlimited' and send me the core file?
(0021280)
Baughn   
2012-03-08 16:11   
May be fixed in .06; please check.
(0023648)
kanobe   
2012-10-09 22:13   
I have experienced the same issue on Debian linux in version 0.34.11. The steps I followed are as follows:

1. Start the game. The game's maximum width and height in characters was small.
2. Once the opening animations finished I would resize my terminal,
and DF would resize to a larger size.
3. Choose "Start Playing", Choose "Dwarf Fortress"
4. Select starting location
5. Choose embark and "Play Now!"
6. Game would core

I have a core file that I can make available (I don't seem to be able to upload to issues opened by other users). Here is the backtrace:

Program terminated with signal 11, Segmentation fault.
#0 0x2065726a in ?? ()
(gdb) bt
#0 0x2065726a in ?? ()
0000001 0xb708e710 in ssignal () from /lib/i686/cmov/libc.so.6
0000002 0xb76e9eaa in ?? () from /usr/lib/libSDL-1.2.so.0
0000003 <signal handler called>
0000004 0xb70d6dc7 in strcat () from /lib/i686/cmov/libc.so.6
0000005 0x088254b6 in ?? ()
0000006 0x08825aa3 in ?? ()
0000007 0x20657265 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

I also have found a workaround which will help pinpoint the issue. What seems to work is to not resize the terminal at all in step 2. Once the normal game screen appears with the wagon and dwarves, resizing the terminal works. I think on embark the game was assuming the terminal was still the smaller size or something. The core is occurring somewhere below strcat(): 0000004 0xb70d6dc7 in strcat() from /lib/i686/cmov/libc.so.6