View Issue Details

IDProjectCategoryView StatusLast Update
0005271Dwarf FortressDwarf Mode -- Embark/Setuppublic2012-10-09 22:13
Reportervinic Assigned ToBaughn  
PriorityurgentSeveritycrashReproducibilityalways
Status assignedResolutionopen 
PlatformLinuxOSUbuntuOS VersionUbuntu 11.04
Product Version0.34.02 
Summary0005271: Segmentation Fault when Embarking in PRINT_MODE:TEXT
DescriptionI 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.
Tagsprint mode text

Relationships

related to 0005127 resolvedBaughn Segmentation fault when exporting map/gen info with PRINT_MODE:TEXT 

Activities

user6

2012-02-19 02:11

  ~0020108

Reminder sent to: Baughn

This might interest you.

Baughn

2012-02-22 14:51

manager   ~0020497

I'm having trouble reproducing this. Can you run it with 'ulimit -c unlimited' and send me the core file?

Baughn

2012-03-08 16:11

manager   ~0021280

May be fixed in .06; please check.

kanobe

2012-10-09 22:13

reporter   ~0023648

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

Add Note

Note

Issue History

Date Modified Username Field Change
2012-02-18 12:58 vinic New Issue
2012-02-18 12:58 vinic Tag Attached: print mode text
2012-02-18 14:26 Logical2u Relationship added related to 0005127
2012-02-19 02:11 user6 Note Added: 0020108
2012-02-22 14:51 Baughn Note Added: 0020497
2012-02-22 15:04 user6 Status new => assigned
2012-02-22 15:04 user6 Assigned To => Baughn
2012-03-08 16:11 Baughn Note Added: 0021280
2012-10-09 22:13 kanobe Note Added: 0023648