project-navigation
Personal tools

Author Topic: rev 28632, crash to terminal at mission end (Error: Received signal 11.)  (Read 4126 times)

Offline jfrv24

  • Rookie
  • ***
  • Posts: 12
    • View Profile
I've gotten this error a few times.  It crashes when printing out the soldier experience gains.

Code: [Select]
[STATS] 2010/02/19 09:22:28 - Soldier Andrea Fuentes earned 46 experience points in skill #0 (total experience: 1334). It is now 4 higher.

[STATS] 2010/02/19 09:22:28 - Soldier Andrea Fuentes earned 91 experience points in skill #1 (total experience: 1495). It is now 5 higher.

[STATS] 2010/02/19 09:22:28 - Soldier Andrea Fuentes earned 140 experience points in skill #2 (total experience: 1060). It is now 4 higher.

[STATS] 2010/02/19 09:22:28 - Soldier Andrea Fuentes earned 450 experience points in skill #3 (total experience: 5450). It is now 11 higher.

[STATS] 2010/02/19 09:22:28 - Soldier A0   ufo                                 0x000000010015b285 Sys_Backtrace + 28
1   ufo                                 0x000000010015b2e9 Sys_Signal + 75
2   libSystem.B.dylib                   0x00007fff82d3eeaa _sigtramp + 26
3   ufo                                 0x000000010011019d TR_RecursiveHullCheck + 96
4   libSystem.B.dylib                   0x00007fff82d238c9 _st_localsub + 168
5   libSystem.B.dylib                   0x00007fff82d22c5a localtime + 201
6   ufo                                 0x00000001000f205c Com_MakeTimestamp + 34
7   ufo                                 0x00000001000f21b7 Com_vPrintf + 242
8   ufo                                 0x000000010011a249 SV_dprintf + 223
9   game.dylib                          0x000000014decffd9 G_PrintStats + 181
10  game.dylib                          0x000000014dec8165 G_UpdateCharacterSkills + 353
11  game.dylib                          0x000000014dec8509 G_MatchSendResults + 111
12  game.dylib                          0x000000014dec8940 G_MatchDoEnd + 128
13  game.dylib                          0x000000014dec7b31 G_RunFrame + 267
14  ufo                                 0x000000010011ae4d SV_RunGameFrame + 23
15  ufo                                 0x000000010011db3a SV_Frame + 133
16  ufo                                 0x00000001000f42a7 tick_timer + 631
17  ufo                                 0x00000001000f478c Qcommon_Frame + 118
18  ufo                                 0x000000010015b687 main + 256
19  ufo                                 0x0000000100001534 start + 52
0   ufo                                 0x000000010015b285 Sys_Backtrace + 28
1   ufo                                 0x000000010015a305 Sys_Error + 168
2   ufo                                 0x000000010015b2fd Sys_Signal + 95
3   libSystem.B.dylib                   0x00007fff82d3eeaa _sigtramp + 26
4   ufo                                 0x000000010011019d TR_RecursiveHullCheck + 96
5   libSystem.B.dylib                   0x00007fff82d238c9 _st_localsub + 168
6   libSystem.B.dylib                   0x00007fff82d22c5a localtime + 201
7   ufo                                 0x00000001000f205c Com_MakeTimestamp + 34
8   ufo                                 0x00000001000f21b7 Com_vPrintf + 242
9   ufo                                 0x000000010011a249 SV_dprintf + 223
10  game.dylib                          0x000000014decffd9 G_PrintStats + 181
11  game.dylib                          0x000000014dec8165 G_UpdateCharacterSkills + 353
12  game.dylib                          0x000000014dec8509 G_MatchSendResults + 111
13  game.dylib                          0x000000014dec8940 G_MatchDoEnd + 128
14  game.dylib                          0x000000014dec7b31 G_RunFrame + 267
15  ufo                                 0x000000010011ae4d SV_RunGameFrame + 23
16  ufo                                 0x000000010011db3a SV_Frame + 133
17  ufo                                 0x00000001000f42a7 tick_timer + 631
18  ufo                                 0x00000001000f478c Qcommon_Frame + 118
19  ufo                                 0x000000010015b687 main + 256
20  ufo                                 0x0000000100001534 start + 52
Error: Received signal 11.

