Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0001925Dwarf FortressDwarf Mode -- Interface, Military Screenpublic2010-05-17 12:542010-06-09 06:45
dragoonak 
Toady One 
highcrashalways
closedfixed 
32-bit LinuxUbuntu10.04
0.31.04 
0.31.05 
0001925: Crash when creating a squad - uniform selection, Linux only
Every time I create a squad, the game crashes. No large knives present.
1. Start a fortress.
2. Assign a militia commander.
3. Assign a militia captain.
4. Press c to create a squad
5. Choose a uniform
6. Game crashes
This has been reported by a number of Linux users in the 0.31.04 thread - http://www.bay12forums.com/smf/index.php?topic=57492.45 [^]

Loading bindings from data/init/interface.txt
*** buffer overflow detected ***: ./dwarfort.exe terminated
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x50)[0x227350]
/lib/tls/i686/cmov/libc.so.6(+0xe128a)[0x22628a]
./dwarfort.exe[0x8446944]
[0x1]
======= Memory map: ========
00110000-00134000 r-xp 00000000 08:01 1839437 /lib/tls/i686/cmov/libm-2.11.1.so
[blablabla]

Entire trace available at
http://dl.dropbox.com/u/163071/dwarf.crash [^]

Core file available at
http://dl.dropbox.com/u/163071/dwarf.core.7z [^]
No tags attached.
has duplicate 0001948closed Footkerchief Crash when trying to create squad 
has duplicate 0002002closed Footkerchief Game crashes when making a squad 
has duplicate 0002050closed Logical2u Creating a new squad crashes the military screen 
has duplicate 0002053closed Footkerchief Game crashes when trying to create a squad 
has duplicate 0002058closed Footkerchief Game crashes when trying to form squads 
has duplicate 0002087closed Footkerchief Crashes when I attempt to create a squad. 
has duplicate 0002202closed Logical2u crash when specifying uniform when creating a squad from military screen 
Issue History
2010-05-17 12:54dragoonakNew Issue
2010-05-17 13:05snaipperiNote Added: 0006894
2010-05-17 13:14dragoonakNote Added: 0006895
2010-05-17 14:21snus-mumrikNote Added: 0006899
2010-05-17 14:22snus-mumrikNote Edited: 0006899bug_revision_view_page.php?bugnote_id=0006899#r2586
2010-05-17 18:39trousermonkey1Issue Monitored: trousermonkey1
2010-05-17 18:57calcipherNote Added: 0006911
2010-05-17 19:01Logical2uNote Added: 0006912
2010-05-17 19:01Logical2uSummaryCrash when creating a squad => Crash when creating a squad - uniform selection
2010-05-17 19:01Logical2uSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=2592#r2592
2010-05-17 23:00caranhaIssue Monitored: caranha
2010-05-17 23:52dragoonakIssue Monitored: dragoonak
2010-05-18 11:55FootkerchiefRelationship addedhas duplicate 0001948
2010-05-19 10:17kaosdrachenNote Added: 0007018
2010-05-19 10:30FootkerchiefNote Added: 0007019
2010-05-19 13:29RiceMunkNote Added: 0007022
2010-05-19 14:40damonhawkinsIssue Monitored: damonhawkins
2010-05-20 20:56FootkerchiefRelationship addedhas duplicate 0002002
2010-05-21 20:31KloxIssue Monitored: Klox
2010-05-22 06:28ridcullyNote Added: 0007176
2010-05-22 06:52stooNote Added: 0007177
2010-05-23 09:51binderIssue Monitored: binder
2010-05-23 19:18Logical2uRelationship addedhas duplicate 0002050
2010-05-24 00:12FootkerchiefRelationship addedhas duplicate 0002053
2010-05-25 21:14FootkerchiefRelationship addedhas duplicate 0002058
2010-05-25 21:14FootkerchiefIssue Monitored: Darkwind
2010-05-26 06:58kaosdrachenIssue Monitored: kaosdrachen
2010-05-27 04:40kaosdrachenNote Added: 0007376
2010-05-28 02:43FootkerchiefRelationship addedhas duplicate 0002087
2010-05-28 12:17steinarhIssue Monitored: steinarh
2010-05-28 14:36LeperousNote Added: 0007439
2010-05-29 02:33LeperousNote Edited: 0007439bug_revision_view_page.php?bugnote_id=0007439#r2780
2010-05-29 02:36LeperousNote Edited: 0007439bug_revision_view_page.php?bugnote_id=0007439#r2781
2010-05-31 18:32burlingkNote Added: 0007520
2010-06-02 08:24CelNote Added: 0007573
2010-06-02 09:03FootkerchiefNote Edited: 0007573bug_revision_view_page.php?bugnote_id=0007573#r2809
2010-06-02 21:51Taranli MarenIssue Monitored: Taranli Maren
2010-06-03 01:29FootkerchiefSummaryCrash when creating a squad - uniform selection => Crash when creating a squad - uniform selection, Linux only
2010-06-03 02:39OmniwoofNote Added: 0007592
2010-06-03 04:07LetharionNote Added: 0007595
2010-06-03 06:16ethanbIssue Monitored: ethanb
2010-06-03 08:50CelIssue Monitored: Cel
2010-06-03 09:07FootkerchiefNote Added: 0007608
2010-06-03 09:07FootkerchiefNote Edited: 0007608bug_revision_view_page.php?bugnote_id=0007608#r2822
2010-06-03 13:15FootkerchiefSticky IssueNo => Yes
2010-06-03 16:50KoFishIssue Monitored: KoFish
2010-06-04 10:08FootkerchiefTag Attached: Fixed in 31.05?
2010-06-04 10:15FootkerchiefStatusnew => assigned
2010-06-04 10:15FootkerchiefAssigned To => Toady One
2010-06-04 10:15FootkerchiefStatusassigned => resolved
2010-06-04 10:15FootkerchiefFixed in Version => 0.31.05
2010-06-04 10:15FootkerchiefResolutionopen => fixed
2010-06-04 10:24CelIssue End Monitor: Cel
2010-06-04 10:37FootkerchiefTag Detached: Fixed in 31.05?
2010-06-04 11:06KloxIssue End Monitor: Klox
2010-06-05 06:09shimgrayIssue Monitored: shimgray
2010-06-05 06:10shimgrayIssue End Monitor: shimgray
2010-06-06 09:37FootkerchiefSticky IssueYes => No
2010-06-07 07:31Logical2uRelationship addedhas duplicate 0002202
2010-06-09 06:45Toady OneStatusresolved => closed

