steam-for-linux icon indicating copy to clipboard operation
steam-for-linux copied to clipboard

gldriverquery SIGSEGV every time I launch Steam

Open Bryan2333 opened this issue 1 year ago • 3 comments

Your system information

  • Steam client version (build number or date): 1718904662

  • Distribution (e.g. Ubuntu): Arch Linux

  • Opted into Steam client beta?: No

  • Have you checked for system updates?: Yes

  • Steam Logs: steam-logs.tar.gz

  • GPU: AMD

Please describe your issue in as much detail as possible:

Every time I launch the Steam, gldriverquery crash.

Here is the coredump information:

           PID: 235955 (gldriverquery)
           UID: 1000 (bryan)
           GID: 1000 (bryan)
        Signal: 11 (SEGV)
     Timestamp: Sun 2024-06-30 23:06:58 CST (2min 46s ago)
  Command Line: /home/bryan/.local/share/Steam/ubuntu12_32/../ubuntu12_64/gldriverquery
    Executable: /home/bryan/.local/share/Steam/ubuntu12_64/gldriverquery
 Control Group: /user.slice/user-1000.slice/[email protected]/app.slice/[email protected]
          Unit: [email protected]
     User Unit: [email protected]
         Slice: user-1000.slice
     Owner UID: 1000 (bryan)
       Storage: /var/lib/systemd/coredump/core.gldriverquery.1000.809349b828df4c0583067abec087e9d8.235955.1719760018000000.zst (present)
  Size on Disk: 1.4M
       Message: Process 235955 (gldriverquery) of user 1000 dumped core.
                
                Stack trace of thread 235955:
                #0  0x0000000000000000 n/a (n/a + 0x0)
                #1  0x000071477377f952 n/a (radeonsi_dri.so + 0x97f952)
                #2  0x0000714773780f4c n/a (radeonsi_dri.so + 0x980f4c)
                #3  0x000071477366b90f n/a (radeonsi_dri.so + 0x86b90f)
                #4  0x00007147736b2b1b n/a (radeonsi_dri.so + 0x8b2b1b)
                #5  0x0000714773bad2f2 n/a (radeonsi_dri.so + 0xdad2f2)
                #6  0x0000714773bbd7b8 n/a (radeonsi_dri.so + 0xdbd7b8)
                #7  0x0000714773babf08 n/a (radeonsi_dri.so + 0xdabf08)
                #8  0x0000714773a552ff n/a (radeonsi_dri.so + 0xc552ff)
                #9  0x0000714773a554cc n/a (radeonsi_dri.so + 0xc554cc)
                #10 0x00007147736fa8fa n/a (radeonsi_dri.so + 0x8fa8fa)
                #11 0x000071477344bc43 n/a (radeonsi_dri.so + 0x64bc43)
                #12 0x000071477344c986 n/a (radeonsi_dri.so + 0x64c986)
                #13 0x000071477344d0d8 n/a (radeonsi_dri.so + 0x64d0d8)
                #14 0x000071477345570f n/a (radeonsi_dri.so + 0x65570f)
                #15 0x0000714772ef21c9 n/a (radeonsi_dri.so + 0xf21c9)
                #16 0x0000714773038c2b n/a (radeonsi_dri.so + 0x238c2b)
                #17 0x0000714772f0e395 n/a (radeonsi_dri.so + 0x10e395)
                #18 0x0000714772e36f42 n/a (radeonsi_dri.so + 0x36f42)
                #19 0x0000714772e3abc3 n/a (radeonsi_dri.so + 0x3abc3)
                #20 0x000071477530de5e n/a (libEGL_mesa.so.0 + 0x1ae5e)
                #21 0x00007147752fe100 n/a (libEGL_mesa.so.0 + 0xb100)
                #22 0x0000714775346cfd n/a (libEGL.so.1 + 0x4cfd)
                #23 0x0000714775bcb861 n/a (libSDL2-2.0.so.0 + 0xbf861)
                #24 0x0000714775c19aec n/a (libSDL2-2.0.so.0 + 0x10daec)
                #25 0x0000714775bdb957 n/a (libSDL2-2.0.so.0 + 0xcf957)
                #26 0x0000714775be1a6a n/a (libSDL2-2.0.so.0 + 0xd5a6a)
                #27 0x0000714775be1b61 n/a (libSDL2-2.0.so.0 + 0xd5b61)
                #28 0x0000714775b245e8 n/a (libSDL2-2.0.so.0 + 0x185e8)
                #29 0x0000714775b24ae3 n/a (libSDL2-2.0.so.0 + 0x18ae3)
                #30 0x000071477595efa1 n/a (libc.so.6 + 0x3efa1)
                #31 0x000071477595f06e exit (libc.so.6 + 0x3f06e)
                #32 0x0000714775945c8f n/a (libc.so.6 + 0x25c8f)
                #33 0x0000714775945d4c __libc_start_main (libc.so.6 + 0x25d4c)
                #34 0x000064274ea0b5ba n/a (/home/bryan/.local/share/Steam/ubuntu12_64/gldriverquery + 0xb5ba)
                ELF object binary architecture: AMD x86-64

