313.18: minecraft and vdpau cause SEGV in libnvidia-glcore.so

Hello,

System:
KDE-4.9 with GL compositing, Oracle JDK-7.0_11 x64, lwjgl-2.8.5, minecraft-1.4.7

Steps to reproduce:

  • mplayer + vdpau maximized, not fullscreen, on screen 1, (important!)
  • minecraft on screen 0,
  • play the game maximized, then quit to main screen and minimize the window
  • after a few tries, watch java die with the following:

A fatal error has been detected by the Java Runtime Environment:

SIGSEGV (0xb) at pc=0x00007f0f0ef084d4, pid=14776, tid=139703512913664

JRE version: 7.0_11-b21

Java VM: Java HotSpot™ 64-Bit Server VM (23.6-b04 mixed mode linux-amd64 compressed oops)

Problematic frame:

C [libnvidia-glcore.so.313.18+0x140a4d4] _nv013glcore+0x3db4

Core dump written. Default location: /home/mano/core or core.14776

An error report file with more information is saved as:

/home/mano/hs_err_pid14776.log

If you would like to submit a bug report, please visit:

http://bugreport.sun.com/bugreport/crash.jsp

The crash happened outside the Java Virtual Machine in native code.

See problematic frame for where to report the bug.

Aborted (core dumped)

Without mplayer+vdpau the problem doesn’t appear.

Thanks!

I’m having a similar problem, but only whenever I run an OpenGL application.

This is my kernel log right before and during a system crash.

Jan 31 22:14:28 cosine kernel: [  949.552046] eth0: no IPv6 routers present
Jan 31 22:29:14 cosine kernel: [ 1835.037384] Xorg[4151]: segfault at 8 ip 1cfb46d2 sp bf943120 error 4 in libnvidia-glcore.so.310.32[1bd60000+1cb1000]
Jan 31 22:29:20 cosine kernel: [ 1841.192824] mdm[1246]: segfault at b77200f0 ip 002598dd sp bfa1f974 error 7 in libpthread-2.15.so[24e000+17000]
Jan 31 22:29:21 cosine kernel: [ 1842.194226] Xorg[4161] general protection ip:e29e37 sp:bfbc3b30 error:0 in ld-2.15.so[e1b000+20000]

This time it killed the X server with a segfault in the driver:

Full report attached.

