Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#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 (3)

comment:1 Changed 3 years ago by myshkin

  • Keywords blocker added
  • Milestone changed from Triage to 3.3.0
  • Status changed from new to confirmed

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.

comment:2 Changed 3 years ago by myshkin

  • Status changed from confirmed to pending

CunningGabe? found a further necessary update, merged to staging in fd51c57.

comment:3 Changed 3 years ago by magnate

  • Resolution set to fixed
  • Status changed from pending to closed

[rfd51c57]

Note: See TracTickets for help on using tickets.