Ticket #391 (closed bug: fixed)

Opened 1 year ago

Last modified 1 year ago

crash in message_add

Reported by: peter.wiersig@gmail.com Assigned to:
Milestone: 3.1.0 Keywords:
Cc:

Description (Last modified by takkaria)

I hit a software bug earlier this day and recompiled svn r560 with debug information.

message_add (str=0x7fff8116b000 "The Large yellow snake crushes you.", type=41) at z-msg.c:113
113                     messages->tail = m->prev;
(gdb) bt
#0  message_add (str=0x7fff8116b000 "The Large yellow snake crushes you.", type=41) at z-msg.c:113
#1  0x0000000000473bb3 in msg_print_aux (type=41, msg=0x7fff8116b000 "The Large yellow snake crushes you.") at util.c:1451
#2  0x0000000000473cca in message_format (message_type=14595, extra=-20445, fmt=<value optimized out>) at util.c:1585
#3  0x0000000000444dc0 in make_attack_normal (m_idx=43) at melee1.c:443
#4  0x000000000044aeb7 in process_monsters (minimum_energy=100 'd') at melee2.c:3776
#5  0x000000000042a94a in play_game () at dungeon.c:1661
#6  0x0000000000480cd1 in main (argc=3, argv=0x7fff8116c2f0) at main.c:466
(gdb) p *messages
$3 = {head = 0x7f38b0, tail = 0x0, colors = 0x79b260, count = 2049, max = 2048}

I read a "Summon monster" scroll on my last turn.

Attachments

Change History

09/15/07 18:30:50 changed by peter.wiersig@gmail.com

(gdb) bt
#0  message_add (str=0x7fff8116b000 "The Large yellow snake crushes you.", type=41) at z-msg.c:113
#1  0x0000000000473bb3 in msg_print_aux (type=41, msg=0x7fff8116b000 "The Large yellow snake crushes you.")
    at util.c:1451
#2  0x0000000000473cca in message_format (message_type=14595, extra=-20445, fmt=<value optimized out>)
    at util.c:1585
#3  0x0000000000444dc0 in make_attack_normal (m_idx=43) at melee1.c:443
#4  0x000000000044aeb7 in process_monsters (minimum_energy=100 'd') at melee2.c:3776
#5  0x000000000042a94a in play_game () at dungeon.c:1661
#6  0x0000000000480cd1 in main (argc=3, argv=0x7fff8116c2f0) at main.c:466
(gdb) p *messages
$3 = {head = 0x7f38b0, tail = 0x0, colors = 0x79b260, count = 2049, max = 2048}

09/16/07 13:21:58 changed by anonymous

You should consider compiling the daily builds in debug by default. I hit a crash today too, but I'm not if I can provide useful info without symbols

09/21/07 10:20:49 changed by takkaria

  • description changed.

09/21/07 10:38:46 changed by takkaria

Testcases would have covered this, but since I dont have time to produce those right now, there should be a fix in r574.

09/21/07 10:38:50 changed by takkaria

  • status changed from new to closed.
  • resolution set to fixed.

Add/Change #391 (crash in message_add)




Action