View Issue Details

IDProjectCategoryView StatusLast Update
0001925Dwarf FortressDwarf Mode -- Interface, Military Screenpublic2010-06-09 06:45
Reporterdragoonak Assigned ToToady One  
PriorityhighSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Platform32-bit LinuxOSUbuntuOS Version10.04
Product Version0.31.04 
Fixed in Version0.31.05 
Summary0001925: Crash when creating a squad - uniform selection, Linux only
DescriptionEvery time I create a squad, the game crashes. No large knives present.
Steps To Reproduce1. 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
Additional InformationThis 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
TagsNo tags attached.

Relationships

has duplicate 0001948 closeduser6 Crash when trying to create squad 
has duplicate 0002002 closeduser6 Game crashes when making a squad 
has duplicate 0002050 closedLogical2u Creating a new squad crashes the military screen 
has duplicate 0002053 closeduser6 Game crashes when trying to create a squad 
has duplicate 0002058 closeduser6 Game crashes when trying to form squads 
has duplicate 0002087 closeduser6 Crashes when I attempt to create a squad. 
has duplicate 0002202 closedLogical2u crash when specifying uniform when creating a squad from military screen 

Activities

snaipperi

2010-05-17 13:05

reporter   ~0006894

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]

dragoonak

2010-05-17 13:14

reporter   ~0006895

Yeah, I forgot 4.5 - Choose a uniform.

snus-mumrik

2010-05-17 14:21

reporter   ~0006899

Last edited: 2010-05-17 14:22

Same: crash on choosing uniform ("metal" in my case). Under 64bit Linux (Gentoo).

calcipher

2010-05-17 18:57

reporter   ~0006911

I'd like to confirm this, I can't chose any of the uniforms. Ubuntux64

Logical2u

2010-05-17 19:01

manager   ~0006912

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.

kaosdrachen

2010-05-19 10:17

reporter   ~0007018

It crashed for me the moment I hit (c)reate squad.

Crash report and safe at http://tenchi.systemec.nl/~shadur/DF/

user6

2010-05-19 10:30

  ~0007019

All indications are that it's Linux-specific, yeah.

RiceMunk

2010-05-19 13:29

reporter   ~0007022

Confirming as well in Ubuntu Linux. Got the buffer overflow thing when choosing a metal armor for my squad during creation.

ridcully

2010-05-22 06:28

reporter   ~0007176

Same on gentoo

stoo

2010-05-22 06:52

reporter   ~0007177

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.

kaosdrachen

2010-05-27 04:40

reporter   ~0007376

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.

Leperous

2010-05-28 14:36

reporter   ~0007439

Last edited: 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

burlingk

2010-05-31 18:32

reporter   ~0007520

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.

Cel

2010-06-02 08:24

reporter   ~0007573

Last edited: 2010-06-02 09:03

Crash! can't choose uniform

http://pastebin.com/Sc0LUsZf

Omniwoof

2010-06-03 02:39

reporter   ~0007592

Just confirming bug on Ubuntu 32 bit 10.4 LTS.

Occurs when any uniform option is chosen during squad creation.

Letharion

2010-06-03 04:07

reporter   ~0007595

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

user6

2010-06-03 09:07

  ~0007608

Last edited: 2010-06-03 09:07

Crash logs aren't needed for this bug. This crash is 100% reproducible so they don't really help.

Issue History

Date Modified Username Field Change
2010-05-17 12:54 dragoonak New Issue
2010-05-17 13:05 snaipperi Note Added: 0006894
2010-05-17 13:14 dragoonak Note Added: 0006895
2010-05-17 14:21 snus-mumrik Note Added: 0006899
2010-05-17 14:22 snus-mumrik Note Edited: 0006899
2010-05-17 18:57 calcipher Note Added: 0006911
2010-05-17 19:01 Logical2u Note Added: 0006912
2010-05-17 19:01 Logical2u Summary Crash when creating a squad => Crash when creating a squad - uniform selection
2010-05-17 19:01 Logical2u Steps to Reproduce Updated
2010-05-18 11:55 user6 Relationship added has duplicate 0001948
2010-05-19 10:17 kaosdrachen Note Added: 0007018
2010-05-19 10:30 user6 Note Added: 0007019
2010-05-19 13:29 RiceMunk Note Added: 0007022
2010-05-20 20:56 user6 Relationship added has duplicate 0002002
2010-05-22 06:28 ridcully Note Added: 0007176
2010-05-22 06:52 stoo Note Added: 0007177
2010-05-23 19:18 Logical2u Relationship added has duplicate 0002050
2010-05-24 00:12 user6 Relationship added has duplicate 0002053
2010-05-25 21:14 user6 Relationship added has duplicate 0002058
2010-05-27 04:40 kaosdrachen Note Added: 0007376
2010-05-28 02:43 user6 Relationship added has duplicate 0002087
2010-05-28 14:36 Leperous Note Added: 0007439
2010-05-29 02:33 Leperous Note Edited: 0007439
2010-05-29 02:36 Leperous Note Edited: 0007439
2010-05-31 18:32 burlingk Note Added: 0007520
2010-06-02 08:24 Cel Note Added: 0007573
2010-06-02 09:03 user6 Note Edited: 0007573
2010-06-03 01:29 user6 Summary Crash when creating a squad - uniform selection => Crash when creating a squad - uniform selection, Linux only
2010-06-03 02:39 Omniwoof Note Added: 0007592
2010-06-03 04:07 Letharion Note Added: 0007595
2010-06-03 09:07 user6 Note Added: 0007608
2010-06-03 09:07 user6 Note Edited: 0007608
2010-06-03 13:15 user6 Sticky Issue No => Yes
2010-06-04 10:08 user6 Tag Attached: Fixed in 31.05?
2010-06-04 10:15 user6 Status new => assigned
2010-06-04 10:15 user6 Assigned To => Toady One
2010-06-04 10:15 user6 Status assigned => resolved
2010-06-04 10:15 user6 Fixed in Version => 0.31.05
2010-06-04 10:15 user6 Resolution open => fixed
2010-06-04 10:37 user6 Tag Detached: Fixed in 31.05?
2010-06-06 09:37 user6 Sticky Issue Yes => No
2010-06-07 07:31 Logical2u Relationship added has duplicate 0002202
2010-06-09 06:45 Toady One Status resolved => closed