Nothing entered.
[http://sourceforge.net/p/ufoai/bugs/2176 Item 2176] imported from sourceforge.net tracker on 2013-01-28 19:22:20
MacBookPro MacOSX 2.5.8
Path: .
URL: https://ufoai.svn.sourceforge.net/svnroot/ufoai/ufoai/trunk
Repository Root: https://ufoai.svn.sourceforge.net/svnroot/ufoai
Repository UUID: 39b98707-f80d-0410-bc7e-c6b02f5409da
Revision: 26189
Node Kind: directory
Schedule: normal
Last Changed Author: geever
Last Changed Rev: 26189
Last Changed Date: 2009-09-12 15:47:51 -0400 (Sat, 12 Sep 2009)
started with gdb,
run +set vid_fullscreen 0 +set vid_grabmouse 0 +set developer 1
Failure happened after clicking to creating the first base.
Not reproducable.
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x61686320
0x9494afae in strcasecmp_l ()
(gdb) bt full
#0 0x9494afae in strcasecmp_l ()
No symbol table info available.
#1 0x9494af7e in strcasecmp ()
No symbol table info available.
#2 0x000fade9 in FS_OpenFileSingle (filename=0x26ee020 "sound/geoscape/standard.ogg", file=0xbfffead8, mode=FILE_READ) at src/common/files.c:184
pak = (pack_t *) 0x1002042c
search = (searchpath_t *) 0xfa215ac
netpath = "./base/sound/geoscape/standard.ogg\000ound/geoscape/standard.ogg\000\221\224SK\035\000\001\000\000\000\030K\035\000\003\000\000\000\000p\223\017\030r\223\017?q\223\017%?$)\005\000/)\000p\223\017??\003\000\002\000\000\000H??\017\000\000\000\000\000\000\000\000\006\000\000\000\222N\000\000\000p\223\017h???|?\221\224\000\000\000\000???\017h?\005\000P\000\000\000@??\017\000\000\000\0008???????\000\000\000\000\000\000\000\000??/)\200?/)0\000\000\000\004???"...
i = 0
link = (filelink_t *) 0x0
#3 0x000fb1b0 in FS_OpenFile (filename=0x26ee020 "sound/geoscape/standard.ogg", file=0xbfffead8, mode=FILE_READ) at src/common/files.c:281
No locals.
#4 0x000fb35b in FS_LoadFile (path=0x26ee020 "sound/geoscape/standard.ogg", buffer=0xbfffec2c) at src/common/files.c:382
h = {
z = 0x0,
f = 0x0,
name = "sound/geoscape/standard.ogg", '\000' <repeats 57 times>, ";?n\002\000\000\000\000?\017\000\000\b\002?? ?n\002?\017\000\000\000\000\000\000????", '\000' <repeats 24 times>, "x???", '\000' <repeats 32 times>, "?8\025\000?o\002\020?????8\025\000 ?n\002\000\020\000\000KK\035\000\004????5\004\000??Ӱ????\e\000\000\000d\000\000\000m6\025\000?????6\025\000 ?n\002\000\020\000\000KK\035\000\004???",
filepos = 100,
size = 690982188
}
buf = (byte *) 0xbfffec04 ",???\030K\035"
len = 40820768
__func__ = "FS_LoadFile"
#5 0x00043704 in S_LoadSampleChunk (sound=0xbfffec84 "geoscape/standard") at src/client/sound/s_sample.c:63
len = 17
buf = (byte *) 0x0
soundExtensions = {0x1d4b18 "ogg", 0x1d4b1c "wav", 0x0}
extension = (const char **) 0xbfffec24
rw = (SDL_RWops *) 0x0
chunk = (Mix_Chunk *) 0x7
#6 0x0004382d in S_LoadSample (soundFile=0x1db1de "geoscape/standard") at src/client/sound/s_sample.c:108
chunk = (Mix_Chunk *) 0x15
sample = (s_sample_t *) 0x0
name = "geoscape/standard\000\035\000????\024\000\000\000Х?\017??\005\000\b???l?\005\000,\215/)\030\000\000\000?l\002\020$\b\000\000\230l\002\020"
hash = 0
#7 0x00043579 in S_StartLocalSample (name=0x1db1de "geoscape/standard", volume=1) at src/client/sound/s_mix.c:173
sample = (s_sample_t *) 0x5d9b7
#8 0x0005dc3d in MS_AddNewMessageSound (title=0x10026fc8 "Notice", text=0x28b3240 "A new Firebird-class Dropship is ready in PHALANX HQ", popup=qfalse, type=MSG_STANDARD, pedia=0x0, playSound=qtrue) at src/client/campaign/cp_messages.c:152
mess = (message_t *) 0x292f8cec
sound = 0x1db1de "geoscape/standard"
__func__ = "MS_AddNewMessageSound"
#9 0x0005d9a9 in MS_AddNewMessage (title=0x10026fc8 "Notice", text=0x28b3240 "A new Firebird-class Dropship is ready in PHALANX HQ", popup=qfalse, type=MSG_STANDARD, pedia=0x0) at src/client/campaign/cp_messages.c:65
No locals.
#10 0x00045a58 in AIR_NewAircraft (base=0x2ad1b8c, name=0x1fa35b "craft_drop_firebird") at src/client/campaign/cp_aircraft.c:780
aircraft = (aircraft_t *) 0x2ad1dbc
aircraftTemplate = (const aircraft_t *) 0x2ccedd0
__func__ = "AIR_NewAircraft"
#11 0x00051494 in B_SetUpFirstBase (base=0x2ad1b8c, hire=qtrue, buildings=qtrue) at src/client/campaign/cp_base.c:1104
firebird = 0x1fa35b "craft_drop_firebird"
aircraft = (aircraft_t *) 0x2ccedd0
i = 40812526
ed = (const equipDef_t *) 0x26ebfee
campaign = (campaign_t *) 0x2ccc524
__func__ = "B_SetUpFirstBase"
#12 0x00051894 in B_SetUpBase (base=0x2ad1b8c, hire=qtrue, buildings=qtrue, pos=0x28b3224) at src/client/campaign/cp_base.c:1210
newBaseAlienInterest = 1
#13 0x000582d8 in B_BuildBase_f () at src/client/campaign/cp_base_callbacks.c:207
baseName = 0x2a24c8fc "PHALANX HQ"
nation = (const nation_t *) 0xbfffef11
base = (base_t *) 0x2ad1b8c
__func__ = "B_BuildBase_f"
#14 0x000e935e in Cmd_ExecuteString (text=0xbfffef04 "mn_build_base") at src/common/cmd.c:912
cmd = (const cmd_function_t *) 0x292f3e5c
a = (const cmd_alias_t *) 0x66656c2b
str = 0x2a298b0c "building_init"
hash = 2
#15 0x000e7f95 in Cbuf_Execute () at src/common/cmd.c:229
text = 0x134d4c0 "\nn_build_base;\n_base;\nselect 200 32949\n3\n-select 200 21053\n-select 200 21053\nequence.onClick\"\n\n\ninit\nce */\nbindui ESCAPE \"sequence.onClick\"\n\n\ninit\nce */\nbindui ESCAPE \"sequence.onClick\"\n\n\ninit\nce */\nb"...
quotes = 0
i = 14
line = "mn_build_base\000 36352\000\000\000\000?\017O&\000\000\000\001@\000\000\000(?\006\020@\000@\020\034\000\000\000\000\000\000\000\030\000\001\000\b\031\000\000\000!\000\000@\000H\020\000\000\000\000\006\000\000\000\003\n\a\000\020\000\000\000\000\n\000\000\022\002\000\000\001\230\000\000t\000\000\000\005\b\002\0002\004\000\000\000`1\001\000\000\000\0008???U\031?$\002", '\000' <repeats 11 times>, "\004\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000?f;&\002\000\000\000\000\001\000\000\000?K&?e1&\000?K&\020\000\000\000\000 P/\000\000\000\000\034\000\000\000\005\000\000\000?????"...
#16 0x0002f88a in CL_SendCommand () at src/client/cl_main.c:943
No locals.
#17 0x0002ff14 in CL_Frame (now=36352, data=0x0) at src/client/cl_main.c:1117
lastFrame = 36352
delta = 20
#18 0x000f7ced in tick_timer (now=36352, data=0x29233e9c) at src/common/common.c:1049
timer = (struct timer *) 0x29233e9c
old_interval = 20
lateness = 0
#19 0x000f81d9 in Qcommon_Frame () at src/common/common.c:1200
time_to_next = 0
event = (struct event *) 0x2a26240c
#20 0x001554d2 in main (argc=10, argv=0xbffff498) at src/ports/macosx/osx_main.m:138
pool = (NSAutoreleasePool *) 0xfa09cc0
===== Comments Ported from Sourceforge =====
====== daffydhill (2009-09-14 01:26:09) ======
Ok, I fibbed, it seems reproducible, but only when I use this in gdb:
run +set vid_fullscreen 0 +set vid_grabmouse 0 +set developer 1
does not seem to whack the same spot without +set developer 1
(gdb) p filename
$2 = 0x26ed020 "sound/geoscape/standard.ogg"
(gdb) print i
$3 = 26495
(gdb) p pak
$4 = (pack_t *) 0x1002042c
(gdb) p *pak
$5 = {
filename = "rkResearchable: handling \"rs_craft_ufo_harvester\".\nRS_RequirementsMet: ANDtech: rs_alien_ufo_theory / 15\nh not researched ----> rs_alien_ufo_theory \nmet_AND is 0, met_OR is 0\nRS_MarkResearchable: hand"...,
handle = {
z = 0x5f737220,
f = 0x65696c61,
name = "n_ufo_theory / 15\nRS_RequirementsMet: this tech not researched ----> rs_alien_ufo_theory \nmet_AND is 0, met_OR is 0\nRS_MarkResearchable: handling \"rs_craft_ufo_corrupter\".\nRS_RequirementsMet: ANDtech:"...,
filepos = 544501614,
size = 1702061426
},
numfiles = 1751347809,
files = 0x2d206465
}
I did get the dump to move once though, so I think it is an earlier corruption:
(gdb) bt
#0 0x0f729e2a in _nl_find_msg ()
#1 0x0f72a7e4 in libintl_dcigettext ()
#2 0x0f726d07 in libintl_dcgettext ()
#3 0x0f726d61 in libintl_gettext ()
#4 0x000508f2 in B_BuildingStatus (base=0x2ad1b8c, building=0x2c1ce24) at src/client/campaign/cp_base.c:859
#5 0x00051c85 in B_NewBuilding (base=0x2ad1b8c, building=0x2c1ce24) at src/client/campaign/cp_base.c:1336
#6 0x00051fcf in B_SetBuildingByClick (base=0x2ad1b8c, template=0x2c0a870, row=2, col=4) at src/client/campaign/cp_base.c:1403
#7 0x00050c6c in B_AddBuildingToBasePos (base=0x2ad1b8c, template=0x2c0a870, hire=qtrue, pos=0xbfffeda0) at src/client/campaign/cp_base.c:950
#8 0x000511a5 in B_BuildFromTemplate (base=0x2ad1b8c, templateName=0x2ccc76c "balanced", hire=qtrue) at src/client/campaign/cp_base.c:1044
#9 0x0005142b in B_SetUpFirstBase (base=0x2ad1b8c, hire=qtrue, buildings=qtrue) at src/client/campaign/cp_base.c:1095
#10 0x00051894 in B_SetUpBase (base=0x2ad1b8c, hire=qtrue, buildings=qtrue, pos=0x28b3224) at src/client/campaign/cp_base.c:1210
#11 0x000582d8 in B_BuildBase_f () at src/client/campaign/cp_base_callbacks.c:207
#12 0x000e935e in Cmd_ExecuteString (text=0xbfffef04 "mn_build_base") at src/common/cmd.c:912
#13 0x000e7f95 in Cbuf_Execute () at src/common/cmd.c:229
#14 0x0002f88a in CL_SendCommand () at src/client/cl_main.c:943
#15 0x0002ff14 in CL_Frame (now=18301, data=0x0) at src/client/cl_main.c:1117
#16 0x000f7ced in tick_timer (now=18301, data=0x29234fec) at src/common/common.c:1049
#17 0x000f81d9 in Qcommon_Frame () at src/common/common.c:1200
#18 0x001554d2 in main (argc=10, argv=0xbffff498) at src/ports/macosx/osx_main.m:138
(gdb)
====== tlh2000 (2009-10-03 18:22:34) ======
that is definitely some memory corruption. is there a valgrind like tool on mac?
====== tlh2000 (2009-12-08 20:48:57) ======
can't fix without more information or a valgrind check