View Single Post
Old December 16, 2010, 22:51   #26
PowerDiver
Prophet
 
Join Date: Mar 2008
Posts: 2,712
PowerDiver is on a distinguished road
Quote:
Originally Posted by takkaria View Post
Could you compile it with CFLAGS+=-g, run it in gdb and paste the backtrace?
I should have mentioned I got the code with git clone as per rephial.

Code:
Reading symbols from /home/eddie/Angband/nightlies/angband/angband...done.
(gdb) run
Starting program: /home/eddie/Angband/nightlies/angband/angband 
angband: game-cmd.c:270: cmd_set_arg_choice: Assertion `game_cmds[idx].arg_type[n] & arg_CHOICE' failed.

Program received signal SIGABRT, Aborted.
0x0012d422 in __kernel_vsyscall ()
(gdb) trace
Tracepoint 1 at 0x12d422
(gdb) backtrace
#0  0x0012d422 in __kernel_vsyscall ()
#1  0x002ad651 in raise () from /lib/tls/i686/cmov/libc.so.6
#2  0x002b0a82 in abort () from /lib/tls/i686/cmov/libc.so.6
#3  0x002a6718 in __assert_fail () from /lib/tls/i686/cmov/libc.so.6
#4  0x08065ddb in cmd_set_arg_choice (cmd=0x8117444, n=0, choice=1) at game-cmd.c:270
#5  0x080ca6ad in get_birth_command (wait=true) at ui-birth.c:841
#6  0x08065393 in cmd_get (c=CMD_BIRTH, cmd=0xbffff0f8, wait=6) at game-cmd.c:234
#7  0x0804dd87 in player_birth (quickstart_allowed=false) at birth.c:1075
#8  0x0805d5f0 in play_game () at dungeon.c:1746
#9  0x080e558f in main (argc=1, argv=0xbffff4b4) at main.c:468
(gdb)
PowerDiver is offline   Reply With Quote