Notes
(0006894)
snaipperi   
2010-05-17 13:05   
Mine crashed after choosing the uniform while creating a new squad. Same error.

*** buffer overflow detected ***: ./dwarfort.exe terminated
======= Backtrace: =========
/opt/lib32/lib/libc.so.6(__fortify_fail+0x50)[0xf7129790]
/opt/lib32/lib/libc.so.6(+0xe375a)[0xf712775a]
./dwarfort.exe[0x8446944]
[0x1]
(0006895)
dragoonak   
2010-05-17 13:14   
Yeah, I forgot 4.5 - Choose a uniform.
(0006899)
snus-mumrik   
2010-05-17 14:21   
(edited on: 2010-05-17 14:22)
Same: crash on choosing uniform ("metal" in my case). Under 64bit Linux (Gentoo).

(0006911)
calcipher   
2010-05-17 18:57   
I'd like to confirm this, I can't chose any of the uniforms. Ubuntux64
(0006912)
Logical2u   
2010-05-17 19:01   
I added your "note 4.5" and modified the title to reflect the common thread.
It seems like this issue might be linux specific. Since I haven't had time to migrate my saves to 31.04 yet, I can't confirm or deny that thought at this time.
(0007018)
kaosdrachen   
2010-05-19 10:17   
It crashed for me the moment I hit (c)reate squad.

