[555.42.06] libnvidia-glcore.so.555.42.06 segmentation fault when using `__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia`

Hi,

I am getting irregular segmentation faults when trying to run commands with __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia.

For example:

  • Running glxgears as is works fine.
  • However, running __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxgears
    • sometimes also works fine,
    • but crashes most of the time with a segmentation fault:
      $ coredumpctl info
      Hint: You are currently not seeing messages from other users and the system.
            Users in groups 'adm', 'systemd-journal' can see all messages.
            Pass -q to turn off this notice.
                 PID: 311321 (glxgears)
                 UID: 1010 (ethan)
                 GID: 1011 (ethan)
              Signal: 11 (SEGV)
           Timestamp: Wed 2025-05-21 12:52:52 CEST (6s ago)
        Command Line: glxgears
          Executable: /usr/bin/glxgears
       Control Group: /user.slice/user-1010.slice/user@1010.service/apps.slice/apps-org.gnome.Terminal.slice/vte-spawn-eacef349-cb60-408f-b7ed-e5e8782bfd5f.scope
                Unit: user@1010.service
           User Unit: vte-spawn-eacef349-cb60-408f-b7ed-e5e8782bfd5f.scope
               Slice: user-1010.slice
               Owner UID: 1010 (ethan)
             Boot ID: 74351807e62d4e57af2077f3614de546
          Machine ID: 1e028090797a4a9487619424dd089985
            Hostname: PETMRISERVER
             Storage: /var/lib/systemd/coredump/core.glxgears.1010.74351807e62d4e57af2077f3614de546.311321.1747824772000000000000.lz4
             Message: Process 311321 (glxgears) of user 1010 dumped core.
                  
                      Stack trace of thread 311321:
                      #0  0x00007f4c0cec9ba9 n/a (libnvidia-glcore.so.555.42.06 + 0xac6ba9)
                      #1  0x00007f4c0ced49e3 n/a (libnvidia-glcore.so.555.42.06 + 0xad19e3)
                      #2  0x00007f4c0cedaab6 n/a (libnvidia-glcore.so.555.42.06 + 0xad7ab6)
                      #3  0x00007f4c0cedaffd n/a (libnvidia-glcore.so.555.42.06 + 0xad7ffd)
                      #4  0x00007f4c0cee79ba n/a (libnvidia-glcore.so.555.42.06 + 0xae49ba)
                      #5  0x00007f4c0cdee7e4 n/a (libnvidia-glcore.so.555.42.06 + 0x9eb7e4)
                      #6  0x00007f4c0cec1ebe n/a (libnvidia-glcore.so.555.42.06 + 0xabeebe)
                      #7  0x00007f4c0ce9628f n/a (libnvidia-glcore.so.555.42.06 + 0xa9328f)
                      #8  0x00007f4c0e58796e n/a (libGLX_nvidia.so.0 + 0xa396e)
                      #9  0x00007f4c0e556330 n/a (libGLX_nvidia.so.0 + 0x72330)
                      #10 0x0000561069f4aa06 n/a (glxgears + 0x2a06)
                      #11 0x00007f4c0e77c083 __libc_start_main (libc.so.6 + 0x24083)
                      #12 0x0000561069f4af0a n/a (glxgears + 0x2f0a)
                      
                      Stack trace of thread 311322:
                      #0  0x00007f4c0c3da7d1 futex_abstimed_wait_cancelable (libpthread.so.0 + 0xf7d1)
                      #1  0x00007f4c0ce06efc n/a (libnvidia-glcore.so.555.42.06 + 0xa03efc)
                      #2  0x00007f4c0cf8f7e3 n/a (libnvidia-glcore.so.555.42.06 + 0xb8c7e3)
                      #3  0x00007f4c0ce091b4 n/a (libnvidia-glcore.so.555.42.06 + 0xa061b4)
                      #4  0x00007f4c0c3d3609 start_thread (libpthread.so.0 + 0x8609)
                      #5  0x00007f4c0e877353 __clone (libc.so.6 + 0x11f353)
      

According to coredumpctl info, the strack trace stopped at libnvidia-glcore.so.555.42.06.

Moreover, when running with the above with valgrind __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia valgrind glxgears, the program always runs, but also always shows Conditional jump or move depends on uninitialised value(s) at libGLX_nvidia.so.555.42.06:

See also the nvidia bug report log: nvidia-bug-report.log.gz (842.9 KB).

What to do? Probably worth noting that I am remote connected (through “Remote Desktop Application”) from my Windows PC to the Linux machine.

