Opened 9 years ago

Closed 9 years ago

#1206 closed bug (invalid)

Game crashes whenever an unrecognized character is entered

Reported by: ycombinator Owned by:
Milestone: Triage Keywords:
Cc:

Description

Trunk (commit d54cb24a) build on Linux/amd64.

Whenever a character is entered which is not recognized as a valid command, game crashes immediately with SIGSEGV because of NULL reference in textui_process_key function. See the stack trace.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f7d5b2d4750 (LWP 20883)]
0x000000000040edb7 in textui_process_key (c=79 'O') at cmd0.c:731
731		if (key_confirm_command(c) &&
(gdb) bt
#0  0x000000000040edb7 in textui_process_key (c=79 'O') at cmd0.c:731
#1  0x000000000040ef84 in textui_process_command (no_request=false)
    at cmd0.c:793
#2  0x00000000004b7e60 in textui_get_cmd (context=CMD_GAME, wait=true)
    at xtra3.c:1800
#3  0x00000000004c0e6e in default_get_cmd (context=CMD_GAME, wait=true)
    at main.c:230
#4  0x0000000000425fb7 in cmd_get (c=CMD_GAME, cmd=0x7fff99819a90, wait=true)
    at game-cmd.c:175
#5  0x00000000004266b4 in process_command (ctx=CMD_GAME, no_request=false)
    at game-cmd.c:323
#6  0x000000000041acc6 in process_player () at dungeon.c:1088
#7  0x000000000041b5e9 in dungeon () at dungeon.c:1510
#8  0x000000000041bc10 in play_game () at dungeon.c:1835
#9  0x00000000004c12b7 in main (argc=1, argv=0x7fff99819c98) at main.c:465

Change History (1)

comment:1 Changed 9 years ago by ycombinator

  • Resolution set to invalid
  • Status changed from new to closed

Sorry, I was following the wrong branch. Everything is ok in master.

Note: See TracTickets for help on using tickets.