View Issue Details

IDProjectCategoryView StatusLast Update
0003555Dwarf FortressMiscellaneous Crashespublic2011-03-24 10:10
Reporterkasdaye Assigned ToToady One  
PrioritynormalSeveritycrashReproducibilitysometimes
Status resolvedResolutionfixed 
PlatformPC - LinuxOSKubuntu 10.04OS Version2.6.32-25
Product Version0.31.17 
Fixed in Version0.31.22 
Summary0003555: Escaping units with kill orders on them cause segmentation fault on Linux/Mac
DescriptionWhen a kobold thief is spotted and runs for a map edge, if a kill order is placed on the kobold thief the game segmentation faults when the kobold thief leaves the map. I reproduced this three times with 31.17, but was unable to reproduce it with 31.16
Steps To Reproduce1. Create world, embark, begin regular play.
2. Wait until a kobold thief is spotted and it runs for the map edge.
3. Select a military squad and set kill order on thief. (You may want to give the thief a lead depending on your military)
4. If the thief reaches the map edge and 'escapes' the game segmentation faults.
Tagscrash

Relationships

related to 0000114 resolvedToady One Kill orders not cleared after completion 
has duplicate 0003591 resolvedLogical2u segfaults when pulling a lever with repeat (dangerroom) and when an enemy is on a kill order but leaves the map. 
has duplicate 0003661 resolveduser6 Crashes after thieves steal something 
has duplicate 0003606 resolvedLogical2u Game crashes when kobold thieves leave map 
has duplicate 0003679 resolvedLogical2u Game Crashes upon entering combat 
has duplicate 0003695 resolvedLogical2u Game crash when NPC leaves edge of map while pursued by military. 
has duplicate 0003702 resolvedLogical2u Crash when squad's target exits map 
has duplicate 0003726 resolvedLogical2u Program segfault when dwarf chases kobold thief off screen. 
has duplicate 0003729 resolveduser6 Turning dwarves into squads crashed the game 
has duplicate 0003735 resolvedLogical2u When the military is commanded to "kill" a kobold theif, the game crashes when the kobold makes it off the map. 
has duplicate 0003760 resolvedLogical2u Game crashes when kobold thief shows up 
has duplicate 0003464 resolveduser6 Crashed while playing Dwarf Fortress mode 
has duplicate 0003608 resolveduser6 Bus error crash during goblin ambush 
has duplicate 0003785 resolveduser6 DF crashes almost every half season, with "700 Bus error" in the terminal 
has duplicate 0003813 resolvedLogical2u Game crashes when military is dispatched to attack 
has duplicate 0003840 resolvedLogical2u Crash when target creature (target of militia squad) escapes play area 
has duplicate 0003847 resolveduser6 Crash after ordering attack 
has duplicate 0003864 resolveduser11 A crash while using the Squad Screen to order a squad to pursue a kobold thief 
has duplicate 0003933 resolveduser11 Game will crash when having a military squad target a creature and the creature walks off edge of map 
has duplicate 0004158 resolveduser6 Game crashes when hostile enemies fleeing the map. 
has duplicate 0004194 resolveduser11 Clean crash to desktop whenever a goblin flees the screen 
has duplicate 0004199 resolveduser11 df crashed after ambush left the map 
has duplicate 0004240 resolveduser6 "Segmentation fault" when military dwarf's target goes off map. 

Activities

Toady One

2010-11-15 02:20

administrator   ~0013856

I can't reproduce this. If there's a save where it is about to happen or such a save could be created and uploaded to the DF File Depot or wherever, that would likely help a lot.

Levitator

2010-11-18 10:09

reporter   ~0013977

Last edited: 2010-11-18 10:12

Toady, I have a save where this happens reliably with a squad of Goblin ambushers. In this save, the goblin is about to leave the top edge, but it also happened when I drove them off to the left, from which they arrived.

31.18 on Ubuntu 32 10.04

http://dffd.wimbli.com/file.php?id=3437

This is my first fortress, don't judge me.

greycat

2010-11-18 13:08

reporter   ~0013982

Last edited: 2010-11-18 13:11

Just happened to me in .18, on Debian 5.0 i386. It left a core file but the backtrace was pretty useless-looking:

(gdb) bt
#0 0x0886a9c0 in ?? ()
#1 0x08a5ac55 in ?? ()
#2 0x00000041 in ?? ()
#3 0x0000000b in ?? ()
#4 0x00ffffff in ?? ()
#5 0x00000011 in ?? ()
#6 0x00000000 in ?? ()

I deleted the core file at that point, since it was 700 MB.

Specifically, my dwarves were chasing the kobold thief, got distracted by a second one, killed him, then ALMOST caught up to the first one before he escaped off the top of the map.

user6

2010-11-18 13:18

  ~0013986

Reminder sent to: Toady One

Hey Toady -- as requested, a save was posted for this one. This report and all of the (probable) duplicates are using Linux, so it might not show up in Windows.

DrunkenMonk

2010-11-19 08:41

reporter   ~0014020

This has been happening to me with kobold ambushers, near the edge of the map, always with kill orders on them. I've seen nothing but kobolds and forgotten beasts so I haven't been able to test if other unit types trigger the crash.

I'm on df_linux .18, ubuntu 10.10 32 bit.

deekoo

2010-11-19 23:11

reporter   ~0014041

Another savefile demonstrating the crash (with replication instructions) is at http://dffd.wimbli.com/file.php?id=3449

lattenwald

2010-11-21 08:12

reporter   ~0014090

http://dffd.wimbli.com/file.php?id=3458
In this savegame kobold is ready to leave map. As soon as he is out the game crashes.

Tested on Gentoo, 0.31.18

schedal

2010-11-22 22:06

reporter   ~0014155

Last edited: 2010-11-22 22:07

Same issue with v0.31.17
mac osx 10.6.4

If my military set kill order on a kobold, when he leaves the map, game crashes hard:
2010-11-22 21:55:19.662 dwarfort.exe[15379:5303] *** __NSAutoreleaseNoPool(): Object 0x2faa35b0 of class NSCFArray autoreleased with no pool in place - just leaking
2010-11-22 21:55:19.662 dwarfort.exe[15379:5303] *** __NSAutoreleaseNoPool(): Object 0x1e00f50 of class NSCFNumber autoreleased with no pool in place - just leaking
2010-11-22 21:55:19.663 dwarfort.exe[15379:5303] *** __NSAutoreleaseNoPool(): Object 0x1d04f350 of class NSCFDictionary autoreleased with no pool in place - just leaking
2010-11-22 21:55:19.663 dwarfort.exe[15379:5303] *** __NSAutoreleaseNoPool(): Object 0x1a63300 of class NSCFString autoreleased with no pool in place - just leaking
2010-11-22 21:55:19.664 dwarfort.exe[15379:5303] *** __NSAutoreleaseNoPool(): Object 0x1e00540 of class NSCFNumber autoreleased with no pool in place - just leaking
2010-11-22 21:55:19.665 dwarfort.exe[15379:5303] *** __NSAutoreleaseNoPool(): Object 0x1a23a60 of class NSCFDictionary autoreleased with no pool in place - just leaking
2010-11-22 21:55:19.666 dwarfort.exe[15379:5303] *** __NSAutoreleaseNoPool(): Object 0x2fa8e450 of class NSCFArray autoreleased with no pool in place - just leaking
2010-11-22 21:55:19.667 dwarfort.exe[15379:5303] *** __NSAutoreleaseNoPool(): Object 0x1a621a0 of class SDL_QuartzWindow autoreleased with no pool in place - just leaking
/Applications/df_osx/df: line 5: 15379 Bus error ./dwarfort.exe
logout

Can provide save file if it is of interest. As a work around, I guess I shouldn't try and kill thieves? :/

Draupnir

2010-11-25 03:35

reporter   ~0014204

Same issue with 0.3.18
If another save is needed or any further information I can post.

Silvanus

2010-11-27 12:41

reporter   ~0014247

Happened also with a Rhesus macaque (or whatever the name) who stole stuff.

ethanb

2010-11-27 21:21

reporter   ~0014269

Just happened to me when I set my kill order from list on a migrating crundle, so it has nothing to do with ITEM_THIEF.

Meekohi

2010-11-27 22:38

reporter   ~0014272

I just experienced the same behavior, but with a goblin on Mac:

2010-11-28 01:33:02.570 dwarfort.exe[11066:4e03] *** _NSAutoreleaseNoPool(): Object 0x1a9a360 of class NSCFArray autoreleased with no pool in place - just leaking
Stack: (0x944abf4f 0x943b8432 0x906c3937 0x907289e2 0x9072898c 0x907988f0 0x90784c14 0x9078405c 0x90798809 0x907da1ad 0x17a31ca 0x17a3d27 0x1797af5 0x179cef5 0x179cfb2 0x179cb5f 0x9322e2bb 0xffffffff)
2010-11-28 01:33:02.571 dwarfort.exe[11066:4e03] *** _NSAutoreleaseNoPool(): Object 0x1af9630 of class NSCFString autoreleased with no pool in place - just leaking
Stack: (0x944abf4f 0x943b8432 0x906be607 0x97db138a 0x97d403cd 0x97d4074d 0x943c07db 0x906bc331 0x90728a67 0x9072898c 0x907988f0 0x90784c14 0x9078405c 0x90798809 0x907da1ad 0x17a31ca 0x17a3d27 0x1797af5 0x179cef5 0x179cfb2 0x179cb5f 0x9322e2bb 0xffffffff)
2010-11-28 01:33:02.572 dwarfort.exe[11066:4e03] *** _NSAutoreleaseNoPool(): Object 0x1a0eb50 of class NSCFNumber autoreleased with no pool in place - just leaking
Stack: (0x944abf4f 0x943b8432 0x906bc3e6 0x90728a67 0x9072898c 0x907988f0 0x90784c14 0x9078405c 0x90798809 0x907da1ad 0x17a31ca 0x17a3d27 0x1797af5 0x179cef5 0x179cfb2 0x179cb5f 0x9322e2bb 0xffffffff)
2010-11-28 01:33:02.572 dwarfort.exe[11066:4e03] *** _NSAutoreleaseNoPool(): Object 0x1a3ddf0 of class NSCFDictionary autoreleased with no pool in place - just leaking
Stack: (0x944abf4f 0x943b8432 0x97e261be 0x906bc40e 0x90728a67 0x9072898c 0x907988f0 0x90784c14 0x9078405c 0x90798809 0x907da1ad 0x17a31ca 0x17a3d27 0x1797af5 0x179cef5 0x179cfb2 0x179cb5f 0x9322e2bb 0xffffffff)
2010-11-28 01:33:02.573 dwarfort.exe[11066:4e03] *** _NSAutoreleaseNoPool(): Object 0x1a0d950 of class NSCFNumber autoreleased with no pool in place - just leaking
Stack: (0x944abf4f 0x943b8432 0x906bc3e6 0x90728ac4 0x9072898c 0x907988f0 0x90784c14 0x9078405c 0x90798809 0x907da1ad 0x17a31ca 0x17a3d27 0x1797af5 0x179cef5 0x179cfb2 0x179cb5f 0x9322e2bb 0xffffffff)
2010-11-28 01:33:02.573 dwarfort.exe[11066:4e03] *** _NSAutoreleaseNoPool(): Object 0x21d6e9e0 of class NSCFDictionary autoreleased with no pool in place - just leaking
Stack: (0x944abf4f 0x943b8432 0x97e261be 0x906bc40e 0x90728ac4 0x9072898c 0x907988f0 0x90784c14 0x9078405c 0x90798809 0x907da1ad 0x17a31ca 0x17a3d27 0x1797af5 0x179cef5 0x179cfb2 0x179cb5f 0x9322e2bb 0xffffffff)
2010-11-28 01:33:02.573 dwarfort.exe[11066:4e03] *** _NSAutoreleaseNoPool(): Object 0x1d36f520 of class NSCFArray autoreleased with no pool in place - just leaking
Stack: (0x944abf4f 0x943b8432 0x90728fb4 0x90728d1a 0x907988f0 0x90784c14 0x9078405c 0x90798809 0x907da1ad 0x17a31ca 0x17a3d27 0x1797af5 0x179cef5 0x179cfb2 0x179cb5f 0x9322e2bb 0xffffffff)
2010-11-28 01:33:02.574 dwarfort.exe[11066:4e03] *** _NSAutoreleaseNoPool(): Object 0x21de0670 of class NSCFArray autoreleased with no pool in place - just leaking
Stack: (0x944abf4f 0x943b8432 0x906c3937 0x90728e33 0x907988f0 0x90784c14 0x9078405c 0x90798809 0x907da1ad 0x17a31ca 0x17a3d27 0x1797af5 0x179cef5 0x179cfb2 0x179cb5f 0x9322e2bb 0xffffffff)
2010-11-28 01:33:02.575 dwarfort.exe[11066:4e03] *** _NSAutoreleaseNoPool(): Object 0x21dc1cd0 of class NSCFArray autoreleased with no pool in place - just leaking
Stack: (0x944abf4f 0x943b8432 0x97e1ebf5 0x943ff0fb 0x9072bb8b 0x90784ca1 0x9078405c 0x90798809 0x907da1ad 0x17a31ca 0x17a3d27 0x1797af5 0x179cef5 0x179cfb2 0x179cb5f 0x9322e2bb 0xffffffff)
2010-11-28 01:33:02.575 dwarfort.exe[11066:4e03] *** _NSAutoreleaseNoPool(): Object 0x1af3a70 of class SDL_QuartzWindow autoreleased with no pool in place - just leaking
Stack: (0x944abf4f 0x943b8432 0x907da210 0x17a31ca 0x17a3d27 0x1797af5 0x179cef5 0x179cfb2 0x179cb5f 0x9322e2bb 0xffffffff)
./df: line 5: 11066 Bus error ./dwarfort.exe

