Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006368Dwarf FortressDwarf Mode -- Jobs, Farming/Farmer's Workshoppublic2013-08-26 05:322014-08-07 13:46
Assigned ToToady One 
PlatformOSOS Version
Product Version0.34.11 
Target VersionFixed in Version0.40.07 
Summary0006368: Crash if bees die in a hive with yet ungathered products.
DescriptionIf a hive with ungathered products and gather enabled loses its bee vermin item, it will access an unitialized pointer when its gather job check timer fires (once per 1200 frames), which will result in crash unless the value happens to point to valid memory.
Steps To Reproduce1. Build a hive, install colony, wait for products to appear. Enable gather.
2. Set the bees on fire without destroying the hive or products. As an example, I achieved this by spawning a unit of magma with dfhack, and then removing it a few frames later. A similar effect is certainly possible to achieve without any hacks (although it's a lot more difficult), and the bees may also be slowly damaged by slightly out of bounds temperature.
3. Once the bees wear out and are destroyed, the fault will happen within an in-game day.
Additional InformationOriginally discovered in a save with a purportedly dfhack bug: [^]

Investigation of the code at crash site showed however that the cause is missing bee items, and removing the plugin probably just somehow affects the random uninitialized pointer value.
Tagsbinary patch, Save Included
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2013-08-26 05:32 ag New Issue
2013-09-22 17:21 Footkerchief Tag Attached: Save Included
2014-08-07 11:02 lethosor Assigned To => lethosor
2014-08-07 11:02 lethosor Status new => confirmed
2014-08-07 11:15 Kirkegaard Issue Monitored: Kirkegaard
2014-08-07 11:22 Footkerchief Tag Attached: binary patch
2014-08-07 13:32 Toady One Status confirmed => resolved
2014-08-07 13:32 Toady One Fixed in Version => Next Version
2014-08-07 13:32 Toady One Resolution open => fixed
2014-08-07 13:32 Toady One Assigned To lethosor => Toady One
2014-08-07 13:46 Kirkegaard Issue End Monitor: Kirkegaard

Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker