project-navigation
Personal tools

Author Topic: Crahs on alien turn  (Read 4748 times)

Offline badbunny

  • Rookie
  • ***
  • Posts: 15
    • View Profile
Crahs on alien turn
« on: October 26, 2009, 08:11:48 pm »
The game crashes every time I end my turn. ufoconsole.log ends with nothing spectacular:
Code: [Select]
-------------------------------------
Connecting to localhost...
 is trying to connect... (loopback connection)
load material file: 'materials/tropic.mat'
music change to van_mission2 (from karlmacklin_geoscape)
Starting the game...
user has joined team 0
(player 0) It's team 1's round
user has taken control over team 1.
music change to ufo2 (from van_mission2)

I ran the game from console, and it exited with:
Code: [Select]
-------------------------------------
Connecting to localhost...
 is trying to connect... (loopback connection)
load material file: 'materials/tropic.mat'
music change to van_mission2 (from karlmacklin_geoscape)
Starting the game...
user has joined team 0
(player 0) It's team 1's round
user has taken control over team 1.
music change to ufo2 (from van_mission2)
./ufo(Sys_Backtrace+0x1f)[0x81989b6]
./ufo[0x8198a16]
[0xb806e400]
./ufo(SV_ExecuteClientMessage+0x151)[0x816cdc4]
./ufo(SV_ReadPacket+0x60)[0x8167fb0]
./ufo(NET_Wait+0x29c)[0x8151663]
./ufo(Qcommon_Frame+0x11c)[0x81466e5]
./ufo(main+0x66)[0x8197719]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb78a9775]
./ufo[0x806a9f1]
./ufo(Sys_Backtrace+0x1f)[0x81989b6]
./ufo(Sys_Error+0x22)[0x8197b30]
./ufo(Sys_InitSignals+0x0)[0x8198a29]
[0xb806e400]
./ufo(SV_ExecuteClientMessage+0x151)[0x816cdc4]
./ufo(SV_ReadPacket+0x60)[0x8167fb0]
./ufo(NET_Wait+0x29c)[0x8151663]
./ufo(Qcommon_Frame+0x11c)[0x81466e5]
./ufo(main+0x66)[0x8197719]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb78a9775]
./ufo[0x806a9f1]
Error: Received signal 11.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Crahs on alien turn
« Reply #1 on: October 26, 2009, 08:24:08 pm »
please convert the stacktrace with addr2line into line numbers.

Offline badbunny

  • Rookie
  • ***
  • Posts: 15
    • View Profile
Re: Crahs on alien turn
« Reply #2 on: October 26, 2009, 08:46:40 pm »
Hopefully this is what you meant: (linenumbers in parentheses)
Code: [Select]
-------------------------------------
Connecting to localhost...
 is trying to connect... (loopback connection)
load material file: 'materials/tropic.mat'
music change to van_mission2 (from karlmacklin_geoscape)
Starting the game...
user has joined team 0
(player 0) It's team 1's round
user has taken control over team 1.
music change to ufo2 (from van_mission2)
./ufo(Sys_Backtrace+0x1f)[0x81989b6] (unix_main.c:487)
./ufo[0x8198a16] (unix_main.c:513)
[0xb806e400] (??:0)
./ufo(SV_ExecuteClientMessage+0x151)[0x816cdc4] (sv_user.c:352)
./ufo(SV_ReadPacket+0x60)[0x8167fb0] (sv_main.c:449)
./ufo(NET_Wait+0x29c)[0x8151663] (net.c:457)
./ufo(Qcommon_Frame+0x11c)[0x81466e5] (common.c:1156)
./ufo(main+0x66)[0x8197719] (linux_main.c:53)
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb78a9775] (??:0)
./ufo[0x806a9f1] (/build/buildd/glibc-2.9/csu/../sysdeps/i386/elf/start.S:122)
./ufo(Sys_Backtrace+0x1f)[0x81989b6] (unix_main.c:487)
./ufo(Sys_Error+0x22)[0x8197b30] (unix_main.c:87)
./ufo(Sys_InitSignals+0x0)[0x8198a29] (unix_main.c:520)
[0xb806e400] (??:0)
./ufo(SV_ExecuteClientMessage+0x151)[0x816cdc4] (sv_user.c:352)
./ufo(SV_ReadPacket+0x60)[0x8167fb0] (sv_user.c:352)
./ufo(NET_Wait+0x29c)[0x8151663] (net.c:457)
./ufo(Qcommon_Frame+0x11c)[0x81466e5] (common.c:1156)
./ufo(main+0x66)[0x8197719] (linux_main.c:53)
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb78a9775] (??:0)
./ufo[0x806a9f1] (/build/buildd/glibc-2.9/csu/../sysdeps/i386/elf/start.S:122)
Error: Received signal 11.

