Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0009888Dwarf FortressDwarf Mode -- Invasionspublic2016-07-05 13:352017-11-22 15:33
mdotterer 
Toady One 
highcrashsometimes
resolvedfixed 
MacOSX10.10.5
0.43.04 
0.44.01 
0009888: Wear-related crash when triggerring a weapon trap
I had my first siege in 0.43.04 and as the first goblin stepped on the first weapon trap the game crashed. The last lines of the gamelog are as follows:

The spinning large, serrated green glass disc misses the goblin axeman!
The goblin axeman jumps away from The spinning large, serrated green glass disc!
The spinning large, serrated green glass disc misses the goblin axeman!
The goblin axeman blocks The spinning large, serrated green glass disc with the ({iron shield})!
The spinning large, serrated green glass disc misses the goblin axeman!
The X*large, serrated green glass disc*X strikes the goblin axeman in the left upper leg, bruising the muscle through the x({giant cave spider silk cloak})x!
The force pulls the left hip, tearing apart the muscle and bruising the bone and tearing apart the muscle and bruising the bone!
A ligament has been torn and a tendon has been torn!
The XX*large, serrated green glass disc*XX strikes the goblin axeman in the head, but the attack is deflected by the goblin axeman's ({Æcopper helmØ})!
The force bends the neck, tearing apart the fat and bruising the muscle and tearing apart the upper spine's nervous tissue!
A tendon in the upper spine has been torn!
Saves:
http://dffd.bay12games.com/file.php?id=12264 [^] (0.43.05, small)
http://dffd.bay12games.com/file.php?id=12278 [^] (0.43.05, small)
http://dffd.bay12games.com/file.php?id=12346 [^] (0.43.05, 0009968)
http://dffd.bay12games.com/file.php?id=12384 [^] (0.43.05, large)
http://dffd.bay12games.com/file.php?id=12434 [^] (0.43.05)
http://dffd.bay12games.com/file.php?id=12463 [^] (0.43.05, 0010021)
http://dffd.bay12games.com/file.php?id=12486 [^] (0.43.05)
http://dffd.bay12games.com/file.php?id=12510 [^] (0.43.05, large)
http://dffd.bay12games.com/file.php?id=12521 [^] (0.43.05, 0010048, small)
http://dffd.bay12games.com/file.php?id=12638 [^] (0.43.05, large)
http://dffd.bay12games.com/file.php?id=12653 [^] (0.43.05, 0010114)
http://dffd.bay12games.com/file.php?id=12688 [^] (0.43.05, 0010125, large)
http://dffd.bay12games.com/file.php?id=12744 [^] (0.43.05, 0010153)
No tags attached.
has duplicate 0009891resolved Loci Crash after trap trigger during seige 
has duplicate 0009904resolved Loci Trap trigger during invasion causes creash 
has duplicate 0009968resolved Loci Game Crashes as enemies from siege run into traps 
has duplicate 0010001resolved Loci Crashes during siege when enemies are pathing into trapped tunnel 
has duplicate 0010009resolved Loci Crash during invasion - segfault, core dump 
has duplicate 0010021resolved Loci Crash when undead travels over weapon trap. 
has duplicate 0010048resolved Loci Undead invader hits a trap and crashes game. 
has duplicate 0010091resolved Loci Goblin invasion crashes on hitting traps 
has duplicate 0010114resolved Loci Crash during invasion 
has duplicate 0010125resolved Loci Game crashes to desktop as soon as a goblin steps on a weapon trap 
has duplicate 0010153resolved lethosor After goblins gets into a maze full of traps, it crashes to deskop. 
has duplicate 0010177resolved lethosor Crash during invasion 
has duplicate 0010265resolved Loci Game crashes when invaders die from traps 
has duplicate 0010308resolved Dwarfu Crash when invader triggers either Weapon trap or Cage trap while using Tileset. 
related to 0010028resolved Toady One Repeatable Crash - Shooting enemy with ballista 
related to 0010067resolved Toady One Game immediately crashes when entering combat with elven caravan. 
Issue History
2016-07-05 13:35mdottererNew Issue
2016-07-13 19:53LociRelationship addedhas duplicate 0009891
2016-07-13 19:53LociRelationship addedhas duplicate 0009904
2016-07-13 19:57LociNote Added: 0035623
2016-07-15 14:27WarlockIssue Monitored: Warlock
2016-07-15 15:00WarlockNote Added: 0035635
2016-07-19 07:58HansBrNote Added: 0035660
2016-07-22 21:01LociNote Added: 0035675
2016-07-22 21:01LociAssigned To => Loci
2016-07-22 21:01LociStatusnew => confirmed
2016-08-13 05:34LociRelationship addedhas duplicate 0009968
2016-08-13 05:35LociNote Added: 0035786
2016-08-26 11:22ChristesNote Added: 0035812
2016-08-26 11:22ChristesIssue Monitored: Christes
2016-08-27 05:40ColedashNote Added: 0035814
2016-08-27 05:40ColedashNote Edited: 0035814bug_revision_view_page.php?bugnote_id=0035814#r14441
2016-08-29 04:54ColedashIssue Monitored: Coledash
2016-09-03 18:19thraxariousNote Added: 0035843
2016-09-03 18:20thraxariousNote Edited: 0035843bug_revision_view_page.php?bugnote_id=0035843#r14451
2016-09-06 17:45ejtttjeNote Added: 0035845
2016-09-06 17:46ejtttjeIssue Monitored: ejtttje
2016-09-09 03:51LociRelationship addedhas duplicate 0010001
2016-09-09 03:51LociIssue Monitored: azrael4h
2016-09-16 21:31LociRelationship addedhas duplicate 0010009
2016-09-27 07:34LociRelationship addedhas duplicate 0010021
2016-09-27 07:35LociNote Added: 0035914
2016-10-03 18:36LociRelationship addedrelated to 0010028
2016-10-06 12:31emodwarfNote Added: 0035951
2016-10-18 18:43sapphonNote Added: 0035983
2016-10-23 07:27LociRelationship addedhas duplicate 0010048
2016-10-23 07:28LociNote Added: 0035992
2016-11-13 07:55rmillet42Note Added: 0036048
2016-11-13 07:56rmillet42Issue Monitored: rmillet42
2016-11-18 21:39mongrelarchitectNote Added: 0036056
2016-11-19 18:56mongrelarchitectNote Deleted: 0036056
2016-12-17 09:25LociRelationship addedhas duplicate 0010091
2017-01-02 05:35MortenNote Added: 0036124
2017-01-02 06:00MortenNote Edited: 0036124bug_revision_view_page.php?bugnote_id=0036124#r14557
2017-01-04 13:05MortenNote Edited: 0036124bug_revision_view_page.php?bugnote_id=0036124#r14558
2017-01-12 14:24LociRelationship addedhas duplicate 0010114
2017-01-12 14:33LociNote Added: 0036167
2017-01-12 14:38LociReproducibilityhave not tried => sometimes
2017-01-12 14:38LociSummaryCrash during invasion when triggerring a trap => Wear-related crash when triggerring a weapon trap
2017-01-15 15:34HuntthetrollIssue Monitored: Huntthetroll
2017-01-27 18:00LociRelationship addedhas duplicate 0010125
2017-01-27 18:00LociIssue Monitored: dglidden
2017-01-27 18:02LociNote Added: 0036228
2017-02-20 08:41lethosorSticky IssueNo => Yes
2017-02-27 11:16lethosorRelationship addedhas duplicate 0010153
2017-02-27 11:17lethosorNote Added: 0036298
2017-02-27 11:17lethosorIssue Monitored: lethosor
2017-02-27 11:24lethosorAdditional Information Updatedbug_revision_view_page.php?rev_id=14637#r14637
2017-03-01 09:42argh226Issue Monitored: argh226
2017-03-28 20:35lethosorRelationship addedhas duplicate 0010177
2017-05-27 15:03Toady OneStatusconfirmed => resolved
2017-05-27 15:03Toady OneFixed in Version => Next Version
2017-05-27 15:03Toady OneResolutionopen => fixed
2017-05-28 08:46lethosorAssigned ToLoci => Toady One
2017-07-10 00:37LociRelationship addedhas duplicate 0010265
2017-11-18 02:59DwarfuRelationship addedhas duplicate 0010308
2017-11-22 15:33DwarfuSticky IssueYes => No
2017-12-04 09:06HuntthetrollIssue End Monitor: Huntthetroll
2018-05-08 18:54LociRelationship addedrelated to 0010067

