Bug 102408

Summary: Mesa not compiled with "__GLX_ALIGN64"
Product: Red Hat Enterprise Linux 2.1 Reporter: Brett Johnson <brett.johnson>
Component: mesaAssignee: X/OpenGL Maintenance List <xgl-maint>
Status: CLOSED CURRENTRELEASE QA Contact: Jay Turner <jturner>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.1CC: srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: ia64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-05-10 23:05:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Brett Johnson 2003-08-14 20:55:51 UTC
Description of problem:

A simple OpenGL program (attached) will generate an unaligned access (even
though RedHat's kernel won't display it anywhere by default ;o).  This has a
pretty large effect on performance, and/or will cause a core dump if the program
is run with "prctl --unaligned=signal".  This appears to be fixed in Mesa, if
it's compiled with the "-D__GLX_ALIGN64" option.

Version-Release number of selected component (if applicable):

Mesa-3.4.2-10

How reproducible:

Always


Steps to Reproduce:

1. Save the following program as "test.c"

--snip--
void display( void ) {glScaled( 1.0, 1.0, 1.0 );}
main( int argc, char *argv[] ) {
    glutInit( &argc, argv );
    glutCreateWindow( "test" );
    glutDisplayFunc( display );
    glutMainLoop();
}
--snip--

2. Compile test.c...

$ gcc -lglut -lGLU -lGL -lm -o test test.c

3. Run the program with prctl...

$ prctl --unaligned=signal ./test
    
Actual results:

Core dump.

Expected results:

No core dump.

Additional info:

Comment 6 Mike A. Harris 2005-05-10 23:05:03 UTC
Mesa is compiled with this option by default in RHEL 3 and RHEL 4.

Setting status to "CURRENTRELEASE".