System settings of Linux machine:

  • Ubuntu 20.04.6 LTS
  • glxinfo | grep OpenGL
    OpenGL vendor string: Mesa/X.org
    OpenGL renderer string: llvmpipe (LLVM 12.0.0, 256 bits)
    OpenGL core profile version string: 4.5 (Core Profile) Mesa 21.2.6
    OpenGL core profile shading language version string: 4.50
    OpenGL core profile context flags: (none)
    OpenGL core profile profile mask: core profile
    OpenGL core profile extensions:
    OpenGL version string: 3.1 Mesa 21.2.6
    OpenGL shading language version string: 1.40
    OpenGL context flags: (none)
    OpenGL extensions:
    OpenGL ES profile version string: OpenGL ES 3.2 Mesa 21.2.6
    OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
    OpenGL ES profile extensions:
    
  • __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxinfo | grep OpenGL
    OpenGL vendor string: NVIDIA Corporation
    OpenGL renderer string: Quadro P6000/PCIe/SSE2
    OpenGL core profile version string: 4.6.0 NVIDIA 555.42.06
    OpenGL core profile shading language version string: 4.60 NVIDIA
    OpenGL core profile context flags: (none)
    OpenGL core profile profile mask: core profile
    OpenGL core profile extensions:
    OpenGL version string: 4.6.0 NVIDIA 555.42.06
    OpenGL shading language version string: 4.60 NVIDIA
    OpenGL context flags: (none)
    OpenGL profile mask: (none)
    OpenGL extensions:
    OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 555.42.06
    OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
    OpenGL ES profile extensions:
    
  • lsmod | grep nvidia
    nvidia_uvm           4685824  12
    nvidia_drm             98304  3
    nvidia_modeset       1355776  5 nvidia_drm
    nvidia              54472704  239 nvidia_uvm,nvidia_modeset
    drm_kms_helper        311296  1 nvidia_drm
    drm                   618496  7 drm_kms_helper,nvidia,nvidia_drm
    
  • nvidia-smi
    Wed May 21 12:38:31 2025       
    +-----------------------------------------------------------------------------------------+
    | NVIDIA-SMI 555.42.06              Driver Version: 555.42.06      CUDA Version: 12.5     |
    |-----------------------------------------+------------------------+----------------------+
    | GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
    | Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
    |                                         |                        |               MIG M. |
    |=========================================+========================+========= 
    |   0  Quadro P6000                   Off |   00000000:21:00.0 Off |                  Off |
    | 39%   71C    P0            123W /  250W |    5310MiB /  24576MiB |    100%      Default |
    |                                         |                        |                  N/A |
    +-----------------------------------------+------------------------+----------------------+
                                                                                             
    +-----------------------------------------------------------------------------------------+
    | Processes:                                                                              |
    |  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
    |        ID   ID                                                               Usage      |
    
    |============================================================================ 
    |    0   N/A  N/A      2336      G   /usr/lib/xorg/Xorg                             27MiB |
    |    0   N/A  N/A      2686      G   /usr/bin/gnome-shell                           13MiB |
    |    0   N/A  N/A    292534      C   XXX/bin/python       3600MiB |
    |    0   N/A  N/A   3720285      C   XXX/bin/python       1664MiB |
    +-----------------------------------------------------------------------------------------+
    
  • ls -l /etc/X11/
    total 84
    drwxr-xr-x 2 root root  4096 Apr 23  2020 app-defaults
    drwxr-xr-x 2 root root  4096 Apr 23  2020 cursors
    -rw-r--r-- 1 root root    15 Apr 23  2020 default-display-manager
    drwxr-xr-x 4 root root  4096 Apr 23  2020 fonts
    -rw-r--r-- 1 root root 17394 Jan 20  2017 rgb.txt
    drwxr-xr-x 2 root root  4096 Nov 19  2020 xinit
    drwxr-xr-x 2 root root  4096 Feb 29  2020 xkb
    drwxr-xr-x 2 root root  4096 Jul 31  2020 xrdp
    -rwxr-xr-x 1 root root   709 Jan 20  2017 Xreset
    drwxr-xr-x 2 root root  4096 Apr 23  2020 Xreset.d
    drwxr-xr-x 2 root root  4096 Apr 23  2020 Xresources
    -rwxr-xr-x 1 root root  3730 Dec 14  2018 Xsession
    drwxr-xr-x 2 root root  4096 Apr  4 06:36 Xsession.d
    -rw-r--r-- 1 root root   265 Jan 20  2017 Xsession.options
    drwxr-xr-x 2 root root  4096 Apr 23  2020 xsm
    -rw-r--r-- 1 root root    13 Feb 29  2020 XvMCConfig
    -rw-r--r-- 1 root root   630 Apr 23  2020 Xwrapper.config
    
  • ls -l /usr/share/X11/xorg.conf.d/
    total 28
    -rw-r--r-- 1 root root   92 Aug 24  2022 10-amdgpu.conf
    -rw-r--r-- 1 root root  206 Jun  4  2024 10-nvidia.conf
    -rw-r--r-- 1 root root 1350 Feb 19 14:54 10-quirks.conf
    -rw-r--r-- 1 root root   92 Oct 22  2019 10-radeon.conf
    -rw-r--r-- 1  201  201  475 Jun 22  2023 20-vmware-hid.conf
    -rw-r--r-- 1 root root 1429 Aug 13  2019 40-libinput.conf
    -rw-r--r-- 1 root root 3458 Mar 11  2020 70-wacom.conf
    
  • cat /usr/share/X11/xorg.conf.d/10-nvidia.conf
    Section "OutputClass"
        Identifier "nvidia"
        MatchDriver "nvidia-drm"
        Driver "nvidia"
        Option "AllowEmptyInitialConfiguration"
        ModulePath "/usr/lib/x86_64-linux-gnu/nvidia/xorg"
    EndSection
    

The problem is resolved by upgrading to 570.133.20.

However, running __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxgears now shows a black window most of the time instead of the gears graphics: Black window with glxgears and `__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia`.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.