View Single Post
Old 07-31-04, 09:37 AM   #2
poochiereds
Registered User
 
Join Date: Jul 2004
Posts: 5
Default Re: OpenGL apps hanging on exit

A little more info. I built the opengl-sdl program that comes as a sample in programming linux games. I've attached the source to it here. This program has the same issue as the others I've tried. I ran it under the debugger and got a stack trace:

#0 0xffffe410 in __kernel_vsyscall ()
#1 0x4025ae6c in sched_yield () from /lib/tls/i686/cmov/libc.so.6
#2 0x4015cc91 in _nv000028gl () from /usr/lib/libGL.so.1
#3 0x407d4762 in _nv001156gl () from /usr/lib/libGLcore.so.1
#4 0x08068a48 in ?? ()
#5 0x08097cc8 in ?? ()
#6 0x08097cf8 in ?? ()
#7 0x08097cc8 in ?? ()
#8 0x00000000 in ?? ()
#9 0x40158b77 in glXChannelRectSyncSGIX () from /usr/lib/libGL.so.1
#10 0x41502040 in ?? ()
#11 0x08068b24 in ?? ()
#12 0x00000000 in ?? ()
#13 0x00000001 in ?? ()
#14 0x0804c130 in ?? ()
#15 0x4015b5fb in glXChannelRectSyncSGIX () from /usr/lib/libGL.so.1
#16 0x08068b24 in ?? ()
#17 0x4008de9c in ?? () from /usr/lib/libSDL-1.2.so.0
#18 0x0804a318 in ?? ()
#19 0x40091e60 in _copy_row () from /usr/lib/libSDL-1.2.so.0
#20 0xbffffa88 in ?? ()
#21 0x00000000 in ?? ()
#22 0x0804c130 in ?? ()
#23 0x4015585e in glXMakeCurrent () from /usr/lib/libGL.so.1
#24 0x0804c130 in ?? ()
#25 0x00000000 in ?? ()
#26 0x00000000 in ?? ()
#27 0x00000000 in ?? ()
#28 0x4015c198 in glXChannelRectSyncSGIX () from /usr/lib/libGL.so.1
#29 0x40064901 in X11_GL_Shutdown () from /usr/lib/libSDL-1.2.so.0
Previous frame inner to this frame (corrupt stack?)

I've attached the source to opengl-sdl.c to this (copyright John Hall and no starch press).

Since this seems to be somewhat related to libc6, the library above is from package:

ii libc6-i686 2.3.2.ds1-13

Again, any help is appreciated!
Attached Files
File Type: txt opengl-sdl.c.txt (1.6 KB, 160 views)

Last edited by poochiereds; 07-31-04 at 09:53 AM.
poochiereds is offline   Reply With Quote