Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 159630 - games-fps/tremulous-1.1.0 segmentation fault in R_FogFactor
Summary: games-fps/tremulous-1.1.0 segmentation fault in R_FogFactor
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-01 10:49 UTC by Jaak Ristioja
Modified: 2015-07-30 15:19 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
GDB output (tremcrash,38.57 KB, text/plain)
2007-01-01 10:57 UTC, Jaak Ristioja
Details
emerge --info (emerge.info,3.32 KB, text/plain)
2007-01-01 10:58 UTC, Jaak Ristioja
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaak Ristioja 2007-01-01 10:49:13 UTC
Received signal 11, exiting...
----- CL_Shutdown -----
Closing SDL audio device...
SDL audio device shut down.
RE_Shutdown( 1 )
-----------------------
Shutdown tty console
Comment 1 Jaak Ristioja 2007-01-01 10:57:21 UTC
Created attachment 105090 [details]
GDB output

I recompiled tremulous with -g -ggdb3 and gathered what I could think of being neccessary.
Comment 2 Jaak Ristioja 2007-01-01 10:58:28 UTC
Created attachment 105091 [details]
emerge --info

Output of "emerge --info"
Comment 3 Jaak Ristioja 2007-01-04 02:57:44 UTC
...and reproducing this wouldn't currently be a problem.
Comment 4 Jaak Ristioja 2007-01-11 09:33:37 UTC
I just found a discussion about this over at http://tremulous.net/phpBB2/viewtopic.php?p=42039
Comment 5 Kyle Hunter 2007-01-15 04:23:50 UTC
http://bugzilla.icculus.org/show_bug.cgi?id=2998

I filed a bug on Tremulous' bugzilla about this. It doesn't look good -- I don't think any of the developers have an intention of fixing this.

Please post these attachments to the Tremulous Bugzilla bug I filed for it! I'm always on Freenode under the name "Phenax" if you want to try to devise a solution for it with me.
Comment 6 Kyle Hunter 2007-01-15 18:14:04 UTC
Oh, and you might want to try to reproduce this bug in ioq3 (Icculus Quake 3). Tim Angus said that Tremulous' renderer was not modified much from the originaly ioq3 code.
Comment 7 Anton Romanov 2007-01-27 19:18:41 UTC
not sure i have the same issue .. but such segfault i get every time i enter any map ... sometimes when i just loaded map .. sometimes when i spawned ....

and i'm on x86, not 64
Comment 8 Jaak Ristioja 2008-03-14 19:48:28 UTC
(In reply to comment #7)
> not sure i have the same issue .. but such segfault i get every time i enter
> any map ... sometimes when i just loaded map .. sometimes when i spawned ....
> 
> and i'm on x86, not 64
> 

Not likely. However you might try to get a backtrace and compare it to the one posted here as an attachment to tell whether it's the same issue.
Comment 9 Jaak Ristioja 2008-07-12 19:45:10 UTC
Using the tremulous-1.1.0-r2.ebuild from bug 222119, i could reproduce and generate a core dump. Here is the backtrace:
#0  0x000000000046d5ae in R_FogFactor (s=<value optimized out>, t=-nan(0x7fffff)) at src/renderer/tr_image.c:4577
#1  0x000000000047d026 in RB_CalcModulateAlphasByFog (
    colors=0x10bcf00 "f\031\031�f\031\031�f\031\031�f\031\031�\177\177\177\001\177\177\177\001\177\177\177\001\177\177\177\001\177\177\177f\177\177\177f\177\177\177f\177\177\177f\177\177\177L\177\177\177L\177\177\177L\177\177\177L\177\177\177\032\177\177\177\032\177\177\177\032\177\177\177\032", '�' <repeats 120 times>...) at src/renderer/tr_shade_calc.c:765
#2  0x000000000047bbd3 in RB_StageIteratorGeneric () at src/renderer/tr_shade.c:933
#3  0x000000000047aa1f in RB_EndSurface () at src/renderer/tr_shade.c:1447
#4  0x0000000000464047 in RB_RenderDrawSurfList (drawSurfs=<value optimized out>, numDrawSurfs=3236) at src/renderer/tr_backend.c:565
#5  0x0000000000464358 in RB_DrawSurfs (data=0x7fcf7bf744f8) at src/renderer/tr_backend.c:906
#6  0x000000000046442b in RB_ExecuteRenderCommands (data=0x7fcf7bf744f8) at src/renderer/tr_backend.c:1081
#7  0x00000000004698cf in RE_EndFrame (frontEndMsec=0x0, backEndMsec=0x0) at src/renderer/tr_cmds.c:433
#8  0x00000000004149aa in SCR_UpdateScreen () at src/client/cl_scrn.c:519
#9  0x000000000041175f in CL_Frame (msec=13) at src/client/cl_main.c:2190
#10 0x0000000000427f89 in Com_Frame () at src/qcommon/common.c:2679
#11 0x000000000048bf5b in main (argc=1, argv=0x7fff8f5cd5a8) at src/unix/unix_main.c:1489

Variable i (int) overflows, i guess:

(gdb) f 1
(gdb) print i
$8 = -2147483648
(gdb) list
760             // this is not wasted, because it would only have
761             // been previously called if the surface was opaque
762             RB_CalcFogTexCoords( texCoords[0] );
763
764             for ( i = 0; i < tess.numVertexes; i++, colors += 4 ) {
765                     float f = 1.0 - R_FogFactor( texCoords[i][0], texCoords[i][1] );
Comment 10 Pacho Ramos gentoo-dev 2012-10-22 18:14:44 UTC
Are you still getting this with 1.1.0-r4?
Comment 11 Mr. Bones. (RETIRED) gentoo-dev 2015-07-30 15:19:21 UTC
games-fps/tremulous is gone.