ndrea Fuentes earned 680 experience points in skill #4 (total experience: 6990). It is now 12 higher.
[STATS] 2010/02/19 09:22:28 - Soldier Andrea Fuentes earned 0 experience points in skill #5 (total experience: 0). It is now 0 higher.
[STATS] 2010/02/19 09:22:28 - Soldier Andrea Fuentes earned 0 experience points in skill #6 (total experience: 0). It is now 0 higher.
[STATS] 2010/02/19 09:22:28 - Soldier Andrea Fuentes earned 0 experience points in skill #7 (total experience: 0). It is now 0 higher.
[STATS] 2010/02/19 09:22:28 - Soldier Andrea Fuentes earned 0 experience points in skill #8 (total experience: 0). It is now 0 higher.
[STATS] 2010/02/19 09:22:28 - Soldier Andrea Fuentes earned 703 experience points in skill #9 (total experience: 8158). It is now 14 higher.

It's the end of a battle so I don't think I could have done anything differently to cause this.  That soldier has been in almost 30 battles, so it's a rare bug.

Rev 28632, downloaded from the svn /trunk, compiled and run in the terminal, Mac OS 10.6.2.

Offline Duke

  • Administrator
  • PHALANX veteran
  • *****
  • Posts: 1037
    • View Profile
Re: rev 28632, crash to terminal at mission end (Error: Received signal 11.)
« Reply #1 on: February 20, 2010, 01:41:12 am »
Hmm. Looks like a corrupted stack to me, so the stack trace is rather useless :(

I've gotten this error a few times. 
Was it always that particular soldier 'Andrea Fuentes' ?

Offline jfrv24

  • Rookie
  • ***
  • Posts: 12
    • View Profile
Re: rev 28632, crash to terminal at mission end (Error: Received signal 11.)
« Reply #2 on: February 20, 2010, 03:05:21 am »
Nope, it can be a different soldier.

Code: [Select]
Team 0 ended round, team 1's round started!
[STATS] 2010/02/19 15:48:41 - End of game - Team 1 is the winner
[STATS] 2010/02/19 15:48:41 - Soldier Matsuhiro Al Din earned 46 experience points in skill #0 (total experience: 1886). It is now 5 higher.

[STATS] 2010/02/19 15:48:41 - Soldier Matsuhiro Al Din earned 57 experience points in skill #1 (total experience: 1934). It is now 5 higher.

[STATS] 2010/02/19 15:48:41 - Soldier Matsuhiro Al Din earned 80 experience points in skill #2 (total experience: 900). It is now 3 higher.

[STATS] 2010/02/19 15:48:41 - Soldier Matsuhiro Al Din earned 250 experience points in skill #3 (total experience: 6850). It is now 12 higher.

[STATS] 2010/02/19 15:48:41 - Soldier Matsuhiro Al Din earned 0 experience points in skill #4 (total experience: 0). It is now 0 higher.

[STATS] 2010/02/19 15:48:41 - Soldier Matsuhiro Al Din earned 0 experience points in skill #5 (total experience: 0). It is now 0 higher.

[STATS] 2010/02/19 15:48:41 - Soldier Matsuhiro Al Din earned 400 experience points in skill #6 (tota0   ufo                                 0x000000010015b285 Sys_Backtrace + 28
1   ufo                                 0x000000010015b2e9 Sys_Signal + 75
2   libSystem.B.dylib                   0x00007fff82d3eeaa _sigtramp + 26
3   ufo                                 0x0000000100110832 TR_RecursiveHullCheck + 1781
4   libSystem.B.dylib                   0x00007fff82d238c9 _st_localsub + 168
5   libSystem.B.dylib                   0x00007fff82d22c5a localtime + 201
6   ufo                                 0x00000001000f205c Com_MakeTimestamp + 34
7   ufo                                 0x00000001000f21b7 Com_vPrintf + 242
8   ufo                                 0x000000010011a249 SV_dprintf + 223
9   game.dylib                          0x0000000145422fd9 G_PrintStats + 181
10  game.dylib                          0x000000014541b165 G_UpdateCharacterSkills + 353
11  game.dylib                          0x000000014541b509 G_MatchSendResults + 111
12  game.dylib                          0x000000014541b940 G_MatchDoEnd + 128
13  game.dylib                          0x000000014541ab31 G_RunFrame + 267
14  ufo                                 0x000000010011ae4d SV_RunGameFrame + 23
15  ufo                                 0x000000010011db3a SV_Frame + 133
16  ufo                                 0x00000001000f42a7 tick_timer + 631
17  ufo                                 0x00000001000f478c Qcommon_Frame + 118
18  ufo                                 0x000000010015b687 main + 256
19  ufo                                 0x0000000100001534 start + 52
0   ufo                                 0x000000010015b285 Sys_Backtrace + 28
1   ufo                                 0x000000010015a305 Sys_Error + 168
2   ufo                                 0x000000010015b2fd Sys_Signal + 95
3   libSystem.B.dylib                   0x00007fff82d3eeaa _sigtramp + 26
4   ufo                                 0x0000000100110832 TR_RecursiveHullCheck + 1781
5   libSystem.B.dylib                   0x00007fff82d238c9 _st_localsub + 168
6   libSystem.B.dylib                   0x00007fff82d22c5a localtime + 201
7   ufo                                 0x00000001000f205c Com_MakeTimestamp + 34
8   ufo                                 0x00000001000f21b7 Com_vPrintf + 242
9   ufo                                 0x000000010011a249 SV_dprintf + 223
10  game.dylib                          0x0000000145422fd9 G_PrintStats + 181
11  game.dylib                          0x000000014541b165 G_UpdateCharacterSkills + 353
12  game.dylib                          0x000000014541b509 G_MatchSendResults + 111
13  game.dylib                          0x000000014541b940 G_MatchDoEnd + 128
14  game.dylib                          0x000000014541ab31 G_RunFrame + 267
15  ufo                                 0x000000010011ae4d SV_RunGameFrame + 23
16  ufo                                 0x000000010011db3a SV_Frame + 133
17  ufo                                 0x00000001000f42a7 tick_timer + 631
18  ufo                                 0x00000001000f478c Qcommon_Frame + 118
19  ufo                                 0x000000010015b687 main + 256
20  ufo                                 0x0000000100001534 start + 52
Error: Received signal 11.

l experience: 4500). It is now 9 higher.
[STATS] 2010/02/19 15:48:41 - Soldier Matsuhiro Al Din earned 0 experience points in skill #7 (total experience: 0). It is now 0 higher.
[STATS] 2010/02/19 15:48:41 - Soldier Matsuhiro Al Din earned 0 experience points in skill #8 (total experience: 0). It is now 0 higher.
[STATS] 2010/02/19 15:48:41 - Soldier Matsuhiro Al Din earned 416 experience points in skill #9 (total experience: 8020). It is now 13 higher.