Steps for reproducing this issue:

  1. Just launch Steam client normal.

Bryan2333 avatar Jun 30 '24 15:06 Bryan2333

Hello @Bryan2333, you're pointing fairly strongly towards a radeonsi issue. You should also report this issue to your video driver vendor.

kisak-valve avatar Jun 30 '24 15:06 kisak-valve

I'm with a NVIDIA GPU, I have also noticed a huge influx of those dumps.

Sun 2024-06-30 12:31:24 CEST  7037 1000 1000 SIGABRT present      /usr/bin/lsof                                                                                     147.4K
Sun 2024-06-30 12:36:21 CEST  7661 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_64/gldriverquery                                           1.2M
Sun 2024-06-30 12:36:22 CEST  7848 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_32/gldriverquery                                          12.3M
Sun 2024-06-30 14:48:48 CEST  1273 1000 1000 SIGSEGV present      /usr/bin/plasmashell                                                                               82.3M
Sun 2024-06-30 14:51:05 CEST 38747 1000 1000 SIGSEGV present      /usr/bin/plasmashell                                                                               62.2M
Sun 2024-06-30 14:53:47 CEST 41647 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_64/gldriverquery                                           1.2M
Sun 2024-06-30 14:53:48 CEST 41831 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_32/gldriverquery                                          12.3M
Sun 2024-06-30 15:09:08 CEST 48310 1000 1000 SIGSYS  present      /usr/bin/sed                                                                                       16.1K
Sun 2024-06-30 15:16:42 CEST 51676 1000 1000 SIGSEGV inaccessible /usr/bin/gamescope                                                                                     -
Sun 2024-06-30 15:17:52 CEST 52353 1000 1000 SIGSEGV inaccessible /usr/bin/gamescope                                                                                     -
Sun 2024-06-30 15:29:26 CEST 55437 1000 1000 SIGSEGV inaccessible /usr/bin/gamescope                                                                                     -
Sun 2024-06-30 15:29:48 CEST 55798 1000 1000 SIGSYS  present      /home/vrkknn/.local/share/Steam/steamapps/common/Proton - Experimental/files/bin/wine64-preloader     9K
Sun 2024-06-30 15:30:13 CEST 55827 1000 1000 SIGSEGV inaccessible /usr/bin/gamescope                                                                                     -
Sun 2024-06-30 15:32:56 CEST 56910 1000 1000 SIGABRT inaccessible /usr/bin/gamescope                                                                                     -
Sun 2024-06-30 15:33:26 CEST 57263 1000 1000 SIGABRT inaccessible /usr/bin/gamescope                                                                                     -
Sun 2024-06-30 15:36:18 CEST 57916 1000 1000 SIGABRT inaccessible /usr/bin/gamescope                                                                                     -
Sun 2024-06-30 15:49:17 CEST 56253 1000 1000 SIGSEGV inaccessible /usr/bin/gamescope                                                                                     -
Sun 2024-06-30 15:55:46 CEST 62516 1000 1000 SIGSEGV present      /usr/bin/plasma-systemmonitor                                                                      19.8M
Sun 2024-06-30 16:07:01 CEST 67943 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_64/gldriverquery                                           1.2M
Sun 2024-06-30 16:07:02 CEST 68131 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_32/gldriverquery                                          12.3M
Sun 2024-06-30 16:18:09 CEST 71031 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_64/gldriverquery                                           1.2M
Sun 2024-06-30 16:18:10 CEST 71076 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_32/gldriverquery                                          12.3M
Sun 2024-06-30 16:19:01 CEST 67655 1000 1000 SIGSEGV present      /usr/bin/krunner                                                                                    9.9M
Sun 2024-06-30 16:19:11 CEST 71981 1000 1000 SIGABRT present      /usr/lib/ksmserver-logout-greeter                                                                   4.6M
Sun 2024-06-30 16:19:15 CEST 72029 1000 1000 SIGABRT present      /usr/lib/ksmserver-logout-greeter                                                                   4.6M
Sun 2024-06-30 17:37:37 CEST  1952 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_64/gldriverquery                                           1.2M
Sun 2024-06-30 17:37:38 CEST  2083 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_32/gldriverquery                                          12.3M
Sun 2024-06-30 18:34:02 CEST 34808 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_64/gldriverquery                                           1.2M
Sun 2024-06-30 18:34:03 CEST 34885 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_32/gldriverquery                                          12.3M
Sun 2024-06-30 18:34:22 CEST 32380 1000 1000 SIGSEGV inaccessible MainThrd                                                                                               -
Sun 2024-06-30 18:42:18 CEST 37396 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_64/gldriverquery                                           1.2M
Sun 2024-06-30 18:42:19 CEST 37473 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_32/gldriverquery                                          12.3M
Sun 2024-06-30 18:42:33 CEST 35751 1000 1000 SIGSEGV inaccessible MainThrd                                                                                               -
Sun 2024-06-30 18:58:50 CEST 40496 1000 1000 SIGSEGV inaccessible /usr/bin/gamescope                                                                                     -
Sun 2024-06-30 18:59:12 CEST 42487 1000 1000 SIGABRT present      /usr/lib/ksmserver-logout-greeter                                                                   4.7M
Mon 2024-07-01 08:34:09 CEST  1871 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_64/gldriverquery                                           1.2M
Mon 2024-07-01 08:34:10 CEST  2003 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_32/gldriverquery                                          12.3M
Mon 2024-07-01 09:12:14 CEST  1851 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_64/gldriverquery                                           1.2M
Mon 2024-07-01 09:12:15 CEST  1974 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_32/gldriverquery                                          12.3M
Mon 2024-07-01 09:32:17 CEST 10982 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_64/gldriverquery                                           1.2M
Mon 2024-07-01 09:32:18 CEST 11065 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_32/gldriverquery                                          12.3M
Mon 2024-07-01 09:32:34 CEST 12111 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_64/gldriverquery                                           1.2M
Mon 2024-07-01 09:32:35 CEST 12191 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_32/gldriverquery                                          12.3M
Mon 2024-07-01 09:35:35 CEST  3006 1000 1000 SIGSEGV present      /usr/bin/plasmashell                                                                               69.8M
Mon 2024-07-01 09:35:38 CEST 12989 1000 1000 SIGSEGV present      /usr/bin/krunner                                                                                    9.3M
Mon 2024-07-01 09:54:32 CEST 19431 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_64/gldriverquery                                           1.2M
Mon 2024-07-01 09:54:33 CEST 19541 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_32/gldriverquery                                          12.3M
Mon 2024-07-01 09:57:35 CEST 21632 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_64/gldriverquery                                           1.2M
Mon 2024-07-01 09:57:36 CEST 21818 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_32/gldriverquery                                          12.3M
Mon 2024-07-01 09:57:52 CEST 22551 1000 1000 SIGSYS  present      /home/vrkknn/.local/share/Steam/compatibilitytools.d/GE-Proton9-5/files/bin/wine64-preloader        7.9K
Mon 2024-07-01 10:09:02 CEST 24777 1000 1000 SIGSYS  present      /home/vrkknn/.local/share/Steam/steamapps/common/Proton - Experimental/files/bin/wine64-preloader   7.9K
Mon 2024-07-01 10:18:14 CEST 26669 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_64/gldriverquery                                           1.2M
Mon 2024-07-01 10:18:15 CEST 26751 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_32/gldriverquery                                          12.3M
Mon 2024-07-01 10:25:30 CEST  1877 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_64/gldriverquery                                           1.2M
Mon 2024-07-01 10:25:31 CEST  2012 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_32/gldriverquery                                          12.3M
Mon 2024-07-01 10:25:47 CEST  2961 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_64/gldriverquery                                           1.2M
Mon 2024-07-01 10:25:48 CEST  3117 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_32/gldriverquery                                          12.3M
Mon 2024-07-01 11:22:02 CEST 11916 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_64/gldriverquery                                           1.2M
Mon 2024-07-01 11:22:03 CEST 11992 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_32/gldriverquery                                          12.3M
Mon 2024-07-01 11:24:18 CEST  1258 1000 1000 SIGSEGV present      /usr/bin/plasmashell                                                                               58.8M
Mon 2024-07-01 11:57:09 CEST  3253 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_64/gldriverquery                                           1.2M
Mon 2024-07-01 11:57:10 CEST  3494 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_32/gldriverquery                                          12.3M
Mon 2024-07-01 14:52:01 CEST  1859 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_64/gldriverquery                                           1.2M
Mon 2024-07-01 14:52:02 CEST  1976 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_32/gldriverquery                                          12.3M
Mon 2024-07-01 15:17:48 CEST 10340 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_64/gldriverquery                                           1.2M
Mon 2024-07-01 15:17:49 CEST 10513 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_32/gldriverquery                                          12.3M
Mon 2024-07-01 15:18:17 CEST 11870 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_64/gldriverquery                                           1.2M
Mon 2024-07-01 15:18:18 CEST 12002 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_32/gldriverquery                                          12.3M
Mon 2024-07-01 15:18:34 CEST 12747 1000 1000 SIGSYS  present      /home/vrkknn/.local/share/Steam/compatibilitytools.d/GE-Proton9-5/files/bin/wine64-preloader      354.2K
Mon 2024-07-01 15:21:18 CEST  1272 1000 1000 SIGSEGV present      /usr/bin/plasmashell                                                                                 76M
Mon 2024-07-01 15:27:46 CEST 14658 1000 1000 SIGSEGV inaccessible /usr/bin/gamescope                                                                                     -
Mon 2024-07-01 15:39:01 CEST  1992 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_64/gldriverquery                                           1.2M
Mon 2024-07-01 15:39:02 CEST  2294 1000 1000 SIGSEGV present      /home/vrkknn/.local/share/Steam/ubuntu12_32/gldriverquery                                          12.4M

           PID: 2294 (gldriverquery)
           UID: 1000 (vrkknn)
           GID: 1000 (vrkknn)
        Signal: 11 (SEGV)
     Timestamp: Mon 2024-07-01 15:39:02 CEST (5min ago)
  Command Line: /home/vrkknn/.local/share/Steam/ubuntu12_32/../ubuntu12_32/gldriverquery
    Executable: /home/vrkknn/.local/share/Steam/ubuntu12_32/gldriverquery
 Control Group: /user.slice/user-1000.slice/[email protected]/app.slice/[email protected]
          Unit: [email protected]
     User Unit: [email protected]
         Slice: user-1000.slice
     Owner UID: 1000 (vrkknn)
       Boot ID: c6e09db6b6c84ee4a746f94a4cdf4961
    Machine ID: 88338c0f59be451f9a1d88c4392b1eff
      Hostname: endeavour
       Storage: /var/lib/systemd/coredump/core.gldriverquery.1000.c6e09db6b6c84ee4a746f94a4cdf4961.2294.1719841142000000.zst (present)
  Size on Disk: 12.4M
       Message: Process 2294 (gldriverquery) of user 1000 dumped core.
                
                Stack trace of thread 2294:
                #0  0x00000000ee75e341 xcb_send_request_with_fds64 (libxcb.so.1 + 0x13341)
                #1  0x00000000ee75ebbb xcb_send_request64 (libxcb.so.1 + 0x13bbb)
                #2  0x00000000ee75ebe7 xcb_send_request (libxcb.so.1 + 0x13be7)
                #3  0x00000000e8a14871 xcb_dri3_free_syncobj (libxcb-dri3.so.0 + 0x3871)
                #4  0x00000000ee042a0c n/a (libGLX_nvidia.so.0 + 0x99a0c)
                #5  0x00000000ee0261b9 n/a (libGLX_nvidia.so.0 + 0x7d1b9)
                #6  0x00000000edff91a4 n/a (libGLX_nvidia.so.0 + 0x501a4)
                #7  0x00000000edff9bd1 n/a (libGLX_nvidia.so.0 + 0x50bd1)
                #8  0x00000000ecc59e74 n/a (libnvidia-glcore.so.555.58 + 0xa9ce74)
                #9  0x00000000ecc5a70b n/a (libnvidia-glcore.so.555.58 + 0xa9d70b)
                #10 0x00000000edff519b n/a (libGLX_nvidia.so.0 + 0x4c19b)
                #11 0x00000000edff594c n/a (libGLX_nvidia.so.0 + 0x4c94c)
                #12 0x00000000ee06f014 n/a (libGLX_nvidia.so.0 + 0xc6014)
                ELF object binary architecture: Intel 80386