Notes
(0035623)
Loci   
2016-07-13 19:57   
Please upload a save which consistently crashes to http://dffd.bay12games.com/ [^] for testing and verification.
(0035635)
Warlock   
2016-07-15 15:00   
My game crashed also when a goblin triggered a trap. See: http://dffd.bay12games.com/file.php?id=12264 [^] .Game will crash within 30 seconds. Tested in 0.43.04 and 0.43.05. Platform: Windows 10, Ironhand graphics.
(0035660)
HansBr   
2016-07-19 07:58   
An other example for this bug in Linux, game created in .43.04, replicated in .43.05. this is a save from 43.05

Trolls trigger traps just fine. Sometimes goblins also trigger traps without crash. Until one goblin/trap triggers the crash, not long after this save starts.

http://dffd.bay12games.com/file.php?id=12278 [^]
(0035675)
Loci   
2016-07-22 21:01   
The new weapon-wear code may be destroying a weapon unsafely mid-attack.
(0035786)
Loci   
2016-08-13 05:35   
v0.43.05: thraxarious posted a save in 0009968:

http://dffd.bay12games.com/file.php?id=12346 [^]
(0035812)
Christes   
2016-08-26 11:22   
Here's another save, if it helps:

http://dffd.bay12games.com/file.php?id=12384 [^]

