Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0003576Dwarf FortressDwarf Mode -- Invasionspublic2010-11-13 05:422010-11-21 12:52
Langdon 
Toady One 
highcrashalways
resolvedfixed 
IntelWindows XPXP SP3
0.31.17 
0.31.18 
0003576: Fortress mode game crash due to weapon traps
The game crashes shortly after a merchant caravan arrives and starts unloading. The provided save is just after the I have given orders to haul goods to the depot. I suspect there is also a goblin ambush on the map, and it is possible the crash occurs at the point where they unstealth.

I have had one goblin ambush in the previous year (all goblins killed with no dwarven casualties, no goblins caged).

I have tried the following (each on a separate load), and the crash still occurs:

- disbanding the military (two squads, one 4-man squad of melee and 5-man squad of marksdwarves) by removing all dwarves from the squads and disbanding the squads
- setting one or both of the squads to inactive
- reassigning new equipment to all active soldiers

I have not reached magma on this map, and am not melting anything. All smelters are fuel-based.

It is possible that this is related to 0003571 (crash when dwarf injured by wooden spike), if it is crashing when a bowgoblin popping out from ambush hits one of my dwarves (I have several woodcutters out and about on the surface).
Load provided save, wait a few minutes.
31.17, traps
has duplicate 0003588resolved Logical2u "Segmentation fault" when a giant olm walks in weapon trap 
has duplicate 0003604resolved Logical2u ambushes cause game to crash (maybe) 
has duplicate 0003615resolved Toady One Enemy touches stone fall trap, game crashes 
child of 0003554resolved Toady One Game crashes when upright spike traps hit dwarves. 
Issue History
2010-11-13 05:42LangdonNew Issue
2010-11-13 05:43LangdonNote Added: 0013749
2010-11-13 05:58LangdonNote Edited: 0013749bug_revision_view_page.php?bugnote_id=0013749#r5297
2010-11-13 08:54Logical2uSummaryFortress mode game crash => Fortress mode game crash due to weapon traps
2010-11-13 08:55Logical2uRelationship addedchild of 0003554
2010-11-13 10:17VercingetorixNote Added: 0013766
2010-11-13 10:18VercingetorixNote Added: 0013767
2010-11-13 11:17takaratikiNote Added: 0013770
2010-11-13 12:15Logical2uRelationship addedhas duplicate 0003588
2010-11-13 12:15Logical2uNote Added: 0013775
2010-11-13 14:07hackbartIssue Monitored: hackbart
2010-11-13 19:22redditNote Added: 0013794
2010-11-13 22:31LangdonTag Attached: 31.17
2010-11-13 22:31LangdonTag Attached: traps
2010-11-14 05:01Toady OneNote Added: 0013808
2010-11-14 05:01Toady OneStatusnew => resolved
2010-11-14 05:01Toady OneFixed in Version => 0.31.18
2010-11-14 05:01Toady OneResolutionopen => fixed
2010-11-14 05:01Toady OneAssigned To => Toady One
2010-11-14 07:27Logical2uRelationship addedhas duplicate 0003604
2010-11-14 17:29Logical2uRelationship addedhas duplicate 0003615
2010-11-21 12:52hackbartIssue End Monitor: hackbart

Notes
(0013749)
Langdon   
2010-11-13 05:43   
(edited on: 2010-11-13 05:58)
Forgot to mention the save - it is uploaded at http://dffd.wimbli.com/file.php?id=3401 [^]

Edit:

I tried a bunch of stuff to get past the crash point (I wanted to save this fort).
By chance, a kitten exposed the goblin ambush squad before they could reach my gate. I noticed the game crashed just as the lead goblin stepped on a weapon trap (2x serrated steel discs).

Reloaded, and dismantled the weapon traps at the entrance. The game now continued as normal, the goblins appeared by the trade depot, no crash.

I exited using ctrl-alt-del, and reloaded, this time ordering all dwarves back to burrows and stationing melee dwarves by entrance. Again, the game crashes once a goblin hits a weapon trap.

Would it be possible to change the issue title to "Crash on triggering weapon trap"?

(0013766)
Vercingetorix   
2010-11-13 10:17   
I have a recurring crash right now involving a kobold; someone is interrupted by its appearance and then the game crashes. I was fortunate enough to save right before it happens, and it appears to happen every time.

I'll upload it soon.
(0013767)
Vercingetorix   
2010-11-13 10:18   
I'm not sure if weapon traps have anything to do with it, but perhaps the kobold's trap avoid ability plays in to a similar situation as with the goblins; otherwise, it may be a trigger related to the ambush mechanism.
(0013770)
takaratiki   
2010-11-13 11:17   
I'm having a similar issue when racoon's rush into my stone fall traps. First trigger of the trap crashes the game This is on a new fort gen'ed in 31.17. Repeated the crash three times, always when a stone fall trap is triggered. This is on the Linux distribution, Kubuntu 10.10.
(0013775)
Logical2u   
2010-11-13 12:15   
ivze has this linux version save for us: http://ivze.sknt.ru/df_linux_olm_segfault.tar.lzma [^]
(0013794)
reddit   
2010-11-13 19:22   
I can confirm that my .17 save is crashing when weapon traps are triggered. Cage traps are working fine.

When a Goblin ambush steps on my weapon traps with 1x serrated steel discs, the game immediately crashes. If the traps aren't triggered or I remove them, everything runs fine.
(0013808)
Toady One   
2010-11-14 05:01   
The weapon trap crash was coming from the new announcement colors... fixed for 0.31.18.