ThibaultLemaire/HomeworldSDL

Segfault with linuxfixme

Opened this issue · 3 comments

While testing the behaviour of my changes for #24, I stumbled upon a segfault. This happens on current master (266c358). When compiling again using --disable-linuxfixme this segfault doesn't happen.

This is the save file on which this occurs. The segfault should occur a few seconds after, about when the harvester comes to the right side of the "gas cloud".

Well then it must be from here 40c5ede

0xffffffff is only 32 ones. No wonder it doesn't trigger on 64b. I believe this should be MINUS1 but further investigation into where this mesh pointer is set is required to be certain.

Also, I don't know what this 'fixme' is supposed to fix. It is 12 years old now, and is tagged as 'LINUX_FIX_ME' (meaning it would work on other platforms) so maybe it was an oddity of Linux at the time and doesn't hold now?

Just for the record, I'll note that the segfault occurs in meshMorphedObjectRender (../../../src/Game/Mesh.c:2045)