Bus Error in model_alias.c
EoD created issue #212 (closed) on 2010-12-15T16:52:36Z:
I tried to set up a Xonotic dedicated server on my Linux/Sparc box and it compiled fine when I removed the "msse" flag from the Makefile.
But I got a Bus Error while starting the server. Here are the last few lines of the backtrace:
<pre>#0 0x001c21dc in Mod_INTERQUAKEMODEL_Load at model_alias.c:3089
#1 0x001f0b44 in Mod_LoadModel at model_shared.c:485
#2 0x001f1150 in Mod_ForName at model_shared.c:598
Due to my poor programming practice, I didn’t dare to mess with the engines code, but I think I found the problem.
The actual problem is in line model_alias.c:3079
>ofs_vertexarrays 210 (as on my x86 machine btw. The LittleLong(l) seem to work quite nice!)
sizeof (iqmvertexarray_t) 20 (= 5 * sizeof (int))va = ;
Here are some variables
header
header->ofs_vertexarrays % sizeof(iqmvertexarray_t) == 10
and I think it should be 0 that the alignment check succeeds.
I can provide you with more information of course, just tell me what you need to know!