Opened 9 years ago

Closed 9 years ago

#1322 closed bug (fixed (in master))

Crash: o_ptr->kind not initialized when redrawing inventory term

Reported by: myshkin Owned by: myshkin
Milestone: 3.3.0 Keywords: display
Cc:

Description (last modified by takkaria)

Running staging (6149c6e) on Mac OS X 10.6. I believe I was in a store and bought something, when the game crashed. The backtrace is below. o_ptr->kind was null. I have not been able to reproduce this problem yet.

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000104
0x0005a3c6 in easy_know (o_ptr=0x111fd44) at object/identify.c:40
40              if (o_ptr->kind->aware && of_has(o_ptr->kind->flags, OF_EASY_KNOW))
(gdb) bt
#0  0x0005a3c6 in easy_know (o_ptr=0x111fd44) at object/identify.c:40
#1  0x0005a44d in object_is_known (o_ptr=0x111fd44) at object/identify.c:51
#2  0x00062e22 in object_info_out (o_ptr=0x111fd44, mode=OINFO_SUBJ) at object/obj-info.c:1174
#3  0x00063180 in object_info (o_ptr=0x111fd44, mode=OINFO_SUBJ) at object/obj-info.c:1246
#4  0x000721a7 in display_object_recall (o_ptr=0x111fd44) at object/obj-util.c:3652
#5  0x0007224c in display_object_idx_recall (item=16) at object/obj-util.c:3668
#6  0x000cca1e in update_object_subwindow (type=EVENT_OBJECTTARGET, data=0x0, user=0x321314) at xtra3.c:1243
#7  0x00026a76 in game_event_dispatch (type=EVENT_OBJECTTARGET, data=0x0) at game-event.c:43
#8  0x00026c36 in event_signal (type=EVENT_OBJECTTARGET) at game-event.c:114
#9  0x00088989 in redraw_stuff () at player/calcs.c:2329
#10 0x0001a4fb in dungeon (c=0x2c4af4) at dungeon.c:1526
#11 0x0001ac1a in play_game () at dungeon.c:1839
#12 0x000dbc52 in AngbandGame (inCallRef=0xbffff250, inEvent=0x357b00, inUserData=0x0) at main-crb.c:2818
#13 0x94803f2f in DispatchEventToHandlers ()
#14 0x948031f6 in SendEventToEventTargetInternal ()
#15 0x94803055 in SendEventToEventTargetWithOptions ()
#16 0x94837bb0 in ToolboxEventDispatcherHandler ()
#17 0x94804380 in DispatchEventToHandlers ()
#18 0x948031f6 in SendEventToEventTargetInternal ()
#19 0x948259bb in SendEventToEventTarget ()
#20 0x949aecc3 in ToolboxEventDispatcher ()
#21 0x949aedfb in RunApplicationEventLoop ()
#22 0x000de183 in main () at main-crb.c:3989

Change History (5)

comment:1 Changed 9 years ago by myshkin

  • Milestone changed from Triage to 3.3.0

comment:2 Changed 9 years ago by takkaria

  • Description modified (diff)

comment:3 Changed 9 years ago by myshkin

To reproduce: have one of your terms set to object recall, (I)nspect the last item in your inventory, do something that reduces the number of items in your inventory, and then do something that triggers a term refresh. The game will crash with the error above.

comment:4 Changed 9 years ago by myshkin

  • Owner set to myshkin
  • Status changed from new to assigned

Commit 296ffa6 fixes this in master.

comment:5 Changed 9 years ago by magnate

  • Keywords display added
  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.