project-navigation
Personal tools

Author Topic: crash in tactical mission, latest revision  (Read 5192 times)

Offline gb

  • Cannon Fodder
  • **
  • Posts: 8
    • View Profile
crash in tactical mission, latest revision
« on: July 16, 2010, 09:30:02 pm »
Hi, guys.

First as i have a change, huge thanks for developing this excellent game!

Now, my bug:
system: debian/testing amd64.
video: nvidia 195.36.24 X.Org X Server 1.7.7

ufoai source: self-compiled latest revision from svn
problem: crash in first tactical mission
reproduction: happened once

Log on console:
...
Team 1's round started!
Can't perform action - target out of range!
Ktrukk K Krokk is consumed by mad rage!
Team 1 ended round
Team 7's round started!
********************
ERROR: Game Error: G_GetShotFromType: unknown shoot type 822920840.

********************
Shutdown server: Server crashed.
==== ShutdownGame ====
/usr/local/bin/ufo: line 2: 16623 Segmentation Fault

now turned ulimit -c unlimited to produce better reporst next time.

Offline gb

  • Cannon Fodder
  • **
  • Posts: 8
    • View Profile
Re: crash in tactical mission, latest revision
« Reply #1 on: July 16, 2010, 10:02:52 pm »
I am hitting this again and again...

nothing useful in backtrace:

(gdb) bt
#0  0x00007ffb4629cd37 in ?? () from /lib/libgcc_s.so.1
#1  0x00007ffb4629d5be in _Unwind_Backtrace () from /lib/libgcc_s.so.1
#2  0x00007ffb4cd677de in *__GI___backtrace (array=<value optimized out>, size=50)
    at ../sysdeps/x86_64/../ia64/backtrace.c:91
#3  0x000000000058191e in Sys_Backtrace () at src/ports/unix/unix_main.c:543
#4  0x0000000000581992 in Sys_Signal (s=11) at src/ports/unix/unix_main.c:568
#5  <signal handler called>
#6  0x00007ffb4629cd37 in ?? () from /lib/libgcc_s.so.1
#7  0x00007ffb4629d5be in _Unwind_Backtrace () from /lib/libgcc_s.so.1
#8  0x00007ffb4cd677de in *__GI___backtrace (array=<value optimized out>, size=50)
    at ../sysdeps/x86_64/../ia64/backtrace.c:91
#9  0x000000000058191e in Sys_Backtrace () at src/ports/unix/unix_main.c:543
#10 0x000000000051332c in Com_Error (code=1, fmt=0x5cdcd3 "Game Error: %s")
    at src/common/common.c:275
#11 0x0000000000538a13 in SV_error (
    fmt=0x7ffb403eb0f0 <Address 0x7ffb403eb0f0 out of bounds>) at src/server/sv_game.c:85
#12 0x00007ffb403aa6eb in ?? ()
#13 0x00007f1000000000 in ?? ()
#14 0x00007fffe48042e8 in ?? ()
#15 0x00007fffe480429c in ?? ()
#16 0x00007fffe48042e0 in ?? ()

Offline gb

  • Cannon Fodder
  • **
  • Posts: 8
    • View Profile
Re: crash in tactical mission, latest revision
« Reply #2 on: July 16, 2010, 10:20:51 pm »
updated to 31032.

hitting same problem again and again:

[STATS] alien (Zmolukk Kkr Kraukk) kills gena (Hiroshi Sandvik) with Lob of plasmagrenade
********************
ERROR: Game Error: G_GetShotFromType: unknown shoot type 663658616.

********************
Shutdown server: Server crashed.
==== ShutdownGame ====

Offline gb

  • Cannon Fodder
  • **
  • Posts: 8
    • View Profile
Re: crash in tactical mission, latest revision
« Reply #3 on: July 16, 2010, 10:38:30 pm »
Did valgrind run, got same crash in the end, results:

Team 1 ended round
Team 7's round started!
********************
ERROR: Game Error: G_GetShotFromType: unknown shoot type 877097528.

********************
Shutdown server: Server crashed.

==1747== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==1747==  Access not within mapped region at address 0x3A17B6EB
==1747==    at 0x1A581D37: ??? (in /lib/libgcc_s.so.1)
==1747==    by 0x1A5825BD: _Unwind_Backtrace (in /lib/libgcc_s.so.1)
==1747==    by 0x13B137DD: backtrace (backtrace.c:91)
==1747==    by 0x58191D: Sys_Backtrace (unix_main.c:543)
==1747==    by 0x581991: Sys_Signal (unix_main.c:568)
==1747==    by 0x13A621EF: ??? (in /lib/libc-2.11.2.so)
==1747==    by 0x1A581D36: ??? (in /lib/libgcc_s.so.1)
==1747==    by 0x1A5825BD: _Unwind_Backtrace (in /lib/libgcc_s.so.1)
==1747==    by 0x13B137DD: backtrace (backtrace.c:91)
==1747==    by 0x58191D: Sys_Backtrace (unix_main.c:543)
==1747==    by 0x51332B: Com_Error (common.c:275)
==1747==    by 0x538A12: SV_error (sv_game.c:85)