And another one, this time it happened in the Geoscape after the dropship had returned to base.

Code: [Select]
Shutdown server: Mission end
==== ShutdownGame ====
music change to van_geoscape (from MarineIndustrial)
0   ufo                                 0x000000010015b285 Sys_Backtrace + 28
1   ufo                                 0x000000010015b2e9 Sys_Signal + 75
2   libSystem.B.dylib                   0x00007fff82d3eeaa _sigtramp + 26
3   ???                                 0x000000014b68f960 0x0 + 5560138080
4   CoreFoundation                      0x00007fff8434251b __CFBasicHashStandardCallback + 315
5   CoreFoundation                      0x00007fff8438c9c7 __CFBasicHashGetCountOfValue_block_invoke_1 + 55
6   CoreFoundation                      0x00007fff8434b985 CFBasicHashApply + 213
7   CoreFoundation                      0x00007fff8438476a CFBasicHashGetCountOfValue + 234
8   CoreFoundation                      0x00007fff84384657 CFDictionaryContainsValue + 119
9   CoreGraphics                        0x00007fff8846355d initialize + 1164
10  CoreGraphics                        0x00007fff88462fd3 createColorTransform + 80
11  CoreGraphics                        0x00007fff8848fdd9 CGBitmapColorTransformCreate + 44
12  libRIP.A.dylib                      0x00007fff844a002c __CGBitmapContextDelegateCreate + 394
13  CoreGraphics                        0x00007fff8848fc0a bitmap_context_create + 132
14  CoreGraphics                        0x00007fff8848f4ef CGBitmapContextCreateWithData + 231
15  CoreGraphics                        0x00007fff8848f406 CGBitmapContextCreate + 37
16  libSDL_image-1.2.0.dylib            0x000000010fd35548 Create_SDL_Surface_From_CGImage + 184
17  libSDL_image-1.2.0.dylib            0x000000010fd358e0 LoadImageFromRWops + 112
18  libSDL_image-1.2.0.dylib            0x000000010fd31471 IMG_LoadTyped_RW + 225
19  ufo                                 0x0000000100158656 Img_LoadTypedImage + 181
20  ufo                                 0x000000010015876b Img_LoadImage + 68
21  ufo                                 0x00000001001331a4 R_FindImageDebug + 148
22  ufo                                 0x0000000100145342 R_AliasModelGetSkin + 235
23  ufo                                 0x000000010014b362 R_ModLoadAliasMD2Mesh + 954
24  ufo                                 0x000000010014bfa8 R_ModLoadAliasMD2Model + 172
25  ufo                                 0x00000001001449eb R_ModForName + 697
26  ufo                                 0x0000000100144b94 R_RegisterModelShort + 209
27  ufo                                 0x000000010012c1d9 R_Draw3DMapMarkers + 390
28  ufo                                 0x000000010007a7d4 MAP_Draw3DMarkerIfVisible + 218
29  ufo                                 0x000000010007e755 MAP_DrawMapMarkers + 1200
30  ufo                                 0x000000010007f194 MAP_DrawMap + 917
31  ufo                                 0x00000001000cc04d MN_MapNodeDraw + 98
32  ufo                                 0x00000001000b3f42 MN_DrawNode + 414
33  ufo                                 0x00000001000b4072 MN_DrawNode + 718
34  ufo                                 0x00000001000b443c MN_Draw + 262
35  ufo                                 0x0000000100013893 SCR_UpdateScreen + 277
36  ufo                                 0x0000000100012498 CL_Frame + 277
37  ufo                                 0x00000001000f42a7 tick_timer + 631
38  ufo                                 0x00000001000f478c Qcommon_Frame + 118
39  ufo                                 0x000000010015b687 main + 256
40  ufo                                 0x0000000100001534 start + 52
0   ufo                                 0x000000010015b285 Sys_Backtrace + 28
1   ufo                                 0x000000010015a305 Sys_Error + 168
2   ufo                                 0x000000010015b2fd Sys_Signal + 95
3   libSystem.B.dylib                   0x00007fff82d3eeaa _sigtramp + 26
4   ???                                 0x000000014b68f960 0x0 + 5560138080
5   CoreFoundation                      0x00007fff8434251b __CFBasicHashStandardCallback + 315
6   CoreFoundation                      0x00007fff8438c9c7 __CFBasicHashGetCountOfValue_block_invoke_1 + 55
7   CoreFoundation                      0x00007fff8434b985 CFBasicHashApply + 213
8   CoreFoundation                      0x00007fff8438476a CFBasicHashGetCountOfValue + 234
9   CoreFoundation                      0x00007fff84384657 CFDictionaryContainsValue + 119
10  CoreGraphics                        0x00007fff8846355d initialize + 1164
11  CoreGraphics                        0x00007fff88462fd3 createColorTransform + 80
12  CoreGraphics                        0x00007fff8848fdd9 CGBitmapColorTransformCreate + 44
13  libRIP.A.dylib                      0x00007fff844aError: Received signal 11.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: rev 28632, crash to terminal at mission end (Error: Received signal 11.)
« Reply #3 on: February 20, 2010, 09:05:27 am »
would be cool if you could run ufo in a debugger (gdb) - see the wiki debugging section - and post a real backtrace here.

