PDA

View Full Version : X server restart problem



dimensionX
06-16-2007, 10:01 PM
I've written a program to create a window and attach an OpenGL context to it. Everything works fine (I get hardware acceleration etc...) except when I press "Esc" to quit the application. It restarts my X server. It's like pressing "Ctrl + Alt + Backspace" brings me back to the login screen. Is there something I need to change in the xorg.conf file or is there a special to way to close the OpenGL window ?

I'm using Fedore 6.0 + Geforce 8800GTX + series 100 drivers.

Now it says the following:
*** glibc detected *** ./TextureTransferRates: munmap_chunk(): invalid pointer: 0xb6aaf008 ***
======= Backtrace: =========
/lib/libc.so.6(cfree+0x1bb)[0x484ec81b]
/usr/lib/nvidia/libGL.so.1[0x492a9aee]
======= Memory map: ========
00110000-00164000 r-xp 00000000 fd:00 9937316 /usr/lib/libXt.so.6.0.0
00164000-00168000 rwxp 00054000 fd:00 9937316 /usr/lib/libXt.so.6.0.0
00168000-0016a000 rwxp 00000000 00:10 1682 /dev/zero
0029e000-0029f000 r-xp 0029e000 00:00 0 [vdso]
0029f000-00c6e000 r-xp 00000000 fd:00 10454192 /usr/lib/nvidia/libGLcore.so.100.14.09
00c6e000-00ca6000 rwxp 009cf000 fd:00 10454192 /usr/lib/nvidia/libGLcore.so.100.14.09
00ca6000-00caa000 rwxp 00ca6000 00:00 0
00e98000-00ec9000 r-xp 00000000 fd:00 9932719 /usr/lib/libGLEW.so.1.4
00ec9000-00ecb000 r-xp 00031000 fd:00 9932719 /usr/lib/libGLEW.so.1.4
00ecb000-00ecc000 rwxp 00033000 fd:00 9932719 /usr/lib/libGLEW.so.1.4
00ecc000-00ecd000 rwxp 00ecc000 00:00 0
08048000-08073000 r-xp 00000000 fd:00 7210163 /home/arun/Work/Gauda/Test/TextureTransferRates/TextureTransferRates
08073000-08074000 rwxp 0002a000 fd:00 7210163 /home/arun/Work/Gauda/Test/TextureTransferRates/TextureTransferRates
08876000-089d1000 rwxp 08876000 00:00 0
47a55000-47a6e000 r-xp 00000000 fd:00 3080194 /lib/ld-2.5.so
47a6e000-47a6f000 r-xp 00018000 fd:00 3080194 /lib/ld-2.5.so
47a6f000-47a70000 rwxp 00019000 fd:00 3080194 /lib/ld-2.5.so
47a72000-47a73000 r-xp 00000000 fd:00 10485824 /usr/lib/nvidia/tls/libnvidia-tls.so.100.14.09
47a73000-47a74000 rwxp 00000000 fd:00 10485824 /usr/lib/nvidia/tls/libnvidia-tls.so.100.14.09
47acc000-47ae2000 r-xp 00000000 fd:00 9938660 /usr/lib/libXmu.so.6.2.0
47ae2000-47ae3000 rwxp 00016000 fd:00 9938660 /usr/lib/libXmu.so.6.2.0
48483000-485ba000 r-xp 00000000 fd:00 3080210 /lib/libc-2.5.so
485ba000-485bc000 r-xp 00137000 fd:00 3080210 /lib/libc-2.5.so
485bc000-485bd000 rwxp 00139000 fd:00 3080210 /lib/libc-2.5.so
485bd000-485c0000 rwxp 485bd000 00:00 0
485c2000-485e7000 r-xp 00000000 fd:00 3080241 /lib/libm-2.5.so
485e7000-485e8000 r-xp 00024000 fd:00 3080241 /lib/libm-2.5.so
485e8000-485e9000 rwxp 00025000 fd:00 3080241 /lib/libm-2.5.so
485eb000-485ed000 r-xp 00000000 fd:00 3080231 /lib/libdl-2.5.so
485ed000-485ee000 r-xp 00001000 fd:00 3080231 /lib/libdl-2.5.so
485ee000-485ef000 rwxp 00002000 fd:00 3080231 /lib/libdl-2.5.so
485f1000-48670000 r-xp 00000000 fd:00 9942941 /usr/lib/libGLU.so.1.3.060501
48670000-48671000 rwxp 0007f000 fd:00 9942941 /usr/lib/libGLU.so.1.3.060501
486a6000-486ab000 r-xp 00000000 fd:00 9932828 /usr/lib/libXdmcp.so.6.0.0
486ab000-486ac000 rwxp 00004000 fd:00 9932828 /usr/lib/libXdmcp.so.6.0.0
486ef000-487ed000 r-xp 00000000 fd:00 9932840 /usr/lib/libX11.so.6.2.0
487ed000-487f1000 rwxp 000fe000 fd:00 9932840 /usr/lib/libX11.so.6.2.0
487f3000-487f5000 r-xp 00000000 fd:00 9932818 /usr/lib/libXau.so.6.0.0
487f5000-487f6000 rwxp 00001000 fd:00 9932818 /usr/lib/libXau.so.6.0.0
487fd000-48810000 r-xp 00000000 fd:00 3080233 /lib/libpthread-2.5.so
48810000-48811000 r-xp 00012000 fd:00 3080233 /lib/libpthread-2.5.so
48811000-48812000 rwxp 00013000 fd:00 3080233 /lib/libpthread-2.5.so
48812000-48814000 rwxp 48812000 00:00 0
48816000-48825000 r-xp 00000000 fd:00 9933716 /usr/lib/libXext.so.6.4.0
48825000-48826000 rwxp 0000e000 fd:00 9933716 /usr/lib/libXext.so.6.4.0
48926000-4892e000 r-xp 00000000 fd:00 9933633 /usr/lib/libXrender.so.1.3.0
4892e000-4892f000 rwxp 00007000 fd:00 9933633 /usr/lib/libXrender.so.1.3.0
4894f000-48958000 r-xp 00000000 fd:00 9933951 /usr/lib/libXcursor.so.1.0.2
48958000-48959000 rwxp 00008000 fd:00 9933951 /usr/lib/libXcursor.so.1.0.2
48990000-48997000 r-xp 00000000 fd:00 9933735 /usr/lib/libXi.so.6.0.0
48997000-48998000 rwxp 00006000 fd:00 9933735 /usr/lib/libXi.so.6.0.0
48dc1000-48dc5000 r-xp 00000000 fd:00 9933876 /usr/lib/libXfixes.so.3.1.0
48dc5000-48dc6000 rwxp 00003000 fd:00 9933876 /usr/lib/libXfixes.so.3.1.0
48ea9000-48eb0000 r-xp 00000000 fd:00 3080249 /lib/librt-2.5.so
48eb0000-48eb1000 r-xp 00006000 fd:00 3080249 /lib/librt-2.5.so
48eb1000-48eb2000 rwxp 00007000 fd:00 3080249 /lib/librt-2.5.so
48ed3000-48eea000 r-xp 00000000 fd:00 9937312 /usr/lib/libICE.so.6.3.0
48eea000-48eeb000 rwxp 00016000 fd:00 9937312 /usr/lib/libICE.so.6.3.0
48eeb000-48eed000 rwxp 48eeb000 00:00 0
48eef000-48ef7000 r-xp 00000000 fd:00 9937314 /usr/lib/libSM.so.6.0.0
48ef7000-48ef8000 rwxp 00007000 fd:00 9937314 /usr/lib/libSM.so.6.0.0
48f5c000-48f67000 r-xp 00000000 fd:00 3080282 /lib/libgcc_s-4.1.1-20070105.so.1
48f67000-48f68000 rwxp 0000a000 fd:00 3080282 /lib/libgcc_s-4.1.1-20070105.so.1
48fc4000-490a4000 r-xp 00000000 fd:00 9934133 /usr/lib/libstdc++.so.6.0.8
490a4000-490a7000 r-xp 000e0000 fd:00 9934133 /usr/lib/libstdc++.so.6.0.8
490a7000-490a9000 rwxp 000e3000 fd:00 9934133 /usr/lib/libstdc++.so.6.0.8
490a9000-490af000 rwxp 490a9000 00:00 0
4926d000-492f1000 r-xp 00000000 fd:00 10454193 /usr/lib/nvidia/libGL.so.100.14.09
492f1000-4930c000 rwxp 00084000 fd:00 10454193 /usr/lib/nvidia/libGL.so.100.14.09
4930c000-4930d000 rwxp 4930c000 00:00 0
b6074000-b63f8000 rw-s 30c5e000 00:10 1693 /dev/nvidia0
b677d000-b67fd000 rw-s 308cf000 00:10 1693 /dev/nvidia0
b6a91000-b6aa1000 rw-s c051c000 00:10 1693 /dev/nvidia0
b6aa1000-b6aa2000 rw-s 00000000 00:08 2195490 /SYSV00000000 (deleted)
b6aa2000-b6aa3000 rw-s 00000000 00:08 2162719 /SYSV00000000 (deleted)
b6aa3000-b6aa4000 rw-s 00000000 00:08 2129950 /SYSV00000000 (deleted)
b6aa4000-b6aa5000 rw-s 00000000 00:08 2097179 /SYSV00000000 (deleted)
b6aa5000-b6aa6000 rw-s 00000000 00:08 2064410 /SYSV00000000 (deleted)
b6aa6000-b6aa7000 rw-s 00000000 00:08 2031640 /SYSV00000000 (deleted)
b6aa7000-b6aa8000 rw-s 00000000 00:08 1998869 /SYSV00000000 (deleted)
b6aa8000-b6aa9000 rw-s 00000000 00:08 1966100 /SYSV00000000 (deleted)
b6aa9000-b6aaa000 rw-s 00000000 00:08 1933330 /SYSV00000000 (deleted)
b6aaa000-b6aab000 rw-s 00000000 00:08 1179670 /SYSV00000000 (deleted)
b6aab000-b6aac000 rw-s 00000000 00:08 1277977 /SYSV00000000 (deleted)
b6aac000-b6aad000 rw-s 00000000 00:08 1409053 /SYSV00000000 (deleted)
b6aad000-b6aae000 rw-s 00000000 00:08 1507360 /SYSV00000000 (deleted)
b6aae000-b6aaf000 rw-s 00000000 00:08 1572883 /SYSV00000000 (deleted)
b6aaf000-b6e34000 rw-p b6aaf000 00:00 0
b7c4a000-b7d4a000 rw-s 30aec000 00:10 1693 /dev/nvidia0
b7d4a000-b7e8c000 rw-s 3045e000 00:10 1693 /dev/nvidia0
b7e8c000-b7eb0000 rw-p b7e8c000 00:00 0
b7eb0000-b7eb1000 rw-s 00000000 00:08 1900577 /SYSV00000000 (deleted)
b7eb1000-b7ef2000 rw-p b7eb1000 00:00 0
b7ef2000-b7f4d000 rw-p 00000000 00:10 1682 /dev/zero
b7f4e000-b7f70000 rw-p b7f4e000 00:00 0
b7f70000-b7f8e000 rw-s 00000000 00:08 98305 /SYSV00000000 (deleted)
b7f8e000-b7fef000 rw-p b7f8e000 00:00 0
b7ff2000-b7ff3000 rw-p b7ff2000 00:00 0
b7ff3000-b7ff7000 rw-s 30ddc000 00:10 1693 /dev/nvidia0
b7ff7000-b7ff8000 rw-s c0519000 00:10 1693 /dev/nvidia0
b7ff8000-b7ff9000 rw-s 30dda000 00:10 1693 /dev/nvidia0
b7ff9000-b7ffa000 rw-s 30dd9000 00:10 1693 /dev/nvidia0
b7ffa000-b7ffb000 rw-s fd001000 00:10 1693 /dev/nvidia0
b7ffb000-b7ffc000 rw-s fdc06000 00:10 1693 /dev/nvidia0
b7ffc000-b7ffd000 rw-s fd641000 00:10 1693 /dev/nvidia0
b7ffd000-b7ffe000 rw-s 33b58000 00:10 1693 /dev/nvidia0
b7ffe000-b7fff000 rw-p b7ffe000 00:00 0
bfe34000-bfe48000 rwxp bfe34000 00:00 0 [stack]
bfe48000-bfe4a000 rw-p bfe48000 00:00 0
Aborted

Brolingstanz
06-16-2007, 10:27 PM
Probably not related, but who knows. I just had an issue with F7 after an auto-update from Nvidia (version 100.14.09, X version 11.0) in which running glxinfo from a terminal "reset" the display and prompted a login. Strangely enough, a simple reboot seemed to fix it (mind this is after the initial reboot from the install). I did run the

yum update kmod-nvidia

command afterwards, though, just to be sure everything was installed correctly. Didn't seem to install anything new, but perhaps it fixed a dependency or something.

Here's how I installed my drivers:
http://www.mjmwired.net/resources/mjm-fedora-f7.html#nvidia

dimensionX
06-16-2007, 10:39 PM
I too used 'livna' except for Fedora 6. Now I don't get X server restart problem but all the other errors in my above post.