Virkkunen avatar Jul 01 '24 13:07 Virkkunen

I think the crash may be caused by SDL Wayland. I found another similar issue https://github.com/NixOS/nixpkgs/issues/234839.

After I launch steam like this env SDL_VIDEODRIVER=x11 steam, there is no more crash.

Bryan2333 avatar Jul 01 '24 14:07 Bryan2333

Like I've outlined on #11057, I've reverted back to pre-explicit sync NVIDIA drivers (550), doing this also stopped the coredump "spam". I know OP is using an AMD card, but for anyone with a NVIDIA card facing this issue, I recommend you to try reverting back to driver 550 and check.

Virkkunen avatar Jul 01 '24 16:07 Virkkunen

It's not clear this has anything to do with SDL_VIDEODRIVER and wayland, I get this crash here (Arch / NVidia 555.58) even if I set SDL_VIDEODRIVER=x11 and I'm seeing this:

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff784327f in xcb_send_request_with_fds64 (c=0x0, flags=flags@entry=0, vector=vector@entry=0x7fffffffd6b0, req=req@entry=0x7ffff7652aa0 <xcb_req>, 
    num_fds=num_fds@entry=0, fds=fds@entry=0x0) at /usr/src/debug/libxcb/libxcb-1.17.0/src/xcb_out.c:233
