Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0006368Dwarf FortressDwarf Mode -- Jobs, Farming/Farmer's Workshoppublic2013-08-26 05:322014-08-07 13:46
Toady One 
0006368: Crash if bees die in a hive with yet ungathered products.
If 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.
1. 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.
Originally 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.
binary patch, Save Included
Issue History
2013-08-26 05:32agNew Issue
2013-09-22 17:21FootkerchiefTag Attached: Save Included
2014-08-07 11:02lethosorAssigned To => lethosor
2014-08-07 11:02lethosorStatusnew => confirmed
2014-08-07 11:15KirkegaardIssue Monitored: Kirkegaard
2014-08-07 11:22FootkerchiefTag Attached: binary patch
2014-08-07 13:32Toady OneStatusconfirmed => resolved
2014-08-07 13:32Toady OneFixed in Version => Next Version
2014-08-07 13:32Toady OneResolutionopen => fixed
2014-08-07 13:32Toady OneAssigned Tolethosor => Toady One
2014-08-07 13:46KirkegaardIssue End Monitor: Kirkegaard

There are no notes attached to this issue.