Offline jfrv24

  • Rookie
  • ***
  • Posts: 12
    • View Profile
Re: rev 28632, crash to terminal at mission end (Error: Received signal 11.)
« Reply #4 on: February 21, 2010, 07:03:33 pm »
Here it is, took a while to catch in the debugger because it doesn't happen often.

Code: [Select]
[STATS] 2010/02/21 09:27:56 - End of game - Team 1 is the winner
[STATS] 2010/02/21 09:27:56 - Soldier Matsuhiro Al Din earned 46 experience points in skill #0 (total experience: 2852). It is now 7 higher.

[STATS] 2010/02/21 09:27:56 - Soldier Matsuhiro Al Din earned 10 experience points in skill #1 (total experience: 2875). It is now 7 higher.

[STATS] 2010/02/21 09:27:56 - Soldier Matsuhiro Al Din earned 0 experience points in skill #2 (total experience: 1820). It is now 5 higher.

[STATS] 2010/02/21 09:27:56 - Soldier Matsuhiro Al Din earned 50 experience points in skill #3 (total experience: 10300). It is now 16 higher.

[STATS] 2010/02/21 09:27:56 - Soldier Matsuhiro Al Din earned 0 experience points in skill #4 (total experience: 0). It is now 0 higher.

[STATS] 2010/02/21 09:27:56 - Soldier Matsuhiro Al Din earned 0 experience points in skill #5 (total experience: 0). It is now 0 higher.

