View Issue Details

IDProjectCategoryView StatusLast Update
0006368Dwarf FortressDwarf Mode -- Jobs, Farming/Farmer's Workshoppublic2014-08-07 13:46
Reporterag Assigned ToToady One  
PrioritynormalSeveritycrashReproducibilityrandom
Status resolvedResolutionfixed 
Product Version0.34.11 
Fixed 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:

http://www.bay12forums.com/smf/index.php?topic=91166.msg4438141#msg4438141

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

Activities

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 user6 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:22 user6 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