Crash report and safe at http://tenchi.systemec.nl/~shadur/DF/ [^]
(0007019)
Footkerchief   
2010-05-19 10:30   
All indications are that it's Linux-specific, yeah.
(0007022)
RiceMunk   
2010-05-19 13:29   
Confirming as well in Ubuntu Linux. Got the buffer overflow thing when choosing a metal armor for my squad during creation.
(0007176)
ridcully   
2010-05-22 06:28   
Same on gentoo
(0007177)
stoo   
2010-05-22 06:52   
Getting buffer overflow for any uniform on my Ubuntu systems - seems to work fine if I copy the save to a windows version and run through wine. Can even pull the save back over and keep playing after the squads are set up.
(0007376)
kaosdrachen   
2010-05-27 04:40   
Not sure how relevant this is but here goes: If you create several squads in the windows version, then save and load the save into the linux version, you can manipulate the individual squads as much as you like. It's just creating a new squad that trips the crash.
(0007439)
Leperous   
2010-05-28 14:36   
(edited on: 2010-05-29 02:36)
This is happening for me even on fresh embarks, and makes this version practically unplayable.

Seems to be a bug that's hit other programs relatively often, e.g.:
https://bugs.launchpad.net/ubuntu/+source/isomaster/+bug/500151 [^]
http://ubuntuforums.org/showthread.php?t=978025 [^]

(0007520)
burlingk   
2010-05-31 18:32   
Ubuntu x64, Any option causes crash.

I will have to give the workaround suggested by kaosdrachen a try. The speed/FPS is much better under Linux than under windows. Windows drags.
(0007573)
Cel   
2010-06-02 08:24   
(edited on: 2010-06-02 09:03)
Crash! can't choose uniform

http://pastebin.com/Sc0LUsZf [^]

(0007592)
Omniwoof   
2010-06-03 02:39   
Just confirming bug on Ubuntu 32 bit 10.4 LTS.

Occurs when any uniform option is chosen during squad creation.
(0007595)
Letharion   
2010-06-03 04:07   
Same problem, upon choosing any of the four uniforms I get an immediate crash.
Gentoo, amd64.

I'm not sure exactly how it is appropriate to attach this, so I do it in plain-text. Depening on an external site (pastebin) seems like a bad idea.
#0 0xb7fe1424 in __kernel_vsyscall ()
0000001 0xb78b56e0 in raise () from /lib/libc.so.6
0000002 0xb78b6f15 in abort () from /lib/libc.so.6
0000003 0xb78f1175 in ?? () from /lib/libc.so.6
0000004 0x0000000b in ?? ()
0000005 0xb4b8db98 in ?? ()
0000006 0x00000400 in ?? ()
0000007 0xb78f1f75 in _IO_file_seek () from /lib/libc.so.6
0000008 0xb79721b8 in __fortify_fail () from /lib/libc.so.6
0000009 0xb7970200 in __chk_fail () from /lib/libc.so.6
0000010 0x08446944 in ?? ()
0000011 0xb7b4ead6 in interfacest::loop() () from /home/letharion/Downloads/df_linux/libs/libgraphics.so
0000012 0x083c81ff in mainloop() ()
0000013 0xb7b3054e in enablerst::async_loop() () from /home/letharion/Downloads/df_linux/libs/libgraphics.so
0000014 0xb7b3084d in call_loop(void*) () from /home/letharion/Downloads/df_linux/libs/libgraphics.so
0000015 0xb7f72d9c in SDL_RunThread (data=0x959ae60) at ./src/thread/SDL_thread.c:202
0000016 0xb7fab404 in RunThread (data=0x959ae60) at ./src/thread/pthread/SDL_systhread.c:47
0000017 0xb787842f in start_thread () from /lib/libpthread.so.0
0000018 0xb795bb9e in clone () from /lib/libc.so.6
(0007608)
Footkerchief   
2010-06-03 09:07   
Crash logs aren't needed for this bug. This crash is 100% reproducible so they don't really help.