[STATS] 2010/02/21 09:27:56 - Soldier Matsuhiro Al Din earned 0 experience points in skill #6 (total experience: 8980). It is now 14 higher.

[STATS] 2010/02/21 09:27:56 - Soldier Matsuhiro Al Din earned 0 experience points in skill #7 (total experience: 0). It is now 0 higher.

[STATS] 2010/02/21 09:27:56 - Soldier Matsuhiro Al Din earned 0 experience points in skill #8 (total experience: 0). It is now 0 higher.

[STATS] 2010/02/21 09:27:56 - Soldier Matsuhiro Al Din earned 53 experience points in skill #9 (total experience: 13393). It is now 18 higher.

[STATS] 2010/02/21 09:27:56
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000763051248
0x00007fff82d23950 in timesub ()
(gdb) bt full
#0  0x00007fff82d23950 in timesub ()
No symbol table info available.
#1  0x00007fff82d238c9 in _st_localsub ()
No symbol table info available.
#2  0x00007fff82d22c5a in localtime ()
No symbol table info available.
#3  0x00000001000f205c in Com_MakeTimestamp (ts=0x7fff5fbff590 " ", tslen=40) at src/common/common.c:149
t = (struct tm *) 0xb70f7c3164aa75a0
aclock = 1266773276
#4  0x00000001000f21b7 in Com_vPrintf (fmt=0x1427a9b8c "[STATS] %s - %s\n", ap=0x7fff5fbff5f0) at src/common/common.c:183
msg = "[STATS] 2010/02/21 09:27:56 - Soldier Javier Hassan earned 46 experience points in skill #0 (total experience: 2852). It is now 7 higher.\n\n\000\n\n\000\n", '\000' <repeats 16 times>, "???_?\177\000\000?\"\017\000\001\000\000\000???_?\177\000\000\214\233zB\001\000\000\000??_?\177\000\000`?_?\177"...
timestamp = " \000\000\000\000\000\000\000\020??_?\177\000\000???2\000\000\000\000\000\000\000\000\023\000\000\000???_?\177\000"
#5  0x000000010011a249 in SV_dprintf (fmt=0x1427a9b8c "[STATS] %s - %s\n") at src/server/sv_game.c:48
ap = {{
    gp_offset = 24,
    fp_offset = 48,
    overflow_arg_area = 0x7fff5fbff6d0,
    reg_save_area = 0x7fff5fbff610
  }}
