I have just observed what seems to be a bug after causing a massive cave-in. I dropped a 60x40x4 section of terrain down through 7 mined-out z-levels, moving the 60x40x4 section from z-levels 138-141 to z-levels 131-134. Before the collapse, z-levels 131-137 (which had been mined out but had their floors intact) were covered with rocks as a result of the mining. I expected all of these rocks to be trapped and destroyed beneath the falling terrain. Instead, the rocks on z-levels 131-134 were destroyed, and the rocks on 135-137 remained intact. Here's a diagram:
Before:
141: ######## Terrain (red sand)
140: ######## Terrain (clay loam)
139: ######## Terrain (obsidian)
138: ######## Terrain (obsidian)
137: _o_o__oo__ Rocks (on floor)
136: #oo__ooo_# Rocks (on floor)
135: #_oooo_oo# Rocks (on floor)
134: #o_o__oo_# Rocks (on floor)
133: #oo__ooo_# Rocks (on floor)
132: #_oooo_oo# Rocks (on floor)
131: #o_o__oo_# Rocks (on floor)
130: ########## Terrain (granite)
Expected result:
141: Empty space
140: Empty space
139: Empty space
138: Empty space
137: _ _ Empty space
136: # # Empty space
135: # # Empty space
134: ########## Terrain (clay loam)
133: ########## Terrain (clay loam)
132: ########## Terrain (granite)
131: ########## Terrain (granite)
130: ########## Terrain (granite)
(The dropped terrain changes type due to official bug 001097: [cave-ins] soil/stone dropped in a cave-in changes to the soil/stone type of its destination Z level, while maintaining its overall type)
Actual result:
141: Empty space
140: Empty space
139: Empty space
138: Empty space
137: _o o oo _ Rocks (suspended in mid-air)
136: #oo ooo # Rocks (suspended in mid-air)
135: # oooo oo# Rocks (suspended in mid-air)
134: ########## Terrain (clay loam)
133: ########## Terrain (clay loam)
132: ########## Terrain (granite)
131: ########## Terrain (granite)
130: ########## Terrain (granite)
This shows the result immediately after the 'section of the cavern has collapsed' message, before unpausing the game. After loo(k)ing through the dust clouds, it seems that the remaining rocks are in the exact same positions as before the collapse. Since the floors on z-levels 135-137 were destroyed in the cave-in, the rocks fall down to land on z-level 135 as soon as the game is unpaused.
I have uploaded the save file showing this bug to
http://dffd.wimbli.com/file.php?id=1333. The game was saved just before a dwarf pulls the lever to destroy a support and trigger the cave-in. The cave-in happens exactly 16 frames after loading the saved game.