(43.05)
(0035814)
Coledash   
2016-08-27 05:40   
v0.43.05
I killed 2 Forgotten Beasts with same set of 4 upright spear/spike trap, each trap built from 10 menacing spikes made from iron, no crashes. I tried defending from goblin invasion with large serrated disc traps made from glass, but only 1-3 goblins die before a crash happens reliably. When I inspected the traps just before the crash, the weapons started to be worn down. I then built a trap with already worn down weapons and every single goblin that triggered the trap caused a crash reliably.

(0035843)
thraxarious   
2016-09-03 18:19   
(edited on: 2016-09-03 18:20)
The weapon wear is on the traps? Yowch. Might be a problem for some of my trap designs if the weapons cannot be replaced without removing mechanisms. I have a spike pit that is linked to my water cistern, and a repeater. Having to redo 20 rows of 10 spikes each, all linked into a pressure plate connected to floodgates and a kill switch to turn the pit active...

(0035845)
ejtttje   
2016-09-06 17:45   
I'm seeing this as well :(
I've uploaded my save: http://dffd.bay12games.com/file.php?id=12434 [^]
Doesn't always crash on the same troll, but always before 3 or 4 have entered the traps.

If this is related to weapon wear in the trap, can we disable that in a settings file somewhere until the bug is fixed?
(0035914)
Loci   
2016-09-27 07:35   
v0.43.05: BSRowe posted a save in 0010021:

http://dffd.bay12games.com/file.php?id=12463 [^] [^]
(0035951)
emodwarf   
2016-10-06 12:31   
I'm also having this problem.

Windows 7 Pro 64-bit
DF 0.43.05 (Windows SDL 64-bit)
- using same version from world gen to embark to this save
- vanilla; no mods; no external tools

This is an archived save game of a situation where the game will crash once the
invading force during a siege will reach and start triggering the many weapon traps placed in their path:
http://dffd.bay12games.com/file.php?id=12486 [^]
(0035983)
sapphon   
2016-10-18 18:43   
Have encountered what I believe to be this issue as well. Weapon traps with wooden spiked balls (4 per) versus gobbos this time.

Save is here, crashes very soon after load:
http://dffd.bay12games.com/file.php?id=12510 [^]
(0035992)
Loci   
2016-10-23 07:28   
0.43.05: telok posted a save in 0010048:

http://dffd.bay12games.com/file.php?id=12521 [^]
(0036048)
rmillet42   
2016-11-13 07:55   
I think I have the same issue (df 43.05 linux64).

Here are the gamelog printed at the moment of the crash:

The (�iron short sword�) strikes the goblin lasher in the lower body, but the attack is deflected by the goblin lasher's ({�iron breastplate�})!
The goblin lasher bats The spinning (copper battle axe) aside with the ({copper whip})!
The (-copper battle axe-) strikes the goblin lasher in the left lower arm, bruising the fat through the ({pond grabber leather cloak})!
The force pulls the left elbow and the part splits in gore!
A ligament has been torn and a tendon has been torn!
The goblin lasher jumps away from The spinning (�bronze spear�)!
The (+bronze mace+) strikes the goblin lasher in the upper body, bruising the muscle and bruising the right lung through the ({pond grabber leather cloak})!
The goblin lasher is having trouble breathing!
The (steel spear) strikes the goblin lasher in the lower body, but the attack is deflected by the goblin lasher's x({�iron breastplate�})x!
The (steel battle axe) strikes the goblin lasher in the left upper leg and the injured part is smashed into the body, an unrecognizable mass!
An artery has been opened by the attack!
The force bends the left hip, tearing apart the muscle and bruising the bone and tearing apart the muscle and bruising the bone!
A ligament has been torn and a tendon has been torn!
The (menacing iron spike) strikes the goblin lasher in the upper body, bruising the muscle and shattering the left true ribs through the x({pond grabber leather cloak})x!
The x(large, serrated bismuth bronze disc)x strikes the goblin lasher in the left upper arm and the injured part is cloven asunder!
An artery has been opened by the attack!
The force bends the left shoulder, shattering the bone and shattering the bone!
A ligament has been torn and a tendon has been torn!
The XX(large, serrated bismuth bronze disc)XX strikes the goblin lasher in the lower body, but the attack is deflected by the goblin lasher's X({�iron breastplate�})X!


And here is the backtrace I got with gdb:

Thread 3 "Dwarf_Fortress" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fe04d855700 (LWP 4322)]
0x000000000041515c in ?? ()
(gdb) bt
#0 0x000000000041515c in ?? ()
0000001 0x00000000004d53bb in ?? ()
0000002 0x00000000004a7b8c in ?? ()
0000003 0x0000000000492775 in ?? ()
0000004 0x0000000000744b1a in ?? ()
0000005 0x00007fe059fb3322 in interfacest::loop() () from /media/games/df_43_05_linux/libs/libgraphics.so
0000006 0x000000000096624e in mainloop() ()
0000007 0x00007fe059f96f25 in enablerst::async_loop() () from /media/games/df_43_05_linux/libs/libgraphics.so
0000008 0x00007fe059f97240 in call_loop(void*) () from /media/games/df_43_05_linux/libs/libgraphics.so
0000009 0x00007fe05a59f0b8 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
0000010 0x00007fe05a5def59 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
0000011 0x00007fe057fdf70a in start_thread (arg=0x7fe04d855700) at pthread_create.c:333
0000012 0x00007fe05946882d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
(0036124)
Morten   
2017-01-02 05:35   
(edited on: 2017-01-04 13:05)
Another save that reproduces the crash: http://dffd.bay12games.com/file.php?id=12638 [^] This one uses 10 copper serrated discs in each trap.

I agree with one of the above posters that the bug might be related to trap components being worn out, since there isn't always a crash the first time a trap is triggered.

EDIT: Giving goblins the [TRAPAVOID] tag in the raws fixes the crash. As an added benefit, this will cause lots of fun since my fortress' main line of defence is now useless.

(0036167)
Loci   
2017-01-12 14:33   
0.43.05: Lanina posted a save in 0010114:

http://dffd.bay12games.com/file.php?id=12653 [^]
(0036228)
Loci   
2017-01-27 18:02   
0.43.05: dglidden posted a save in 0010125:

http://dffd.bay12games.com/file.php?id=12688 [^]
(0036298)
lethosor   
2017-02-27 11:17   
Save from 0010153: http://dffd.bay12games.com/file.php?id=12744 [^]