Downloading source file /usr/src/debug/libxcb/libxcb-1.17.0/src/xcb_out.c
233         if(c->has_error) {                                                                                                                                                     
(gdb) bt
#0  0x00007ffff784327f in xcb_send_request_with_fds64 (c=0x0, flags=flags@entry=0, vector=vector@entry=0x7fffffffd6b0, req=req@entry=0x7ffff7652aa0 <xcb_req>, 
    num_fds=num_fds@entry=0, fds=fds@entry=0x0) at /usr/src/debug/libxcb/libxcb-1.17.0/src/xcb_out.c:233
#1  0x00007ffff7843a60 in xcb_send_request64 (c=<optimized out>, flags=flags@entry=0, vector=vector@entry=0x7fffffffd6b0, req=req@entry=0x7ffff7652aa0 <xcb_req>)
    at /usr/src/debug/libxcb/libxcb-1.17.0/src/xcb_out.c:353
#2  0x00007ffff7843a6e in xcb_send_request (c=<optimized out>, flags=flags@entry=0, vector=vector@entry=0x7fffffffd6b0, req=req@entry=0x7ffff7652aa0 <xcb_req>)
    at /usr/src/debug/libxcb/libxcb-1.17.0/src/xcb_out.c:359
#3  0x00007ffff76503d5 in xcb_dri3_free_syncobj (c=<optimized out>, syncobj=<optimized out>) at /usr/src/debug/libxcb/libxcb-1.17.0/src/dri3.c:1110
#4  0x00007ffff6ebe67e in ?? () from /usr/lib/libGLX_nvidia.so.0
#5  0x00007ffff6ea0ca8 in ?? () from /usr/lib/libGLX_nvidia.so.0
#6  0x00007ffff6e742cf in ?? () from /usr/lib/libGLX_nvidia.so.0
#7  0x00007ffff55f8685 in ?? () from /usr/lib/libnvidia-glcore.so.555.58
#8  0x00007ffff55f42f1 in ?? () from /usr/lib/libnvidia-glcore.so.555.58
#9  0x00007ffff6e6f7b6 in ?? () from /usr/lib/libGLX_nvidia.so.0
#10 0x00007ffff6e6feff in ?? () from /usr/lib/libGLX_nvidia.so.0
#11 0x00007ffff7ffd000 in _GLOBAL_OFFSET_TABLE_ () from /lib64/ld-linux-x86-64.so.2
#12 0x0000000000000000 in ?? ()

