[quake3] Re: Quake3 client + server on Solaris/Sparc

vincent at cojot.name vincent at cojot.name
Mon Nov 7 11:38:25 EST 2005


On Mon, 7 Nov 2005, Tim Angus wrote:

> On Mon, 7 Nov 2005 16:07:50 +0000 Tim wrote:
>> On Mon, 07 Nov 2005 10:54:50 -0500 Ryan wrote:
>>> This happens on PowerPC linux, too.
>>> Is the Sparc bigendian? Perhaps there's a byteorder issue?
>>
>> You may be onto something. Patch attached.
>
> Hmm, and perhaps this too...

Hi Tim,

I think your diffs are fine and should be commited. However, for the 
Solaris/Sparc problem, they made no difference.. I still got the crash in 
blitVQQuad32fs().

I have also noticed that the dedicated server crashes in its release 
version (again in botlib) whereas the debug version works fine:

$ gdb \
/export/home/vcojot/SVN/icculus/quake3-Solaris/code/unix/releasesparc/SunOSq3ded
(gdb) r +set vm_game 1 +set vm_cgame 1 +set vm_ui 1 +set sv_pure 1 +set ttycon 0 +map q3dm17
[....]
0 teams with 0 entities
16 items registered
-----------------------------------
------- BotLib Initialization -------

Program received signal SIGSEGV, Segmentation fault.
PC_EvaluateTokens (source=0x414338, tokens=0x43df2c, intvalue=0xffbf7364, 
floatvalue=0x0, integer=1)
     at ../botlib/l_precomp.c:1800
1800                                            v->floatvalue = t->floatvalue;
(gdb) bt
#0  PC_EvaluateTokens (source=0x414338, tokens=0x43df2c, 
intvalue=0xffbf7364, floatvalue=0x0, integer=1)
     at ../botlib/l_precomp.c:1800
#1  0x000beae4 in PC_DollarEvaluate (source=0x414338, intvalue=0xffbf7364, floatvalue=0x0, integer=1)
     at ../botlib/l_precomp.c:2325
#2  0x000bf490 in PC_DollarDirective_evalint (source=0x414338) at ../botlib/l_precomp.c:2558
#3  0x000bf9b4 in PC_ReadDollarDirective (source=0x414338) at ../botlib/l_precomp.c:2641
#4  0x000bfb40 in PC_ReadToken (source=0x414338, token=0xffbf8638) at ../botlib/l_precomp.c:2735
#5  0x000c0dd4 in PC_ExpectAnyToken (source=0x414338, token=0xffbf8638) at ../botlib/l_precomp.c:2870
#6  0x000c4dd4 in ReadNumber (source=0x414338, fd=0xe8ed4, p=0x4a9c5b8) at ../botlib/l_struct.c:83
#7  0x000c5348 in ReadStructure (source=0x414338, def=0xe8e40, structure=0x4a9c504 "grenade")
     at ../botlib/l_struct.c:288
#8  0x000b586c in LoadWeaponConfig (filename=0x4a97d84 "") at ../botlib/be_ai_weap.c:271
#9  0x000b62f8 in BotSetupWeaponAI () at ../botlib/be_ai_weap.c:520
#10 0x000b983c in Export_BotLibSetup () at ../botlib/be_interface.c:155
#11 0x00022e84 in SV_BotLibSetup () at ../server/sv_bot.c:454
#12 0x0002b81c in SV_GameSystemCalls (args=0x18486a0) at ../server/sv_game.c:451
#13 0x0006eb34 in VM_CallInterpreted (vm=0x2761d8, args=0xffbfa130) at ../qcommon/vm_interpreted.c:548
#14 0x0006e098 in VM_Call (vm=0x2761d8, callnum=0) at ../qcommon/vm.c:769
#15 0x0002dadc in SV_SpawnServer (server=0xffbfe730 "q3dm17", killBots=qfalse) at ../server/sv_init.c:442
#16 0x00027fe8 in SV_Map_f () at ../server/sv_ccmds.c:187
#17 0x00046c68 in Cmd_ExecuteString (text=0xffbfe890 "map q3dm17") at ../qcommon/cmd.c:645
#18 0x00046f50 in Cbuf_Execute () at ../qcommon/cmd.c:220
#19 0x0004c894 in Com_Frame () at ../qcommon/common.c:2707
#20 0x000c7dcc in main (argc=18, argv=0xffbff1fc) at ../unix/unix_main.c:1323

I'll try to gather more info when I get home tonight on a faster machine..

-- 
,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,
Vincent S. Cojot, Computer Engineering. STEP project. _.,-*~'`^`'~*-,._.,-*~
Ecole Polytechnique de Montreal, Comite Micro-Informatique. _.,-*~'`^`'~*-,.
Linux Xview/OpenLook resources page _.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'
http://step.polymtl.ca/~coyote  _.,-*~'`^`'~*-,._ coyote at NOSPAM4cojot.name

They cannot scare me with their empty spaces
Between stars - on stars where no human race is
I have it in me so much nearer home
To scare myself with my own desert places.       - Robert Frost





More information about the quake3 mailing list