thgndrd

2010-12-02 14:52

reporter   ~0014376

same issue
also with a kobold thief, just when the thief is able to run out of the map border
http://dl.dropbox.com/u/3080927/region1.7z
happens about 10-20 minutes in game (forgot to save to a closer time)

dai-rasa

2010-12-05 13:49

reporter   ~0014416

I just ran in to this issue as well, after driving off a raiding party.
Running 0.31.18 on Ubuntu 10.10 Natively.

The save is right at the point several goblins, both raiders and thief's and think even some snatchers try to run off from my 'army'.

http://dffd.wimbli.com/file.php?id=3527

Thankfully, I'd auto-save on seasonal so it could not have picked a better spot.

dglidden

2010-12-21 07:42

reporter   ~0014667

I'm getting the same with 31.18 on mac with the same "no pool in place - just leaking" errors and segfault. I've had kill orders on some groundhogs and various other animals, so as mentioned, it's not just on goblin/kobold thieves, but any old thing that runs off the map while there is a kill order on it.

Puersenexa

2010-12-22 06:46

reporter   ~0014678

I get the same issue on Mac - kill target running off map causes no pool in place - just leaking crash. I'm still new, so not sure how to set up autosave, I just keep making new fortresses lol

burlingk

2010-12-23 06:49

reporter   ~0014683

I am getting this as well.

31.8 under Linux.

I just let a kobold run off the screen, and got a segfault.

However, second time through, I took the kill order off before he left the screen, and no crash. It only happens if the kill order is in place when they leave.

In 31.16 the unit would just be left "unable to fulfill order" until you noticed it and canceled the kill order manually. Now it crashes.

tracyam

2010-12-27 15:15

reporter   ~0014727

Same or similar problem with 31.18 under Ubuntu 10.10 x64. Mine seems to segfault any time a kill order is assigned if the target tries to run, they don't have to make it to the map edge, just far enough for my militia to give up.

FlyingBishop

2011-01-04 09:59

reporter   ~0014783

Same as tracyam, though it segfaulted the instant I gave the kill order.

nickajeglin

2011-01-07 19:52

reporter   ~0014827

Just had this happen on 31.18 in Ubuntu 10.10. Segfault immediately as the kobold left the map. No "no pool in place" errors.

hyperactiveChipmunk

2011-01-10 12:25

reporter   ~0014840

"No pool in place" is a Mac thing, referring to the NSAutoreleasePool object used for managing memory allocations. It doesn't specifically have any relevance to this bug; the messages are likely just a side effect of all the other badness going on.

Xadism

2011-01-12 16:22

reporter   ~0014851

Fast/easy reproduction: http://dffd.wimbli.com/file.php?id=3687