Offline badbunny

  • Rookie
  • ***
  • Posts: 15
    • View Profile
Re: Crahs on alien turn
« Reply #3 on: November 04, 2009, 01:24:19 pm »
Any hope of fixing this?

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: Crahs on alien turn
« Reply #4 on: November 04, 2009, 01:29:48 pm »
Any hope of fixing this?

Is it reproducible? If so, how? Do you have a savegame on which this always happen?

-geever

Offline badbunny

  • Rookie
  • ***
  • Posts: 15
    • View Profile
Re: Crahs on alien turn
« Reply #5 on: November 04, 2009, 03:38:04 pm »
Yep. happens every time I end a turn, so I can reproduce it pretty easily :)

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Crahs on alien turn
« Reply #6 on: November 04, 2009, 04:26:49 pm »
that's more or less good news. it would be cool if you could start the game in windowed mode via gdb (see wiki debugging article) and post a backtrace (bt full)

Offline badbunny

  • Rookie
  • ***
  • Posts: 15
    • View Profile
Re: Crahs on alien turn
« Reply #7 on: November 04, 2009, 08:42:21 pm »
Hope I got it right:
Code: [Select]
(gdb) bt full
#0  0xa772a623 in G_ClientEndRound (player=0x1b06f89c, quiet=qfalse)
    at src/game/g_round.c:215
p = (player_t *) 0x1
i = 479138748
#1  0x0816cdc4 in SV_ExecuteClientMessage (cl=0x1bee77ac, cmd=2,
    msg=0x1d3b10ec) at src/server/sv_user.c:351
s = 0x20ffd00 <Address 0x20ffd00 out of bounds>
#2  0x08167fb0 in SV_ReadPacket (s=0x1b5c1dbc) at src/server/sv_main.c:449
cmd = 2
cl = (client_t *) 0x1bee77ac
msg = (struct dbuffer *) 0x1d3b10ec
#3  0x08151663 in NET_Wait (timeout=0) at src/common/net.c:457
s = (struct net_stream *) 0x1b5c1dbc
tv = {tv_sec = 0, tv_usec = 0}
ready = 0
i = 0
read_fds_out = {fds_bits = {0 <repeats 32 times>}}
write_fds_out = {fds_bits = {0 <repeats 32 times>}}
#4  0x081466e5 in Qcommon_Frame () at src/common/common.c:1155
s = 0x0
time_to_next = 0
event = (struct event *) 0x1d3b10ec
#5  0x08197719 in main (argc=7, argv=0xbfec1484)
    at src/ports/linux/linux_main.c:53
No locals.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Crahs on alien turn
« Reply #8 on: November 05, 2009, 06:00:34 pm »
are you sure, that the binary and the game.so are matching? maybe you have an older version installed on your system already?

Offline badbunny

  • Rookie
  • ***
  • Posts: 15
    • View Profile
Re: Crahs on alien turn
« Reply #9 on: November 09, 2009, 09:56:15 pm »
Apparently that was the problem. I deleted all ufo-related stuff and did a reinstall, and now it works. Thanks a bunch.