[ 31570.870] (II) NVIDIA(GPU-0): Display (HP ZR24w (DFP-0)) does not support NVIDIA 3D Vision
[ 31570.870] (II) NVIDIA(GPU-0): stereo.
[ 31570.870] () NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[ 31570.870] (
) NVIDIA(0): device HP ZR24w (DFP-0) (Using EDID frequencies has been
[ 31570.870] () NVIDIA(0): enabled on all display devices.)
[ 31570.914] (II) NVIDIA(GPU-0): Display (HP ZR24w (DFP-1)) does not support NVIDIA 3D Vision
[ 31570.914] (II) NVIDIA(GPU-0): stereo.
[ 31570.914] (
) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[ 31570.914] () NVIDIA(0): device HP ZR24w (DFP-1) (Using EDID frequencies has been
[ 31570.914] (
) NVIDIA(0): enabled on all display devices.)
[ 32859.423] (EE) NVIDIA(0): Failed to initialize DMA.
[ 32859.423] (EE) NVIDIA(0): *** Aborting ***
[ 32859.423] (EE) NVIDIA(0): Error recovery failed.
[ 32859.423] (EE) NVIDIA(0): *** Aborting ***
[ 32859.423]
Fatal server error:
[ 32859.423] Failed to recover from error!
[ 32859.423]
[ 32859.423] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 32859.423] (EE) Please also check the log file at “/var/log/Xorg.0.log” for additional information.
[ 32859.423] (EE)
[ 32859.424] (II) evdev: Power Button: Close
[ 32859.424] (II) UnloadModule: “evdev”
[ 32859.425] (II) evdev: Power Button: Close
[ 32859.425] (II) UnloadModule: “evdev”
[ 32859.426] (II) evdev: Logitech Logitech BT Mini-Receiver: Close
[ 32859.426] (II) UnloadModule: “evdev”
[ 32859.428] (II) evdev: Logitech Logitech BT Mini-Receiver: Close
[ 32859.428] (II) UnloadModule: “evdev”
[ 32859.429] (II) evdev: Budget-CI dvb ir receiver saa7146 (0): Close
[ 32859.429] (II) UnloadModule: “evdev”
[ 32862.440] (WW) NVIDIA(0): WAIT (2, 6, 0x8000, 0xde6a8000, 0x00000014)
[ 32869.440] (WW) NVIDIA(0): WAIT (1, 6, 0x8000, 0xde6a8000, 0x00000014)
[ 32874.441] nvLock: client timed out, taking the lock
[ 32902.592] (WW) NVIDIA(0): WAIT (2, 6, 0x8000, 0x00000014, 0x00000024)
[ 32909.592] (WW) NVIDIA(0): WAIT (1, 6, 0x8000, 0x00000014, 0x00000024)
[ 32912.663] (WW) NVIDIA(0): WAIT (2, 6, 0x8000, 0x00000014, 0x00000034)
[ 32919.663] (WW) NVIDIA(0): WAIT (1, 6, 0x8000, 0x00000014, 0x00000034)
[ 32922.689] (WW) NVIDIA(0): WAIT (2, 6, 0x8000, 0x00000014, 0x00000044)
[ 32929.689] (WW) NVIDIA(0): WAIT (1, 6, 0x8000, 0x00000014, 0x00000044)
[ 32932.690] (WW) NVIDIA(0): WAIT (2, 4, 0x8000, 0x00000014, 0x00000094)
[ 32939.690] (WW) NVIDIA(0): WAIT (1, 4, 0x8000, 0x00000014, 0x00000094)
[ 32939.690] (EE)
[ 32939.690] (EE) Backtrace:
[ 32939.730] (EE) 0: /usr/bin/X (xorg_backtrace+0x36) [0x584336]
[ 32939.730] (EE) 1: /usr/bin/X (0x400000+0x188089) [0x588089]
[ 32939.730] (EE) 2: /lib64/libpthread.so.0 (0x7faadbcbb000+0x101f0) [0x7faadbccb1f0]
[ 32939.730] (EE) 3: /lib64/libc.so.6 (0x7faadb611000+0x8d04d) [0x7faadb69e04d]
[ 32939.730] (EE) 4: /lib64/libc.so.6 (0x7faadb611000+0x86ecd) [0x7faadb697ecd]
[ 32939.730] (EE) 5: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x7faad7529000+0xfa630) [0x7faad7623630]
[ 32939.730] (EE) 6: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x7faad7529000+0x5a7bb2) [0x7faad7ad0bb2]
[ 32939.730] (EE) 7: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x7faad7529000+0x5a805b) [0x7faad7ad105b]
[ 32939.730] (EE) 8: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x7faad7529000+0x5a3efa) [0x7faad7accefa]
[ 32939.730] (EE) 9: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x7faad7529000+0x5700d6) [0x7faad7a990d6]
[ 32939.730] (EE) 10: /usr/bin/X (0x400000+0x8d817) [0x48d817]
[ 32939.730] (EE) 11: /usr/bin/X (AbortDDX+0x7c) [0x476a1c]
[ 32939.730] (EE) 12: /usr/bin/X (0x400000+0x18efa2) [0x58efa2]
[ 32939.730] (EE) 13: /usr/bin/X (0x400000+0x18f7dd) [0x58f7dd]
[ 32939.730] (EE) 14: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x7faad7529000+0xcfe26) [0x7faad75f8e26]
[ 32939.730] (EE) 15: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x7faad7529000+0x800a0) [0x7faad75a90a0]
[ 32939.730] (EE) 16: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x7faad7529000+0xf798b) [0x7faad762098b]
[ 32939.730] (EE) 17: /usr/lib64/xorg/modules/extensions/libglx.so (0x7faada606000+0x57b7f6) [0x7faadab817f6]
[ 32939.730] (EE)
[ 32939.730] (EE) Segmentation fault at address 0x7faad74c5000
[ 32939.730]
FatalError re-entered, aborting
[ 32939.731] Caught signal 11 (Segmentation fault). Server aborting
[ 32939.731]

Is your system stable in general? Does it pass memtest86+? Please check to make sure that the graphics board is firmly seated in its slot, that the external power connector is firmly attached, and that the heatsink and fan are free of dust and debris and that the fan is spinning.

Yes rock-solid otherwise. Even plays Seriuos Sam 3 for hours. It’s just minecraft
that seems to touch a sensitive spot somewhere. And hardware is clean and fans are all
spinning fine.

I get a lot of errors like the first one; the second one has been unique so far.

Just to be clear: playing minecraft works fine for hours on end, it’s minimizing/maximizing the application window which causes these errors! Especially on my 8800GT.

This is currently the most common crash, KDE-4.10 with compositing and only minecraft running.
Maximize and minimize the window a couple of times and it crashes with this. The offendinf function and offset are always identical:

SIGSEGV (0xb) at pc=0x00007f8bbe578078, pid=22137, tid=140238269200128

JRE version: 7.0_13-b20

Java VM: Java HotSpot™ 64-Bit Server VM (23.7-b01 mixed mode linux-amd64 compressed oops)

Problematic frame:

C [libnvidia-glcore.so.313.18+0x150f078] _nv005glcore+0x8af08

System is stable; had it continuously build libreoffice in a ramdisk over night without
any problems. Card is an 8800GT; on laptop with a Q4000M and single display it’s much more stable.