Description of problem: When a client is trying to run a program, openGL (or a part of) is seg.faulting. Version-Release number of selected component (if applicable): How reproducible: Every time Steps to Reproduce: 1. gcc -Wall -g -o crasher crasher.c -LX11 -lGL -lGLU -lglut -lm 2. ./crasher 3. Actual results: Segmentation Faults Expected results: Run without any problem Additional info: This is the error message that I get off gdb. Program received signal SIGSEGV, Segmentation fault. 0x080488b3 in display () with -Wall -g option to gcc, I got following error messages in gdb; Starting program: /junk/redhat/osgviewer/crasher Program received signal SIGSEGV, Segmentation fault. 0x080488b3 in display () at crasher.c:17 17 ++(*p); ================Crasher.c================================= #include <stdlib.h> #include <GL/gl.h> #include <GL/glu.h> #include <GL/glut.h> void display( ) { char *p=0; glOrtho(-1, 1, -1, 1, -1, 1); glClearColor(0.5, 0.5, 0.5, 1); glClear(GL_COLOR_BUFFER_BIT); glColor3f(1, 0, 0); glBegin(GL_TRIANGLES); glVertex2f(-0.5, -0.5); glVertex2f( 0.5, -0.5); glVertex2f( 0 , 0.5); /* the next line causes the crash with an OpenGL context open */ ++(*p); glEnd( ); glFlush( ); } int main (int argc, char *argv[]) { glutInit(&argc, argv); glutInitDisplayMode(GLUT_RGB); glutInitWindowSize(640, 480); glutCreateWindow("Hello World"); glutDisplayFunc(display); glutMainLoop( ); return(0); } ================================================================
I'm closing this for now, and will reopen if a better test case is provided.
Created attachment 113427 [details] an opengl tutorial
I submitted an opengl tutorial that is a better example of something that will hang the PC. I'm having the same problem, except my prog doesn't crash, it hangs the whole machine. I've tried openglut, freeglut, and SDL. Steps to reproduct: Compile program (gcc -o prog prog.c -lGL -lglut|openglut -lGLU) run program Let it do it's thing for a few seconds .. give it 5 or 10 seconds Move your mouse over the titlebar for the window I can reproduce this error 100% of the time. Feel free to contact me if I can help in any way. I'd like to see this issue resolved quickly. Thanks so much! j
Hi Justin, Red Hat Enterprise Linux support is provided by Red Hat Global Support Services. If you are a Red Hat Enterprise Linux customer with an active support entitlement, you can receive support by logging into the Red Hat Support website for assistance with the problem you are experiencing. http://www.redhat.com/apps/support If you have any other questions about Red Hat Enterprise Linux support, you can also contact Red Hat support services via telephone at 1-888-REDHAT1. Hope this helps.
Um. Nope. Not really. I was actually trying to help you, and everyone who uses redhat products. I don't use enterprise, I use fedora. Should I take it you have no interest in resolving this issue?
This works just fine for me with freeglut on my FC-3 system. Are you by any chance using non-open source video drivers? nVidia or ATI provided driver kernel modules?
hmm. That's strange. It must be a hardware or specific driver issue. On my workstation I'm running the radeon kernel driver. I'm using all FC3 distro stuff. Straight from the depos ;) It also crashes on my (admittedly old) laptop which is I believe is running a neomagic driver... all open source. I'd love to give you a core dump, but .. I don't get one. Is there something I can do to help narrow down this issue?