Segmentation fault in FitzQuake SDL 0.80 with Ubuntu

Discuss programming topics for any language, any source base. If it is programming related but doesn't fit in one of the below categories, it goes here.
Post Reply
JasonX
Posts: 422
Joined: Tue Apr 21, 2009 2:08 pm

Segmentation fault in FitzQuake SDL 0.80 with Ubuntu

Post by JasonX »

I'm having a weird segmentation fault in FitzQuake SDL 0.80 with Ubuntu. I have compiled it myself using scons, instead of using the provided Code::Blocks project. Maybe i missed something? GDB says:

Program terminated with signal 11, Segmentation fault.
#0 0x00007f31fc715996 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
JasonX
Posts: 422
Joined: Tue Apr 21, 2009 2:08 pm

Re: Segmentation fault in FitzQuake SDL 0.80 with Ubuntu

Post by JasonX »

Update: Changed -O3 to -O2 and added -Wall. Now i get a different output from GDB:

Program terminated with signal 11, Segmentation fault.
#0 TexMgr_ReloadImage (glt=0x7fb5056ea0d0, shirt=<optimized out>,
pants=<optimized out>) at src/gl_texmgr.c:1246
1246 *dst++ = translation[*src++];
(gdb) bt
#0 TexMgr_ReloadImage (glt=0x7fb5056ea0d0, shirt=<optimized out>,
pants=<optimized out>) at src/gl_texmgr.c:1246
#1 0x000000000044c999 in R_TranslateNewPlayerSkin (playernum=0)
at src/gl_rmisc.c:283
#2 0x0000000000408a4a in CL_ParseUpdate (bits=78) at src/cl_parse.c:412
#3 0x000000000040911a in CL_ParseServerMessage () at src/cl_parse.c:760
#4 0x0000000000416ded in CL_ReadFromServer () at src/cl_main.c:588
#5 0x0000000000435f0d in _Host_Frame (time=0.00100000005) at src/host.c:689
#6 0x0000000000403df1 in main (argc=<optimized out>, argv=<optimized out>)
at src/main.c:136
Baker
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

Re: Segmentation fault in FitzQuake SDL 0.80 with Ubuntu

Post by Baker »

I'd download Quakespasm and compile that on your target and see if it works if self-compiled in CodeBlocks.

At least before compiling FitzQuake 0.80 SDL.

FitzQuake 0.80 is, to the best of my knowledge, pre-64 bit. Unlike Quakespasm.

Then if Quakespasm worked fine, you could look at the Quakespasm CodeBlocks project settings and options and fix your FitzQuake 0.80.

(Quakespasm is basically FitzQuake 0.80 that has been actively developed and improved).
The night is young. How else can I annoy the world before sunsrise? 8) Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
JasonX
Posts: 422
Joined: Tue Apr 21, 2009 2:08 pm

Re: Segmentation fault in FitzQuake SDL 0.80 with Ubuntu

Post by JasonX »

Yeah, that's it. QuakeSpasm works perfectly, same scons build script. I'll mess around in the 64 bit changes they made. :)
metlslime
Posts: 316
Joined: Tue Feb 05, 2008 11:03 pm

Re: Segmentation fault in FitzQuake SDL 0.80 with Ubuntu

Post by metlslime »

Baker wrote:(Quakespasm is basically FitzQuake 0.80 that has been actively developed and improved).
0.85 actually :)
SleepwalkR
Posts: 53
Joined: Sat Oct 02, 2010 5:42 am

Re: Segmentation fault in FitzQuake SDL 0.80 with Ubuntu

Post by SleepwalkR »

Don't use Fitzquake SDL 0.80 for anything - it never really made it out of beta and was superseded by QuakeSpasm.
Post Reply