This is a fortress saved a few steps before an attack-designated kobold exits the map. After unpause, it will crash within a few seconds on a Mac. (But runs fine on Windows).

royal_shadow

2011-01-26 18:43

reporter   ~0014941

Yeah, playing on a mac, at least I am not the first to find it, makes me feel better. Has happened every time I send someone to chase down the beastie and it runs away like brave, brave Sir Robin.

ricree

2011-02-20 11:26

reporter   ~0015332

The issue is definitely present on 0.31.19 running Ubuntu 10.04.

Seems to be any creature that flees from contact. Gremlins, in particular, are a unit I've experienced it against.

Infiltrator

2011-02-24 10:28

reporter   ~0015454

Last edited: 2011-02-24 10:29

Speculation: I would say that the reason this crash happens on Linux and not windoze is because the Linux kernel (also used by mac osx) is a lot more strict with segfaults than windoze, but the actual underlying problem is the same.

Toady, I'm guessing that when a unit leaves the map, you delete/free* the object, but the squad still references it, and tries to get something (perhaps its name) from it, and so it segfaults.

Just a guess, but hope it helps you in the correct direction.


Windows users: what do you see when you have a squad targeting a unit that leaves the map? What do you see in your squad screen? Does it still say "kill x"?



* What programming language are you using, anyway?

user6

2011-02-24 12:06

  ~0015459

DF is programmed in C++.

Meekohi

2011-03-01 13:29

reporter   ~0015632

Let's get this fixed.

carlthuringer

2011-03-03 18:30

reporter   ~0015723

Just had the crash on Ubuntu. DF v0.31.19. Noticed a goblin survived an ambush and issued a kill order for all my squads. As soon as the gobbo left the map the game window disappeared. Terminal message "Segmentation fault".

AbuDhabi

2011-03-07 13:30

reporter   ~0015923

Happens in 0.31.21: http://dffd.wimbli.com/file.php?id=3920

In this save, there's a kill order on a goblin thief. When he escapes, the game crashes. I have managed to reproduce this reliably.

TeachingJoy

2011-03-11 14:19

reporter   ~0016127

So how are players adapting? Do we just have to be careful about kill orders for a while until a bug fix in an upcoming update, or is there something we can mod now so there's no segfault?