The NVidia driver is calling xcb_dri3_free_syncobj with a NULL xcb_connection_t pointer?

TTimo avatar Jul 02 '24 17:07 TTimo

(This will be fixed in an upcoming update to the beta client)

TTimo avatar Jul 02 '24 20:07 TTimo

Thanks for the backtrace, and the application-side fix. The behavior of gldriverquery exposed an issue in our driver's new explicit sync code when freeing leaked drawable structures and related resources at library teardown time, which of course runs when application exit. Freeing the resources explicitly in the application avoids this, but I've also fixed our code to be more robust, since we typically handle this gracefully for GL applications. The driver-side fix likely won't arrive until our 560-series drivers though.

cubanismo avatar Jul 02 '24 21:07 cubanismo

I am getting something very similar on my machine almost the same thing I assume my Install is Fedora kde spin 40 with and all amd system here's a crash from crashed process viewer by kde: PID: 59381 (gldriverquery) UID: 1000 (Mikolaj) GID: 1000 (Mikolaj) Signal: 11 (SEGV) Timestamp: Tue 2024-07-30 15:11:37 CEST (2s ago) Command Line: /home/Mikolaj/.local/share/Steam/ubuntu12_32/../ubuntu12_32/gldriverquery Executable: /home/Mikolaj/.local/share/Steam/ubuntu12_32/gldriverquery Control Group: /user.slice/user-1000.slice/[email protected]/app.slice/[email protected] Unit: [email protected] User Unit: [email protected] Slice: user-1000.slice Owner UID: 1000 (Mikolaj) Hostname: Mikolaj-Main Storage: /var/lib/systemd/coredump/core.gldriverquery.1000.e285de4224df408ead973f11b780205a.59381.1722345097000000.zst (present) Size on Disk: 1.6M Message: Process 59381 (gldriverquery) of user 1000 dumped core.

            Module libpciaccess.so.0 from rpm libpciaccess-0.16-12.fc40.i386
            Module libtinfo.so.6 from rpm ncurses-6.4-12.20240127.fc40.i386
            Module libedit.so.0 from rpm libedit-3.1-51.20240517cvs.fc40.i386
            Module libdrm_intel.so.1 from rpm libdrm-2.4.121-1.fc40.i386
            Module libdrm_amdgpu.so.1 from rpm libdrm-2.4.121-1.fc40.i386
            Module libelf.so.1 from rpm elfutils-0.191-4.fc40.i386
            Module libdrm_radeon.so.1 from rpm libdrm-2.4.121-1.fc40.i386
            Module libsensors.so.4 from rpm lm_sensors-3.6.0-18.fc40.i386
            Module libz.so.1 from rpm zlib-ng-2.1.7-1.fc40.i386
            Module radeonsi_dri.so from rpm mesa-24.1.4-3.fc40.i386
            Module libxshmfence.so.1 from rpm libxshmfence-1.3.2-3.fc40.i386
            Module libxcb-sync.so.1 from rpm libxcb-1.17.0-1.fc40.i386
            Module libxcb-present.so.0 from rpm libxcb-1.17.0-1.fc40.i386
            Module libxcb-dri3.so.0 from rpm libxcb-1.17.0-1.fc40.i386
            Module libwayland-server.so.0 from rpm wayland-1.22.0-3.fc40.i386
            Module libdrm.so.2 from rpm libdrm-2.4.121-1.fc40.i386
            Module libxcb-xfixes.so.0 from rpm libxcb-1.17.0-1.fc40.i386
            Module libxcb-randr.so.0 from rpm libxcb-1.17.0-1.fc40.i386
            Module libxcb-dri2.so.0 from rpm libxcb-1.17.0-1.fc40.i386
            Module libX11-xcb.so.1 from rpm libX11-1.8.9-1.fc40.i386
            Module libexpat.so.1 from rpm expat-2.6.2-1.fc40.i386
            Module libglapi.so.0 from rpm mesa-24.1.4-3.fc40.i386
            Module libgbm.so.1 from rpm mesa-24.1.4-3.fc40.i386
            Module libEGL_mesa.so.0 from rpm mesa-24.1.4-3.fc40.i386
            Module libEGL.so.1 from rpm libglvnd-1.7.0-4.fc40.i386
            Module libXau.so.6 from rpm libXau-1.0.11-6.fc40.i386
            Module libxcb.so.1 from rpm libxcb-1.17.0-1.fc40.i386
            Module libGLdispatch.so.0 from rpm libglvnd-1.7.0-4.fc40.i386
            Module libXext.so.6 from rpm libXext-1.3.6-1.fc40.i386
            Module libX11.so.6 from rpm libX11-1.8.9-1.fc40.i386
            Module libGLX.so.0 from rpm libglvnd-1.7.0-4.fc40.i386
            Module libGL.so.1 from rpm libglvnd-1.7.0-4.fc40.i386
            Module libdecor-0.so.0 from rpm libdecor-0.2.2-3.fc40.i386
            Module libxkbcommon.so.0 from rpm libxkbcommon-1.6.0-2.fc40.i386
            Module libwayland-cursor.so.0 from rpm wayland-1.22.0-3.fc40.i386
            Module libwayland-egl.so.1 from rpm wayland-1.22.0-3.fc40.i386
            Module libffi.so.8 from rpm libffi-3.4.4-7.fc40.i386
            Module libwayland-client.so.0 from rpm wayland-1.22.0-3.fc40.i386
            Module libzstd.so.1 from rpm zstd-1.5.6-1.fc40.i386
            Module liblzma.so.5 from rpm xz-5.4.6-3.fc40.i386
            Module liblz4.so.1 from rpm lz4-1.9.4-6.fc40.i386
            Module libcap.so.2 from rpm libcap-2.69-8.fc40.i386
            Module libsystemd.so.0 from rpm systemd-255.8-1.fc40.i386
            Module libdbus-1.so.3 from rpm dbus-1.14.10-3.fc40.i386
            Module libSDL2-2.0.so.0 from rpm SDL2-2.30.3-1.fc40.i386
            Stack trace of thread 59381:
            #8  0x00000000f53264d0 ac_create_passmgr (radeonsi_dri.so + 0x9a04d0)
            #9  0x00000000f5327cfb ac_init_llvm_compiler (radeonsi_dri.so + 0x9a1cfb)
            #10 0x00000000f520b00f si_create_llvm_compiler (radeonsi_dri.so + 0x88500f)
            #11 0x00000000f52547c1 si_shader_select (radeonsi_dri.so + 0x8ce7c1)
            #12 0x00000000f5832e9d _Z17si_update_shadersIL13amd_gfx_level13EL11si_has_tess0EL9si_has_gs0EL10si_has_ngg1EEbP10si_context (radeonsi_dri.so + 0xeace9d)
            #13 0x00000000f583ca06 _Z11si_draw_vboIL13amd_gfx_level13EL11si_has_tess0EL9si_has_gs0EL10si_has_ngg1EL22si_has_sh_pairs_packed0EEvP12pipe_contextPK14pipe_draw_infojPK23pipe_draw_indirect_infoPK26pipe_draw_start_count_biasj (radeonsi_dri.so + 0xeb6a06)
            #14 0x00000000f5831c33 _ZL17si_draw_rectangleP15blitter_contextPvPFS1_S0_Eiiiifj19blitter_attrib_typePK14blitter_attrib (radeonsi_dri.so + 0xeabc33)
            #15 0x00000000f5687466 util_blitter_clear_custom.constprop.0 (radeonsi_dri.so + 0xd01466)
            #16 0x00000000f529d565 si_clear (radeonsi_dri.so + 0x917565)
            #17 0x00000000f4fdfa22 tc_call_clear (radeonsi_dri.so + 0x659a22)
            #18 0x00000000f4fe07bc tc_batch_execute (radeonsi_dri.so + 0x65a7bc)
            #19 0x00000000f4fe0eec _tc_sync.isra.0 (radeonsi_dri.so + 0x65aeec)
            #20 0x00000000f4fe8b62 tc_flush (radeonsi_dri.so + 0x662b62)
            #21 0x00000000f4a820eb st_glFlush (radeonsi_dri.so + 0xfc0eb)
            #22 0x00000000f4bd022a _mesa_make_current (radeonsi_dri.so + 0x24a22a)
            #23 0x00000000f4a9db36 st_api_make_current (radeonsi_dri.so + 0x117b36)
            #24 0x00000000f49bea21 dri_unbind_context (radeonsi_dri.so + 0x38a21)
            #25 0x00000000f49c25c2 driUnbindContext (radeonsi_dri.so + 0x3c5c2)
            #26 0x00000000f74c97ae dri2_make_current (libEGL_mesa.so.0 + 0x1a7ae)
            #27 0x00000000f74b95dd eglMakeCurrent (libEGL_mesa.so.0 + 0xa5dd)
            #28 0x00000000f750a179 InternalLoseCurrent (libEGL.so.1 + 0x4179)
            #29 0x00000000f7e6b5dd SDL_EGL_MakeCurrent (libSDL2-2.0.so.0 + 0xcd5dd)
            #30 0x00000000f7ebd8db Wayland_GLES_MakeCurrent (libSDL2-2.0.so.0 + 0x11f8db)
            #31 0x00000000f7e7c537 SDL_GL_MakeCurrent_REAL (libSDL2-2.0.so.0 + 0xde537)
            #32 0x00000000f7e837ba SDL_DestroyWindow_REAL.part.0 (libSDL2-2.0.so.0 + 0xe57ba)
            #33 0x00000000f7e838c4 SDL_VideoQuit_REAL.part.0 (libSDL2-2.0.so.0 + 0xe58c4)
            #34 0x00000000f7db2cbf SDL_QuitSubSystem_REAL (libSDL2-2.0.so.0 + 0x14cbf)
            #35 0x00000000f7db3173 SDL_Quit_REAL (libSDL2-2.0.so.0 + 0x15173)
            #36 0x00000000f7bdf9aa __run_exit_handlers (libc.so.6 + 0x3e9aa)
            #37 0x00000000f7bdfba3 exit (libc.so.6 + 0x3eba3)
            #38 0x00000000f7bc5bcf __libc_start_call_main (libc.so.6 + 0x24bcf)
            #39 0x00000000f7bc5c88 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x24c88)
            #40 0x0000000008051a71 n/a (/home/Mikolaj/.local/share/Steam/ubuntu12_32/gldriverquery + 0x9a71)
            ELF object binary architecture: Intel 80386.

I tried running debbugin manually but nothing more I could get for some reason it wouldnt save a .txt so this is all I have :D Also Problem reporting from redhat doesnt even catch this as a crash its more of an ui freeze while I am using other electron or chromium based application this wasnt happening before on fedora 39. Just adding this as an extra to the entire issue/bug could be helpful :D Also this has happened on steam beta for me? I swapped before just too see if that is more "stable"

Milkkolaj avatar Jul 30 '24 20:07 Milkkolaj

@Milkkolaj you should probably report this to mesa, the gldriverquery fix has shipped. This looks like a different driver crash at shutdown, but our tool no longer does anything out of the ordinary or dangerous there.

TTimo avatar Jul 31 '24 07:07 TTimo

FWIW, the underlying driver-side issue will be fixed in the next 560-series driver release and subsequent driver series on the NVIDIA side as well.

cubanismo avatar Jul 31 '24 15:07 cubanismo