#6  0x00000001427c8fd9 in G_PrintStats (buffer=0x1428b9bc0 "Soldier Javier Hassan earned 46 experience points in skill #0 (total experience: 2852). It is now 7 higher.\n") at src/game/g_utils.c:201
t = (struct tm *) 0x11020c520
tbuf = "2010/02/21 09:27:56\000\001\000\000\000\000\000\000\000\000\000\000"
aclock = 1266773276
#7  0x00000001427c1165 in G_UpdateCharacterSkills (chr=0x14ee6c140) at src/game/g_match.c:150
i = ABILITY_POWER
maxXP = 46
gainedXP = 46
totalGainedXP = 46
__func__ = "G_UpdateCharacterSkills"
#8  0x00000001427c1509 in G_MatchSendResults (team=1) at src/game/g_match.c:224
ent = (edict_t *) 0x14ee6c038
attacker = (edict_t *) 0x0
i = 1
j = 0
#9  0x00000001427c1940 in G_MatchDoEnd () at src/game/g_match.c:307
No locals.
#10 0x00000001427c0b31 in G_RunFrame () at src/game/g_main.c:409
No locals.
#11 0x000000010011ae4d in SV_RunGameFrame () at src/server/sv_game.c:418
No locals.
#12 0x000000010011db3a in SV_Frame (now=1797984, data=0x0) at src/server/sv_main.c:772
No locals.
#13 0x00000001000f42a7 in tick_timer (now=1797984, data=0x12e766d58) at src/common/common.c:1003
timer = (struct timer *) 0x12e766d58
old_interval = 100
lateness = 0
#14 0x00000001000f478c in Qcommon_Frame () at src/common/common.c:1154
time_to_next = 0
event = (struct event *) 0x13b434ac8
#15 0x000000010015b687 in main (argc=1, argv=0x7fff5fbff968) at src/ports/macosx/osx_main.m:138
pool = (NSAutoreleasePool *) 0x110110fb0
(gdb) f 3
#3  0x00000001000f205c in Com_MakeTimestamp (ts=0x7fff5fbff590 " ", tslen=40) at src/common/common.c:149
149 t = localtime(&aclock);
Current language:  auto; currently c
(gdb) print aclock
$1 = 1266773276
(gdb) print *t
Cannot access memory at address 0xb70f7c3164aa75a0


Offline Duke

  • Administrator
  • PHALANX veteran
  • *****
  • Posts: 1037
    • View Profile
Re: rev 28632, crash to terminal at mission end (Error: Received signal 11.)
« Reply #5 on: February 26, 2010, 12:42:42 am »
Hmm...
looks like we have a crash in localtime(), which doesn't take params and only returns a pointer. Damn close to impossible.
Also the backtrace seems to be very different from the first one, although it's the same starting point.

Currently no clue :(

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: rev 28632, crash to terminal at mission end (Error: Received signal 11.)
« Reply #6 on: February 26, 2010, 07:51:08 am »
afaik valgrind works on the mac, too - if you have experiences with compiling things on your own and are willing to try it out, please rerun ufo in valgrind and post the results here - you can just run ./contrib/script/valgrind.sh ./ufo from trunk/ if valgrind is installed.

Offline jfrv24

  • Rookie
  • ***
  • Posts: 12
    • View Profile
Re: rev 28632, crash to terminal at mission end (Error: Received signal 11.)
« Reply #7 on: February 27, 2010, 12:42:51 am »
Looks like Valgrind was ported to Mac OS 10.5 but doesn't yet work with 10.6 because of 32 bit / 64 bit issues.