(I'm sorry if this is obvious, but my geekery is in 17th century lit instead of programming.)

Granite26

2011-03-11 14:30

reporter   ~0016128

I would imagine canceling the order when the kobold gets close to the edge would do it. Or just use move orders.

Infiltrator

2011-03-11 18:48

reporter   ~0016131

Yeah; until this bug is fixed I just don't issue kill orders on anything near the edge and savescum just before combat in case I get a crash and have to revert to a save a season ago. :P

bombcar

2011-03-12 18:19

reporter   ~0016180

I am using move orders at this time; however, since I haven't gotten my military to a point where they can kill a butterfly it doesn't make much difference.

Issue History

Date Modified Username Field Change
2010-11-12 03:19 kasdaye New Issue
2010-11-12 10:08 kasdaye Tag Attached: crash
2010-11-13 16:03 Logical2u Relationship added has duplicate 0003591
2010-11-15 02:20 Toady One Note Added: 0013856
2010-11-15 02:20 Toady One Assigned To => Toady One
2010-11-15 02:20 Toady One Status new => acknowledged
2010-11-18 10:09 Levitator Note Added: 0013977
2010-11-18 10:12 Levitator Note Edited: 0013977
2010-11-18 13:08 greycat Note Added: 0013982
2010-11-18 13:11 user6 Note Edited: 0013982
2010-11-18 13:13 user6 Relationship added has duplicate 0003661
2010-11-18 13:14 user6 Relationship added has duplicate 0003606
2010-11-18 13:18 user6 Note Added: 0013986
2010-11-18 13:18 user6 Note View State: 0013986: private
2010-11-19 08:41 DrunkenMonk Note Added: 0014020
2010-11-19 20:28 Logical2u Relationship added has duplicate 0003679
2010-11-19 23:11 deekoo Note Added: 0014041
2010-11-20 17:06 Logical2u Relationship added has duplicate 0003695
2010-11-21 07:55 Logical2u Relationship added has duplicate 0003702
2010-11-21 08:12 lattenwald Note Added: 0014090
2010-11-21 09:07 Logical2u Relationship added related to 0000114
2010-11-22 22:06 schedal Note Added: 0014155
2010-11-22 22:07 schedal Note Edited: 0014155
2010-11-24 23:11 Logical2u Relationship added has duplicate 0003726
2010-11-25 03:35 Draupnir Note Added: 0014204
2010-11-26 07:30 user6 Relationship added has duplicate 0003729
2010-11-26 14:24 Logical2u Relationship added has duplicate 0003735
2010-11-27 12:41 Silvanus Note Added: 0014247
2010-11-27 21:21 ethanb Note Added: 0014269
2010-11-27 22:38 Meekohi Note Added: 0014272
2010-11-30 15:33 Logical2u Relationship added has duplicate 0003760
2010-12-01 08:39 user6 Sticky Issue No => Yes
2010-12-01 08:39 user6 Relationship added has duplicate 0003464
2010-12-01 08:40 user6 Relationship added has duplicate 0003608
2010-12-02 14:52 thgndrd Note Added: 0014376
2010-12-05 13:49 dai-rasa Note Added: 0014416
2010-12-07 19:38 user6 Relationship added has duplicate 0003785
2010-12-11 10:06 user6 Summary Escaping kobold thief (w/ kill order on it) causes seg fault => Escaping kobold thief (w/ kill order on it) causes seg fault on Linux/Mac
2010-12-16 00:12 Logical2u Relationship added has duplicate 0003813
2010-12-16 00:13 Logical2u Summary Escaping kobold thief (w/ kill order on it) causes seg fault on Linux/Mac => Escaping units with kill orders on them cause seg fault on Linux/Mac
2010-12-21 07:42 dglidden Note Added: 0014667
2010-12-22 06:46 Puersenexa Note Added: 0014678
2010-12-23 06:49 burlingk Note Added: 0014683
2010-12-24 15:41 Logical2u Relationship added has duplicate 0003840
2010-12-27 15:15 tracyam Note Added: 0014727
2010-12-28 08:39 user6 Relationship added has duplicate 0003847
2011-01-04 09:59 FlyingBishop Note Added: 0014783
2011-01-06 00:24 user11 Relationship added has duplicate 0003864
2011-01-07 19:52 nickajeglin Note Added: 0014827
2011-01-10 12:25 hyperactiveChipmunk Note Added: 0014840
2011-01-12 16:22 Xadism Note Added: 0014851
2011-01-26 18:43 royal_shadow Note Added: 0014941
2011-02-05 16:38 user11 Relationship added has duplicate 0003933
2011-02-20 11:26 ricree Note Added: 0015332
2011-02-24 10:28 Infiltrator Note Added: 0015454
2011-02-24 10:29 Infiltrator Note Edited: 0015454
2011-02-24 12:06 user6 Note Added: 0015459
2011-03-01 13:29 Meekohi Note Added: 0015632
2011-03-03 18:30 carlthuringer Note Added: 0015723
2011-03-07 12:51 user6 Relationship added has duplicate 0004158
2011-03-07 13:30 AbuDhabi Note Added: 0015923
2011-03-11 09:03 user11 Relationship added has duplicate 0004194
2011-03-11 14:19 TeachingJoy Note Added: 0016127
2011-03-11 14:30 Granite26 Note Added: 0016128
2011-03-11 18:48 Infiltrator Note Added: 0016131
2011-03-12 05:42 user11 Relationship added has duplicate 0004199
2011-03-12 18:19 bombcar Note Added: 0016180
2011-03-13 18:39 user6 Note View State: 0013986: public
2011-03-16 13:28 user6 Relationship added has duplicate 0004240
2011-03-16 13:29 user6 Summary Escaping units with kill orders on them cause seg fault on Linux/Mac => Escaping units with kill orders on them cause segmentation fault on Linux/Mac
2011-03-19 17:52 Toady One Status acknowledged => resolved
2011-03-19 17:52 Toady One Fixed in Version => 0.31.22
2011-03-19 17:52 Toady One Resolution open => fixed
2011-03-22 22:50 user6 Sticky Issue Yes => No