* Bug in Linux/AXP Mesa 3.0?
@ 1999-01-31 20:03 Daniel J. Frasnelli
1999-01-31 20:41 ` Peter Petrakis
0 siblings, 1 reply; 5+ messages in thread
From: Daniel J. Frasnelli @ 1999-01-31 20:03 UTC (permalink / raw)
To: axp-list
[-- Attachment #1: Type: text/plain, Size: 886 bytes --]
Hey,
Just playing around with FlightGear 0.57 (www.flightgear.org) on
my Alpha, and came across a potential bug in Mesa-3.0's gl_Ortho(). I
first used an install of Mesa 3.0 from the straight source code, but
installed Designer 7's rpm builds thinking it was a bug not addressed in the
official version yet. Attached are a gdb trace and strace showing where
the program bombs out after starting.
The system is a DEC 500a, 128M ram running an updated RH 5.2, kernel
2.0.36, egcs 1.0.3a, Mesa-3.0-2 and Mesa-glut-* rpm builds from Peter's site.
Submitted an inquiry to Curt Olson (FGFS project leader) in hopes that someone
else has seen the problem before. Obviously I have not provided enough
information here for a bugfix; just want to see if anyone else encountered
the same problem before I dive headfirst into tracking down the source of
the trouble.
Thanks,
Daniel
[-- Attachment #2: strace-fgfs.ascii --]
[-- Type: text/plain, Size: 2260 bytes --]
write(2, "n", 1n) = 1
write(2, "\n", 1
) = 1
brk(0x1207d6000) = 0x1207d6000
brk(0x1207da000) = 0x1207da000
brk(0x1207e4000) = 0x1207e4000
open("/usr/local/lib/FlightGear/Textures/Splash2.rgb", O_RDONLY) = 4
fstat(4, {st_mode=01, st_size=917754001, ...}) = 0
mmap(0, 4831832512, PROT_WRITE|PROT_EXEC|0x1b0, 0 /* MAP_??? */, 0, 0) = 0x15555566000
read(4, "\1\332\1\1\0\3\1\0\1\0\0\3\0\0\0"..., 8192) = 8192
read(4, "[^bxvQqL^dr|cbZcnPIq\204g_}XD\202"..., 8192) = 8192
lseek(4, 0, SEEK_CUR) = 16384
brk(0x1207f6000) = 0x1207f6000
lseek(4, 0, SEEK_SET) = 0
read(4, "\1\332\1\1\0\3\1\0\1\0\0\3\0\0\0"..., 512) = 512
read(4, "\0\0\32\0\0\0\35\21\0\0 \"\0\0#4"..., 8192) = 8192
mmap(0, 1466015571968, 0x2000, 0 /* MAP_??? */, 0, 0) = 0x15556afc000
read(4, "pi\203\202|d\232\210yz~\207{\213"..., 8192) = 8192
read(4, "\325\310\267\233\256\222\240\305"..., 8192) = read(4, "^\201\231Z\4Ao\217\222\177\277\207"..., 8192) = 8192
read(4, "\213*\2000?\203\223~\221\232\211"..., 8192) = 8192
read(4, "\201tVU;AN\33]jASgUlwgp:Dm|x\233"..., 8192) = 8192
read(4, "np\245\311\7\7\202\271vp*M\310\231"..., 8192) = 8192
read(4, "r\244h@\201N6l_j`[o2<amQH\313~\234"..., 8192) = 8192
read(4, "qdS\212vo\215rfm\201\204L\\\234{"..., 8192) = 8192
read(4, "\234\223\242\245\245\232\227\210"..., 8192) = 8192
read(4, "\207\220\222\250\253\302\262\255"..., 8192) = 8192
read(4, "\304\3\303\0\376_CJf@N\16\17qoK@"..., 8192) = 8192
read(4, "\217\223\206\203\216\231\200\223"..., 8192) = 8192
read(4, "\202\314\314\3\313\213\312\312\311"..., 8192) = 8192
read(4, "\201{rm{{\177jhx\201\201\213\214"..., 8192) = 8192
read(4, "\3\331\4\332\6\v\202z\330\4\327\4"..., 8192) = 8192
read(4, "\274\17\v\201f\3\263\3\262\3\261"..., 8192) = 8192
read(4, "\223\216\326\340\340\257\216\272"..., 8192) = 3226
close(4) = 0
munmap(0x15555566000, 8192) = 0
mmap(0, 8192, 0x2000, 0 /* MAP_??? */, 0, 0) = 0x15556bbe000
mmap(0, 8192, 0x2000, 0 /* MAP_??? */, 0, 0) = 0x15556bf0000
munmap(0x15556bbe000, 204800) = 0
--- SIGFPE (Floating point exception) ---
+++ killed by SIGFPE +++
[-- Attachment #3: gdb-fgfs.ascii --]
[-- Type: text/plain, Size: 1484 bytes --]
(gdb) run
Starting program: /usr/local/bin/fgfs
Reading symbols from /usr/lib/libglut.so.3...done.
Reading symbols from /usr/lib/libMesaGLU.so.3...done.
Reading symbols from /usr/lib/libMesaGL.so.3...done.
Reading symbols from /usr/X11R6/lib/libXmu.so.6...done.
Reading symbols from /usr/X11R6/lib/libXt.so.6...done.
Reading symbols from /usr/X11R6/lib/libSM.so.6...done.
Reading symbols from /usr/X11R6/lib/libICE.so.6...done.
Reading symbols from /usr/X11R6/lib/libXi.so.6...done.
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Reading symbols from /lib/libm.so.6.1...done.
Reading symbols from /usr/lib/libstdc++.so.2.8...done.
Reading symbols from /lib/libc.so.6.1...done.
Reading symbols from /lib/ld-linux.so.2...done.
Reading in symbols for dl-debug.c...done.
Reading in symbols for rtld.c...done.
Reading in symbols for dl-init.c...done.
Flight Gear: Version 0.57
General Initialization
======= ==============
Processing config file: /usr/local/lib/FlightGear/system.fgfsrc
Processing config file: /home/dfrasnel/.fgfsrc
Processing command line arguments
Opening a window: 640x480
Mesa X11
General Initialization
======= ==============
FG_ROOT = /usr/local/lib/FlightGear
Initializing splash screen
Reading in symbols for matrix.c...done.
Program received signal SIGFPE, Arithmetic exception.
0x155559463d4 in gl_Ortho ()
Current language: auto; currently c
(gdb)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bug in Linux/AXP Mesa 3.0?
1999-01-31 20:03 Bug in Linux/AXP Mesa 3.0? Daniel J. Frasnelli
@ 1999-01-31 20:41 ` Peter Petrakis
1999-01-31 21:07 ` Daniel J. Frasnelli
0 siblings, 1 reply; 5+ messages in thread
From: Peter Petrakis @ 1999-01-31 20:41 UTC (permalink / raw)
To: axp-list
I can't even get that far. With the Mesa I built I get on execution.
(more)
General Initialization
======= ==============
Processing config file: /usr/local/lib/FlightGear/system.fgfsrc
Processing config file: /root/.fgfsrc
Processing command line arguments
Opening a window: 640x480
Mesa X11
General Initialization
======= ==============
FG_ROOT = /usr/local/lib/FlightGear
Initializing splash screen
Floating point exception
Hmmm. D's rpms have optimizations for the 21164. Did you get any FP
exceptions at all?
There's a beta version of Mesa out that does not build at all on Alpha
but it may have corrected that method you found. It's on
contrib.redhat.com
Peter Petrakis
"Daniel J. Frasnelli" wrote:
>
> Hey,
> Just playing around with FlightGear 0.57 (www.flightgear.org) on
> my Alpha, and came across a potential bug in Mesa-3.0's gl_Ortho(). I
> first used an install of Mesa 3.0 from the straight source code, but
> installed Designer 7's rpm builds thinking it was a bug not addressed in the
> official version yet. Attached are a gdb trace and strace showing where
> the program bombs out after starting.
> The system is a DEC 500a, 128M ram running an updated RH 5.2, kernel
> 2.0.36, egcs 1.0.3a, Mesa-3.0-2 and Mesa-glut-* rpm builds from Peter's site.
> Submitted an inquiry to Curt Olson (FGFS project leader) in hopes that someone
> else has seen the problem before. Obviously I have not provided enough
> information here for a bugfix; just want to see if anyone else encountered
> the same problem before I dive headfirst into tracking down the source of
> the trouble.
>
> Thanks,
> Daniel
>
> ------------------------------------------------------------------------
>
> strace-fgfs.asciiName: strace-fgfs.ascii
> Type: Plain Text (text/plain)
>
> gdb-fgfs.asciiName: gdb-fgfs.ascii
> Type: Plain Text (text/plain)
--
STCC DEC Alpha Resource Page
http://math.stcc.mass.edu/petrakis
PeterPan@wn.net AlphaGuy =)
"BLAM! Who the hell are you!? Name's Ash <click clock> Housewares..."
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bug in Linux/AXP Mesa 3.0?
1999-01-31 20:41 ` Peter Petrakis
@ 1999-01-31 21:07 ` Daniel J. Frasnelli
1999-01-31 21:15 ` Peter Petrakis
0 siblings, 1 reply; 5+ messages in thread
From: Daniel J. Frasnelli @ 1999-01-31 21:07 UTC (permalink / raw)
To: axp-list
Thanks for giving the old school try, Peter. I just upgraded to the
latest Mesa from contrib, but it still doesn't solve the problem.
Initializing splash screen
Reading in symbols for matrix.c...done.
Program received signal SIGFPE, Arithmetic exception.
0x1555599c2e0 in gl_Ortho ()
Current language: auto; currently c
(gdb)
Guess it's time to go a' hunting for bugs in the code.
Daniel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bug in Linux/AXP Mesa 3.0?
1999-01-31 21:07 ` Daniel J. Frasnelli
@ 1999-01-31 21:15 ` Peter Petrakis
1999-01-31 21:30 ` Daniel J. Frasnelli
0 siblings, 1 reply; 5+ messages in thread
From: Peter Petrakis @ 1999-01-31 21:15 UTC (permalink / raw)
To: axp-list
I noticed as I was watching the compilation that make did something like
set INT32=0x00000000 or something to that effect.The game's code may not
be 64bit clean along with Mesa not being too Alpha friendly either with
all those "cast to int" warnings . It makes me just wanna rewrite mesa
and make it trully 64 bit and optimize the hell out of it. I'm an O.K
programmer (I'm still a student). How bout an organized effort to make
an 64 bit version of Mesa that wouldn't just benifit us but our Sparc,
and Mips(They're 64 bit right?) friends as well.
Peter Petrakis
"Daniel J. Frasnelli" wrote:
>
> Thanks for giving the old school try, Peter. I just upgraded to the
> latest Mesa from contrib, but it still doesn't solve the problem.
>
> Initializing splash screen
> Reading in symbols for matrix.c...done.
>
> Program received signal SIGFPE, Arithmetic exception.
> 0x1555599c2e0 in gl_Ortho ()
> Current language: auto; currently c
> (gdb)
>
> Guess it's time to go a' hunting for bugs in the code.
>
> Daniel
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
--
STCC DEC Alpha Resource Page
http://math.stcc.mass.edu/petrakis
PeterPan@wn.net AlphaGuy =)
"BLAM! Who the hell are you!? Name's Ash <click clock> Housewares..."
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bug in Linux/AXP Mesa 3.0?
1999-01-31 21:15 ` Peter Petrakis
@ 1999-01-31 21:30 ` Daniel J. Frasnelli
0 siblings, 0 replies; 5+ messages in thread
From: Daniel J. Frasnelli @ 1999-01-31 21:30 UTC (permalink / raw)
To: axp-list
> I noticed as I was watching the compilation that make did something like
> set INT32=0x00000000 or something to that effect.The game's code may not
> be 64bit clean along with Mesa not being too Alpha friendly either with
> all those "cast to int" warnings . It makes me just wanna rewrite mesa
> and make it trully 64 bit and optimize the hell out of it. I'm an O.K
> programmer (I'm still a student). How bout an organized effort to make
> an 64 bit version of Mesa that wouldn't just benifit us but our Sparc,
> and Mips(They're 64 bit right?) friends as well.
You're talking about one heck of an undertaking, Peter. I think a
safer solution would be to work with Brian Paul (author of Mesa) to work out
the endian/64-bittedness bugs in the existing linux-alpha, linux-alpha-elf,
linux-etc. support. Breaking a project in two may allow us to create a
64-bit clean version of Mesa, but that approach really does not fix anything
-- Brian will have to face similar issues if/when the AMD K7 and Merced
become the choice of Linux/x86 users. Better to plan for the future than
have tunnel vision :-)
Daniel
- The whole issue of Mesa working or not may become irrelevant if MetroLink
and XiG deliver a good solution for hardware accelerated OpenGL on Linux.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1999-01-31 21:36 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-01-31 20:03 Bug in Linux/AXP Mesa 3.0? Daniel J. Frasnelli
1999-01-31 20:41 ` Peter Petrakis
1999-01-31 21:07 ` Daniel J. Frasnelli
1999-01-31 21:15 ` Peter Petrakis
1999-01-31 21:30 ` Daniel J. Frasnelli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox