Ticket #1486 (closed bug: fixed (in master))
Crash happening upon monster death
| Reported by: | chance2 | Owned by: | |
|---|---|---|---|
| Milestone: | 3.3.0 | Keywords: | blocker |
| Cc: |
Description
Currently being discussed in forum thread http://angband.oook.cz/forum/showthread.php?t=4607. Crash occasionally happens when landing the killing blow on a monster, presumably as a result of its item drops. If you run the game from the command line (or redirect stderr to capture it in a file), you can see the error text, which is: "angband: object/identify.c:132: object_flavor_is_aware: Assertion `o_ptr->kind' failed." By putting in some debugging code, I managed to figure out that the routine that was calling object_flavor_is_aware before the crash was squelch_item_ok. Further debugging code to go one step further out showed that squelch_item_ok was being called by map_info to trigger this bug.
Change History
comment:1 Changed 2 years ago by myshkin
- Keywords blocker added
- Status changed from new to confirmed
- Milestone changed from Triage to 3.3.0
comment:2 Changed 2 years ago by myshkin
- Status changed from confirmed to pending
CunningGabe? found a further necessary update, merged to staging in fd51c57.

Commit 9fcd10b in staging fixes at least part of this bug. compact_monsters_aux() was moving items around without updating mimics' mimicked_o_idx member. I'm not sure whether there are other ways to get this crash, but I can no longer produce it through summoning mimics and forcing compacting.