Breakpoint 3, nv30_screen_destroy (pscreen=0x80776e0) at nv30/nv30_screen.c:310 warning: Source file is more recent than executable. 310 { (gdb) n 313 if (!nouveau_drm_screen_unref(&screen->base)) (gdb) p screen->base.device->fd value has been optimized out (gdb) c Continuing. Breakpoint 2, 0xb7c08b70 in close () from /usr/lib/libc.so.6 (gdb) bt #0 0xb7c08b70 in close () from /usr/lib/libc.so.6 #1 0xb7ad0902 in dri2DestroyScreen (base=0x805f608) at dri2_glx.c:712 #2 0xb7aa9d59 in FreeScreenConfigs (priv=0x805da10, priv=0x805da10) at glxext.c:208 #3 0xb7aa9de2 in glx_display_free (priv=priv@entry=0x805da10) at glxext.c:231 #4 0xb7aa9f33 in __glXCloseDisplay (dpy=0x804e348, codes=0x805da54) at glxext.c:277 #5 0xb7e663e1 in XCloseDisplay () from /usr/lib/libX11.so.6 #6 0x08048d3b in glxtest() () #7 0x08048d85 in main () (gdb) up #1 0xb7ad0902 in dri2DestroyScreen (base=0x805f608) at dri2_glx.c:712 712 close(psc->fd); (gdb) p psc->fd $5 = 4 (gdb) c Continuing. Breakpoint 3, nv30_screen_destroy (pscreen=0x80776e0) at nv30/nv30_screen.c:310 310 { (gdb) n 313 if (!nouveau_drm_screen_unref(&screen->base)) (gdb) p screen->base.device->fd value has been optimized out (gdb) c Continuing. Breakpoint 2, 0xb7c08b70 in close () from /usr/lib/libc.so.6 (gdb) bt #0 0xb7c08b70 in close () from /usr/lib/libc.so.6 #1 0xb7ad0902 in dri2DestroyScreen (base=0x80817f0) at dri2_glx.c:712 #2 0xb7aa9d59 in FreeScreenConfigs (priv=0x805da10, priv=0x805da10) at glxext.c:208 #3 0xb7aa9de2 in glx_display_free (priv=priv@entry=0x805da10) at glxext.c:231 #4 0xb7aa9f33 in __glXCloseDisplay (dpy=0x804e348, codes=0x805da54) at glxext.c:277 #5 0xb7e663e1 in XCloseDisplay () from /usr/lib/libX11.so.6 #6 0x08048d3b in glxtest() () #7 0x08048d85 in main () (gdb) up #1 0xb7ad0902 in dri2DestroyScreen (base=0x80817f0) at dri2_glx.c:712 712 close(psc->fd); (gdb) p psc->fd $6 = 5 (gdb) c Continuing. Breakpoint 2, 0xb7c08b70 in close () from /usr/lib/libc.so.6 (gdb) bt #0 0xb7c08b70 in close () from /usr/lib/libc.so.6 #1 0xb7b12aca in xcb_disconnect () from /usr/lib/libxcb.so.1 #2 0xb7e66410 in XCloseDisplay () from /usr/lib/libX11.so.6 #3 0x08048d3b in glxtest() () #4 0x08048d85 in main () (gdb) up #1 0xb7b12aca in xcb_disconnect () from /usr/lib/libxcb.so.1 (gdb) c Continuing. VENDOR nouveau RENDERER Gallium 0.4 on NV34 VERSION 1.5 Mesa 10.2.1 TFP TRUE [Inferior 1 (process 7718) exited normally]