==1747== HEAP SUMMARY:
==1747==     in use at exit: 528,399,330 bytes in 72,201 blocks
==1747==   total heap usage: 467,083 allocs, 394,882 frees, 1,511,516,365 bytes allocated
==1747==
==1747== LEAK SUMMARY:
==1747==    definitely lost: 2,676 bytes in 12 blocks
==1747==    indirectly lost: 103,582 bytes in 1,213 blocks
==1747==      possibly lost: 480,798,688 bytes in 66,558 blocks
==1747==    still reachable: 47,494,384 bytes in 4,418 blocks
==1747==         suppressed: 0 bytes in 0 blocks
==1747== Rerun with --leak-check=full to see details of leaked memory


------------------------  cut, other piece:
==1747==
==1747== More than 1000 different errors detected.  I'm not reporting any more.
==1747== Final error counts will be inaccurate.  Go fix your program!
==1747== Rerun with --error-limit=no to disable this cutoff.  Note
==1747== that errors may occur in your program without prior warning from
==1747== Valgrind, because errors are no longer being displayed.
==1747==
R_LoadShader: world_vs.glsl: Compiler Log:

-----------------------  cut, from random places:
many errors in  /usr/lib/libGLcore.so.195.36.24

==1747== Invalid read of size 8
==1747==    at 0x13B3E5D4: __strncmp_ssse3 (strcmp.S:101)
==1747==    by 0x5712A4: R_PreprocessShader (r_program.c:375)
==1747==    by 0x571A85: R_LoadShader (r_program.c:533)
==1747==    by 0x571E0E: R_LoadProgram (r_program.c:625)
==1747==    by 0x5726C1: R_InitPrograms (r_program.c:833)
==1747==    by 0x553A6B: R_Init (r_main.c:999)
==1747==    by 0x440D5C: VID_Init (cl_video.c:157)
==1747==    by 0x43B4FE: CL_Init (cl_main.c:1133)
==1747==    by 0x5147F8: Qcommon_Init (common.c:911)
==1747==    by 0x5803FA: main (linux_main.c:48)
==1747==  Address 0x1c1121c9 is 1,177 bytes inside a block of size 1,184 alloc'd
==1747==    at 0x1192D1A7: malloc (vg_replace_malloc.c:195)
==1747==    by 0x51DA4E: _Mem_Alloc (mem.c:321)
==1747==    by 0x517F22: FS_LoadFile (files.c:402)
==1747==    by 0x5719CD: R_LoadShader (r_program.c:522)
==1747==    by 0x571E0E: R_LoadProgram (r_program.c:625)
==1747==    by 0x5726C1: R_InitPrograms (r_program.c:833)
==1747==    by 0x553A6B: R_Init (r_main.c:999)
==1747==    by 0x440D5C: VID_Init (cl_video.c:157)
==1747==    by 0x43B4FE: CL_Init (cl_main.c:1133)
==1747==    by 0x5147F8: Qcommon_Init (common.c:911)
==1747==    by 0x5803FA: main (linux_main.c:48)


Offline nonickch

  • Rookie
  • ***
  • Posts: 36
    • View Profile
Re: crash in tactical mission, latest revision
« Reply #4 on: July 17, 2010, 06:48:29 pm »
my bad (again), on it

check latest trunk and see if it's ok now. PM me directly if it's not.
« Last Edit: July 17, 2010, 07:05:22 pm by nonickch »

Offline gb

  • Cannon Fodder
  • **
  • Posts: 8
    • View Profile
Re: crash in tactical mission, latest revision
« Reply #5 on: July 18, 2010, 12:07:42 am »
gena@work:~/svn/ufoai_2.3$ svn up
At revision 31039.
gena@work:~/svn/ufoai_2.3$ make
[blah blah]
gena@work:~/svn/ufoai_2.3$ sudo make install
[blah2]

and got same issue...

i can contact someone on irc if help is needed to track this, i joined to #ufoai as gena2x.

Offline nonickch

  • Rookie
  • ***
  • Posts: 36
    • View Profile
Re: crash in tactical mission, latest revision
« Reply #6 on: July 18, 2010, 05:10:57 pm »
31041 should've fixed that for 2.3. 31039 fixed just trunk.
« Last Edit: July 18, 2010, 06:09:21 pm by nonickch »

Offline Colamann

  • Rookie
  • ***
  • Posts: 25
    • View Profile
Re: crash in tactical mission, latest revision
« Reply #7 on: August 13, 2010, 03:43:17 pm »
I'm having a similar problem on Windows XP, only it doesn't just crash the game. My PC switches off immediately, apparently without shutting down properly. I press a button in the tactical mission, the screen goes dark and the comp is switched off.
Are there any logs I can check, as there's no way to read the console? I'd like to make a proper bug report ;)

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: crash in tactical mission, latest revision
« Reply #8 on: August 14, 2010, 08:16:57 pm »
execute ufoai in windowed mode and generate a backtrace if there is a segfault - see the wiki debugging section for more info