Fedict / eid-mw

eID Middleware (main repository)
GNU Lesser General Public License v3.0
202 stars 78 forks source link

steamwebhelper crashloops due to reading /run/current-system/sw/lib/libbeidpkcs11.so from ~/.pki/nssdb/pkcs11.txt on NixOS 24.05.20240323.44d0940 (Uakari) x86_64 #205

Closed MarkRijckenberg closed 6 months ago

MarkRijckenberg commented 6 months ago

Describe the bug

steamwebhelper goes into a launch-crash-launch loop forever. This occurs with both nvidia and nouveau drivers. steam never gets to the startup screen. Sometimes it gets to the login screen and when I type my username and password, the login screen crashes and steam simply opens a new login screen....

libbeidpkcs11.so (part of eid-mw ) causes crashloop of steamwebhelper on NixOS 24.05.20240323.44d0940 (Uakari) x86_64

See also https://github.com/NixOS/nixpkgs/blob/2735b578a86297de1f030f07a4763669b7ddbeb1/pkgs/tools/security/eid-mw/eid-nssdb.in#L6

See following duplicate issues: https://github.com/ValveSoftware/steam-runtime/issues/667#issuecomment-2093093716 https://github.com/NixOS/nixpkgs/issues/298662

Steps To Reproduce

  1. install eid-mw (containing libbeidpkcs11.so ) as a system package
  2. install steam client via nixpkgs (not using flatpak)
  3. use nouveau or nvidia drivers
  4. run "eid-nssdb add" -> this command causes the crashloop of steam
  5. try to launch steam -> crashloop occurs -> steam keeps restarting endlessly

Expected behavior

steam package and eid-mw package should be able to co-exist on the same NixOS 24.05 system. These are totally unrelated packages. steam should be able to launch fine, even if libbeidpkcs11.so is installed via eid-mw package

steamwebhelper should skip/ignore libbeidpkcs11.so which is used for Belgian eid cards. libbeidpkcs11.so has nothing to do with steam.

Additional context

crashdump of steamwebhelper shows following error:

0x000075bd642dcd40 n/a (libbeidpkcs11.so + 0x22d40)

See more details in logs below, including output of "coredumpctl dump 7511"

Running "eid-nssdb remove" solves crashloop issue, but this should not be necessary. steamwebhelper (part of steam) is trying to do something with libbeidpkcs11.so , but should skip it instead....

Here is my system configuration:


~ took 2m50s ⋉ neofetch
          ▗▄▄▄       ▗▄▄▄▄    ▄▄▄▖            ulysses@ulysses-desktop 
          ▜███▙       ▜███▙  ▟███▛            ----------------------- 
           ▜███▙       ▜███▙▟███▛             OS: NixOS 24.05.20240323.44d0940 (Uakari) x86_64 
            ▜███▙       ▜██████▛              Host: Micro-Star International Co., Ltd. MAG X670E TOMAHAWK WIFI (MS-7E12) 
     ▟█████████████████▙ ▜████▛     ▟▙        Kernel: 6.8.1-cachyos 
    ▟███████████████████▙ ▜███▙    ▟██▙       Uptime: 9 mins 
           ▄▄▄▄▖           ▜███▙  ▟███▛       Packages: 1704 (nix-system), 3877 (nix-user) 
          ▟███▛             ▜██▛ ▟███▛        Shell: bash 5.2.26 
         ▟███▛               ▜▛ ▟███▛         Resolution: 2560x1440 
▟███████████▛                  ▟██████████▙   DE: Cinnamon 6.0.4 
▜██████████▛                  ▟███████████▛   WM: Mutter (Muffin) 
      ▟███▛ ▟▙               ▟███▛            WM Theme: New-Minty (Mint-Y) 
     ▟███▛ ▟██▙             ▟███▛             Theme: Mint-L-Dark [GTK2/3] 
    ▟███▛  ▜███▙           ▝▀▀▀▀              Icons: Numix-Circle-Light [GTK2/3] 
    ▜██▛    ▜███▙ ▜██████████████████▛        Terminal: .gnome-terminal 
     ▜▛     ▟████▙ ▜████████████████▛         CPU: AMD Ryzen 7 7800X3D (16) @ 5.050GHz 
           ▟██████▙       ▜███▙               GPU: NVIDIA GeForce RTX 4070 
          ▟███▛▜███▙       ▜███▙              GPU: AMD ATI Raphael 
         ▟███▛  ▜███▙       ▜███▙             Memory: 3873MiB / 63476MiB 
         ▝▀▀▀    ▀▀▀▀▘       ▀▀▀▘

And here are the logs while using the nouveau drivers:

⋉ steam
steam.sh[3941]: Running Steam on nixos 24.05 64-bit
steam.sh[3941]: STEAM_RUNTIME is enabled automatically
setup.sh[4028]: Steam runtime environment up-to-date!
steam.sh[3941]: Steam client's requirements are satisfied
tid(4086) burning pthread_key_t == 0 so we never use it
[2024-03-24 15:20:43] Startup - updater built Mar  6 2024 20:27:25
[2024-03-24 15:20:43] Startup - Steam Client launched with: '/home/ulysses/.local/share/Steam/ubuntu12_32/steam'
minidumps folder is set to /tmp/dumps
03/24 15:20:43 Init: Installing breakpad exception handler for appid(steam)/version(1709846872)/tid(4086)
[2024-03-24 15:20:43] Loading cached metrics from disk (/home/ulysses/.local/share/Steam/package/steam_client_metrics.bin)
[2024-03-24 15:20:43] Using the following download hosts for Public, Realm steamglobal
[2024-03-24 15:20:43] 1. https://client-update.akamai.steamstatic.com, /, Realm 'steamglobal', weight was 1000, source = 'update_hosts_cached.vdf'
[2024-03-24 15:20:43] 2. https://cdn.cloudflare.steamstatic.com, /client/, Realm 'steamglobal', weight was 1, source = 'update_hosts_cached.vdf'
[2024-03-24 15:20:43] 3. https://cdn.steamstatic.com, /client/, Realm 'steamglobal', weight was 1, source = 'baked in'
[2024-03-24 15:20:43] Verifying installation...
[2024-03-24 15:20:43] Verification complete
UpdateUI: skip show logo
Steam logging initialized: directory: /home/ulysses/.local/share/Steam/logs

XRRGetOutputInfo Workaround: initialized with override: 0 real: 0xdacef7b0
XRRGetCrtcInfo Workaround: initialized with override: 0 real: 0xdacedf90
steamwebhelper.sh[4124]: === Sun Mar 24 03:20:43 PM CET 2024 ===
steamwebhelper.sh[4124]: Starting steamwebhelper under bootstrap sniper steam runtime at /home/ulysses/.local/share/Steam/ubuntu12_64/steam-runtime-sniper
CAppInfoCacheReadFromDiskThread took 26 milliseconds to initialize
Steam Runtime Launch Service: starting steam-runtime-launcher-service
Steam Runtime Launch Service: steam-runtime-launcher-service is running pid 4304
bus_name=com.steampowered.PressureVessel.LaunchAlongsideSteam
WARNING: NVK is not a conformant Vulkan implementation, testing use only.
WARNING: NVK is not a conformant Vulkan implementation, testing use only.
BRefreshApplicationsInLibrary 1: 0ms
WARNING: NVK is not a conformant Vulkan implementation, testing use only.
WARNING: NVK is not a conformant Vulkan implementation, testing use only.
BuildCompleteAppOverviewChange: 264 apps
RegisterForAppOverview 1: 8ms
RegisterForAppOverview 2: 9ms
steamwebhelper.sh[4584]: === Sun Mar 24 03:21:02 PM CET 2024 ===
steamwebhelper.sh[4584]: Starting steamwebhelper under bootstrap sniper steam runtime at /home/ulysses/.local/share/Steam/ubuntu12_64/steam-runtime-sniper
BuildCompleteAppOverviewChange: 276 apps
RegisterForAppOverview 1: 3ms
RegisterForAppOverview 2: 3ms
steamwebhelper.sh[4929]: === Sun Mar 24 03:21:18 PM CET 2024 ===
steamwebhelper.sh[4929]: Starting steamwebhelper under bootstrap sniper steam runtime at /home/ulysses/.local/share/Steam/ubuntu12_64/steam-runtime-sniper
BuildCompleteAppOverviewChange: 276 apps
RegisterForAppOverview 1: 4ms
RegisterForAppOverview 2: 4ms
steamwebhelper.sh[5262]: === Sun Mar 24 03:21:33 PM CET 2024 ===
steamwebhelper.sh[5262]: Starting steamwebhelper under bootstrap sniper steam runtime at /home/ulysses/.local/share/Steam/ubuntu12_64/steam-runtime-sniper
BuildCompleteAppOverviewChange: 276 apps
RegisterForAppOverview 1: 4ms
RegisterForAppOverview 2: 4ms
steamwebhelper.sh[5597]: === Sun Mar 24 03:21:50 PM CET 2024 ===
steamwebhelper.sh[5597]: Starting steamwebhelper under bootstrap sniper steam runtime at /home/ulysses/.local/share/Steam/ubuntu12_64/steam-runtime-sniper
BuildCompleteAppOverviewChange: 276 apps
RegisterForAppOverview 1: 4ms
RegisterForAppOverview 2: 5ms
steamwebhelper.sh[5961]: === Sun Mar 24 03:22:08 PM CET 2024 ===
steamwebhelper.sh[5961]: Starting steamwebhelper under bootstrap sniper steam runtime at /home/ulysses/.local/share/Steam/ubuntu12_64/steam-runtime-sniper
BuildCompleteAppOverviewChange: 276 apps
RegisterForAppOverview 1: 4ms
RegisterForAppOverview 2: 4ms
steamwebhelper.sh[6310]: === Sun Mar 24 03:22:22 PM CET 2024 ===
steamwebhelper.sh[6310]: Starting steamwebhelper under bootstrap sniper steam runtime at /home/ulysses/.local/share/Steam/ubuntu12_64/steam-runtime-sniper
BuildCompleteAppOverviewChange: 276 apps
RegisterForAppOverview 1: 4ms
RegisterForAppOverview 2: 4ms
steamwebhelper.sh[6643]: === Sun Mar 24 03:22:36 PM CET 2024 ===
steamwebhelper.sh[6643]: Starting steamwebhelper under bootstrap sniper steam runtime at /home/ulysses/.local/share/Steam/ubuntu12_64/steam-runtime-sniper
BuildCompleteAppOverviewChange: 276 apps
RegisterForAppOverview 1: 4ms
RegisterForAppOverview 2: 4ms
[2024-03-24 15:22:44] Background update loop checking for update. . .
[2024-03-24 15:22:44] Checking for available updates...
[2024-03-24 15:22:44] Downloading manifest: https://client-update.akamai.steamstatic.com/steam_client_ubuntu12?t=2279710502
[2024-03-24 15:22:44] Manifest download: send request
[2024-03-24 15:22:44] Manifest download: waiting for download to finish
[2024-03-24 15:22:46] Manifest download: finished
[2024-03-24 15:22:46] Download skipped: /steam_client_ubuntu12?t=2279710502 version 1709846872, installed version 1709846872, existing pending version 0
[2024-03-24 15:22:46] Nothing to do
steamwebhelper.sh[6986]: === Sun Mar 24 03:22:50 PM CET 2024 ===
steamwebhelper.sh[6986]: Starting steamwebhelper under bootstrap sniper steam runtime at /home/ulysses/.local/share/Steam/ubuntu12_64/steam-runtime-sniper
BuildCompleteAppOverviewChange: 276 apps
RegisterForAppOverview 1: 4ms
RegisterForAppOverview 2: 4ms
steamwebhelper.sh[7326]: === Sun Mar 24 03:23:05 PM CET 2024 ===
steamwebhelper.sh[7326]: Starting steamwebhelper under bootstrap sniper steam runtime at /home/ulysses/.local/share/Steam/ubuntu12_64/steam-runtime-sniper
BuildCompleteAppOverviewChange: 276 apps
RegisterForAppOverview 1: 4ms
RegisterForAppOverview 2: 4ms
steamwebhelper.sh[7658]: === Sun Mar 24 03:23:19 PM CET 2024 ===
steamwebhelper.sh[7658]: Starting steamwebhelper under bootstrap sniper steam runtime at /home/ulysses/.local/share/Steam/ubuntu12_64/steam-runtime-sniper
BuildCompleteAppOverviewChange: 276 apps
RegisterForAppOverview 1: 3ms
RegisterForAppOverview 2: 3ms
[2024-03-24 15:23:31] Shutdown
⋉ cat steamwebhelper.log
steamwebhelper.sh[7658]: === Sun Mar 24 03:23:19 PM CET 2024 ===
steamwebhelper.sh[7658]: Starting steamwebhelper under bootstrap sniper steam runtime at /home/ulysses/.local/share/Steam/ubuntu12_64/steam-runtime-sniper
pressure-vessel-wrap[7678]: W: "/run/current-system/sw/bin/getent" is unlikely to appear in "/run/host"
pressure-vessel-wrap[7678]: W: Found more than one possible libdrm data directory from provider
exec ./steamwebhelper --no-sandbox -lang=en_US -cachedir=/home/ulysses/.local/share/Steam/config/htmlcache -steampid=4086 -buildid=1709846872 -steamid=76561198071569769 -logdir=/home/ulysses/.local/share/Steam/logs -uimode=7 -startcount=10 -steamuniverse=Public -realm=Global -clientui=/home/ulysses/.local/share/Steam/clientui -steampath=/home/ulysses/.local/share/Steam/ubuntu12_32/steam -launcher=0 -no-restart-on-ui-mode-change --enable-smooth-scrolling --password-store=basic --log-file=/home/ulysses/.local/share/Steam/logs/cef_log.txt --disable-quick-menu --disable-features=DcheckIsFatal
[0324/142320.480437:ERROR:context.cc(100)] The browser_subprocess_path directory (./steamwebhelper) is not an absolute path. Defaulting to empty.
[0324/142320.495003:WARNING:crash_reporting.cc(278)] Failed to set crash key: UserID with value: 0
[0324/142320.495034:WARNING:crash_reporting.cc(278)] Failed to set crash key: BuildID with value: 1709756822
[0324/142320.495037:WARNING:crash_reporting.cc(278)] Failed to set crash key: SteamUniverse with value: Public
[0324/142320.495039:WARNING:crash_reporting.cc(278)] Failed to set crash key: Vendor with value: Valve
[0324/142320.495041:WARNING:crash_reporting.cc(278)] Failed to set crash key: Platform with value: Linux
[0324/142320.495374:INFO:crash_reporting.cc(239)] Crash reporting enabled for process: browser
[0324/142320.496232:WARNING:task_impl.cc(32)] No task runner for threadId 0
[0324/142320.496884:WARNING:task_impl.cc(32)] No task runner for threadId 0
[0324/142320.511221:WARNING:crash_reporting.cc(278)] Failed to set crash key: UserID with value: 76561198071569769
[0324/142320.511256:WARNING:crash_reporting.cc(278)] Failed to set crash key: BuildID with value: 1709846872
[0324/142320.511258:WARNING:crash_reporting.cc(278)] Failed to set crash key: SteamUniverse with value: Public
[0324/142320.511261:WARNING:crash_reporting.cc(278)] Failed to set crash key: Vendor with value: Valve
[0324/142320.511262:WARNING:crash_reporting.cc(278)] Failed to set crash key: Platform with value: Linux
[0324/142320.511250:WARNING:crash_reporting.cc(278)] Failed to set crash key: UserID with value: 76561198071569769
[0324/142320.511282:WARNING:crash_reporting.cc(278)] Failed to set crash key: BuildID with value: 1709846872
[0324/142320.511285:WARNING:crash_reporting.cc(278)] Failed to set crash key: SteamUniverse with value: Public
[0324/142320.511287:WARNING:crash_reporting.cc(278)] Failed to set crash key: Vendor with value: Valve
[0324/142320.511289:WARNING:crash_reporting.cc(278)] Failed to set crash key: Platform with value: Linux
[0324/142320.547676:INFO:crash_reporting.cc(262)] Crash reporting enabled for process: gpu-process
[0324/142320.599209:WARNING:sandbox_linux.cc(385)] InitializeSandbox() called with multiple threads in process gpu-process.
[0324/142320.685718:WARNING:crash_reporting.cc(278)] Failed to set crash key: UserID with value: 76561198071569769
[0324/142320.685757:WARNING:crash_reporting.cc(278)] Failed to set crash key: BuildID with value: 1709846872
[0324/142320.685759:WARNING:crash_reporting.cc(278)] Failed to set crash key: SteamUniverse with value: Public
[0324/142320.685761:WARNING:crash_reporting.cc(278)] Failed to set crash key: Vendor with value: Valve
[0324/142320.685763:WARNING:crash_reporting.cc(278)] Failed to set crash key: Platform with value: Linux
[0324/142320.686278:INFO:crash_reporting.cc(239)] Crash reporting enabled for process: utility
[0324/142321.461127:INFO:crash_reporting.cc(262)] Crash reporting enabled for process: utility
[0324/142321.512986:INFO:crash_reporting.cc(262)] Crash reporting enabled for process: renderer
src/webhelper/html_chrome.cpp (3435) : CefCurrentlyOn( TID_UI )
failed to create drawable
[0324/142329.678665:ERROR:gl_display.cc(508)] EGL Driver message (Error) eglSwapBuffers: Failed to retrieve the size of the parent window.
[0324/142329.678775:ERROR:gpu_service_impl.cc(988)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[0324/142329.690333:ERROR:gpu_process_host.cc(991)] GPU process exited unexpectedly: exit_code=8704
[0324/142329.690348:WARNING:gpu_process_host.cc(1338)] The GPU process has crashed 1 time(s)
[0324/142329.691830:INFO:crash_reporting.cc(262)] Crash reporting enabled for process: gpu-process
[0324/142329.750912:WARNING:sandbox_linux.cc(385)] InitializeSandbox() called with multiple threads in process gpu-process.
[0324/142329.751762:WARNING:gpu_process_host.cc(1014)] Reinitialized the GPU process after a crash. The reported initialization time was 59 ms
[0324/142329.770293:ERROR:gl_surface_egl.cc(480)] eglCreateWindowSurface failed with error EGL_BAD_NATIVE_WINDOW
[0324/142329.770968:ERROR:command_buffer_proxy_impl.cc(325)] GPU state invalid after WaitForGetOffsetInRange.
[0324/142329.771390:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[0324/142329.773456:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[0324/142329.779892:WARNING:frame_impl.cc(699)] SendProcessMessage sent to detached frame 21474836481 [5,1] will be ignored
[0324/142329.779925:WARNING:connection.cc(41)] X error received.  Request: SendEventRequest, Error: WindowError{.sequence = 442, .bad_value = 73400338, .minor_opcode = 0, .major_opcode = 25}
[0324/142329.779939:WARNING:frame_impl.cc(699)] SendProcessMessage sent to detached frame 21474836481 [5,1] will be ignored
[0324/142329.779965:WARNING:frame_impl.cc(699)] SendProcessMessage sent to detached frame 21474836481 [5,1] will be ignored
[0324/142329.779988:WARNING:frame_impl.cc(699)] SendProcessMessage sent to detached frame 21474836481 [5,1] will be ignored
[0324/142329.780018:WARNING:frame_impl.cc(699)] SendProcessMessage sent to detached frame 21474836481 [5,1] will be ignored
[0324/142329.780735:WARNING:connection.cc(41)] X error received.  Request: DestroyWindowRequest, Error: WindowError{.sequence = 450, .bad_value = 73400325, .minor_opcode = 0, .major_opcode = 4}
[0324/142329.780851:ERROR:x11_software_bitmap_presenter.cc(142)] XGetWindowAttributes failed for window 73400340
[0324/142329.780913:WARNING:frame_impl.cc(699)] SendProcessMessage sent to detached frame 21474836484 [5,4] will be ignored
[0324/142329.780950:WARNING:frame_impl.cc(699)] SendProcessMessage sent to detached frame 21474836484 [5,4] will be ignored
[0324/142329.780992:WARNING:connection.cc(41)] X error received.  Request: CreateGCRequest, Error: DrawableError{.sequence = 36, .bad_value = 73400340, .minor_opcode = 0, .major_opcode = 55}
src/webhelper/html_chrome.cpp (3435) : CefCurrentlyOn( TID_UI )
Forced create but already created for SharedObjectEvent
⋉ coredumpctl dump 7511
           PID: 7511 (steamwebhelper)
           UID: 1000 (ulysses)
           GID: 100 (users)
        Signal: 6 (ABRT)
     Timestamp: Sun 2024-03-24 15:23:18 CET (18min ago)
  Command Line: ./steamwebhelper --no-sandbox -lang=en_US -cachedir=/home/ulysses/.local/share/Steam/config/htmlcache -steampid=4086 -buildid=1709846872 -steamid=76561198071569769 -logdir=/home/ulysses/.local/share/Steam/logs -uimode=7 -startcount=9 -steamuniverse=Public -realm=Global -clientui=/home/ulysses/.local/share/Steam/clientui -steampath=/home/ulysses/.local/share/Steam/ubuntu12_32/steam -launcher=0 -no-restart-on-ui-mode-change --enable-smooth-scrolling --password-store=basic --log-file=/home/ulysses/.local/share/Steam/logs/cef_log.txt --disable-quick-menu --disable-features=DcheckIsFatal
    Executable: /home/ulysses/.local/share/Steam/ubuntu12_64/steamwebhelper
 Control Group: /user.slice/user-1000.slice/user@1000.service/app.slice/app-org.gnome.Terminal.slice/vte-spawn-94626b1f-a3b9-44e5-b579-904a7f2d5172.scope
          Unit: user@1000.service
     User Unit: vte-spawn-94626b1f-a3b9-44e5-b579-904a7f2d5172.scope
         Slice: user-1000.slice
     Owner UID: 1000 (ulysses)
       Boot ID: 206b0a40ab1345e59a98b6e1b1b39edf
    Machine ID: 05b8bffe3ee546de92637b08074317db
      Hostname: ulysses-desktop
       Storage: /var/lib/systemd/coredump/core.steamwebhelper.1000.206b0a40ab1345e59a98b6e1b1b39edf.7511.1711290198000000.zst (present)
  Size on Disk: 28.7M
       Message: Process 7511 (steamwebhelper) of user 1000 dumped core.

                Module /nix/store/vwrm7xc2fha9imwzyz4xm5cvdm45l8m6-bzip2-1.0.8/lib/libbz2.so.1.0.8 without build-id.
                Module /nix/store/f64g1pahb9x41b0bh9l3zaxd7av5p6lj-systemd-minimal-libs-255.2/lib/libudev.so.1.7.8 without build-id.
                Module /nix/store/8m69p7c5cjsrhh49mykh62vz8vmp0diw-libX11-1.8.7/lib/libX11-xcb.so.1.0.0 without build-id.
                Module /nix/store/cbg7fz3cd0jbh79fpi72h0zwvvqgjzpd-zstd-1.5.5/lib/libzstd.so.1.5.5 without build-id.
                Module /nix/store/yyqzw7xvsrn3h2zrvincbs1b291yzx8c-xz-5.6.1/lib/liblzma.so.5.6.1 without build-id.
                Module /nix/store/n9sq1bvghs9z0qg6cmwg27y4jmszwgqi-libidn2-2.3.7/lib/libidn2.so.0.4.0 without build-id.
                Module /nix/store/fy2yyv6xji1bkllx2rwvg6hn0p5s4219-libxcb-1.16/lib/libxcb-shm.so.0.0.0 without build-id.
                Module /nix/store/zbaajn0dk65kwvrcglhli1j4xx4vhvvj-zlib-1.3.1/lib/libz.so.1.3.1 without build-id.
                Module /nix/store/6k373ff6rgylb9w6l2qlagb5xdv0fcsf-gcc-13.2.0-libgcc/lib/libgcc_s.so.1 without build-id.
                Module /nix/store/fy2yyv6xji1bkllx2rwvg6hn0p5s4219-libxcb-1.16/lib/libxcb.so.1.1.0 without build-id.
                Module /nix/store/5nx5csrqcra26y520zbxjzjvi9hmkrzv-expat-2.6.0/lib/libexpat.so.1.9.0 without build-id.
                Module /nix/store/6n7r4hfrz7wcfgyyy4wly2dl8wpmgrln-libdrm-2.4.120/lib/libdrm.so.2.4.0 without build-id.
                Module /nix/store/8m69p7c5cjsrhh49mykh62vz8vmp0diw-libX11-1.8.7/lib/libX11.so.6.4.0 without build-id.
                Module /nix/store/vhsc0h999ijdd7yjvyz5hwsm9d10di9q-libXfixes-6.0.1/lib/libXfixes.so.3.1.0 without build-id.
                Module /nix/store/lpqy1z1h8li6h3cp9ax6vifl71dks1ff-libglvnd-1.7.0/lib/libGL.so.1.7.0 without build-id.
                Module /nix/store/9wi57z48m80s40j1bzh2wnpvpi0v4y38-libXext-1.3.6/lib/libXext.so.6.4.0 without build-id.
                Module libpcsclite.so.1 without build-id.
                Module libbeidpkcs11.so without build-id.
                Module libpciaccess.so.0 without build-id.
                Module libxml2.so.2 without build-id.
                Module libncursesw.so.6 without build-id.
                Module libstdc++.so.6 without build-id.
                Module libdrm_intel.so.1 without build-id.
                Module libdrm_nouveau.so.2 without build-id.
                Module libdrm_amdgpu.so.1 without build-id.
                Module libdrm_radeon.so.1 without build-id.
                Module libsensors.so.5 without build-id.
                Module libxcb-xfixes.so.0 without build-id.
                Module libxcb-sync.so.1 without build-id.
                Module libxcb-present.so.0 without build-id.
                Module libxcb-dri3.so.0 without build-id.
                Module libxshmfence.so.1 without build-id.
                Module libXxf86vm.so.1 without build-id.
                Module libxcb-dri2.so.0 without build-id.
                Module libxcb-glx.so.0 without build-id.
                Module libcap.so.2 without build-id.
                Module libunistring.so.5 without build-id.
                Module libffi.so.8 without build-id.
                Module libxcb-randr.so.0 without build-id.
                Module libXdmcp.so.6 without build-id.
                Module libXau.so.6 without build-id.
                Module libGLdispatch.so.0 without build-id.
                Module libGLX.so.0 without build-id.
                Stack trace of thread 7525:
                #0  0x000075bd68ca407c __pthread_kill_implementation (/nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libc.so.6 + 0x8d07c)
                #1  0x000075bd68c54e06 raise (/nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libc.so.6 + 0x3de06)
                #2  0x000075bd68c3d8f5 abort (/nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libc.so.6 + 0x268f5)
                #3  0x0000612f0b22d9ac n/a (/home/ulysses/.local/share/Steam/ubuntu12_64/steamwebhelper + 0x63a9ac)
                #4  0x000075bd509fcf20 n/a (n/a + 0x0)
                #5  0x000075bd642dcd40 n/a (libbeidpkcs11.so + 0x22d40)
                ELF object binary architecture: AMD x86-64
Refusing to dump core to tty (use shell redirection or specify --output).

Notify maintainers

(based on https://github.com/NixOS/nixpkgs/commit/53c527b6945b9e8e440b225bad0e70c2ab9f194e)

@yoe

eid-mw maintainers for NixOS:

@bfortz @chvp

eid-mw contributor for NixOS: @gytars

Metadata

ulysses-desktop ~ 130 ⋉ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.8.1-cachyos, NixOS, 24.05 (Uakari), 24.05.20240323.44d0940`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - nixpkgs: `/etc/nix/path/nixpkgs`
⋉ ldd -v  /home/ulysses/.local/share/Steam/ubuntu12_64/steamwebhelper
    linux-vdso.so.1 (0x00007ffc7e1c0000)
    libdl.so.2 => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libdl.so.2 (0x0000759ab9cd2000)
    librt.so.1 => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/librt.so.1 (0x0000759ab9ccd000)
    libcef.so => not found
    libSDL3.so.0 => not found
    libgobject-2.0.so.0 => not found
    libglib-2.0.so.0 => not found
    libgio-2.0.so.0 => not found
    libX11.so.6 => not found
    libXi.so.6 => not found
    libXext.so.6 => not found
    libXrender.so.1 => not found
    libXtst.so.6 => not found
    libXrandr.so.2 => not found
    libXcomposite.so.1 => not found
    libXdamage.so.1 => not found
    libGL.so.1 => not found
    libibus-1.0.so.5 => not found
    libm.so.6 => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libm.so.6 (0x0000759ab951e000)
    libpthread.so.0 => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libpthread.so.0 (0x0000759ab9519000)
    libc.so.6 => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libc.so.6 (0x0000759ab9330000)
    /lib64/ld-linux-x86-64.so.2 => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib64/ld-linux-x86-64.so.2 (0x0000759ab9cd9000)

    Version information:
    /home/ulysses/.local/share/Steam/ubuntu12_64/steamwebhelper:
        ld-linux-x86-64.so.2 (GLIBC_2.3) => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib64/ld-linux-x86-64.so.2
        libSDL3.so.0 (SDL3_0.0.0) => not found
        libc.so.6 (GLIBC_2.2.5) => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libc.so.6
        libc.so.6 (GLIBC_2.3) => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libc.so.6
        libc.so.6 (GLIBC_2.3.2) => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libc.so.6
        libc.so.6 (GLIBC_2.3.4) => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libc.so.6
        libc.so.6 (GLIBC_2.4) => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libc.so.6
        libc.so.6 (GLIBC_2.7) => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libc.so.6
        libc.so.6 (GLIBC_2.10) => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libc.so.6
        libc.so.6 (GLIBC_2.14) => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libc.so.6
        libc.so.6 (GLIBC_2.15) => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libc.so.6
        libc.so.6 (GLIBC_2.17) => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libc.so.6
        libc.so.6 (GLIBC_2.25) => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libc.so.6
        libdl.so.2 (GLIBC_2.2.5) => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libdl.so.2
        libdl.so.2 (GLIBC_2.3.4) => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libdl.so.2
        libm.so.6 (GLIBC_2.2.5) => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libm.so.6
        libm.so.6 (GLIBC_2.27) => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libm.so.6
        libm.so.6 (GLIBC_2.29) => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libm.so.6
        libpthread.so.0 (GLIBC_2.2.5) => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libpthread.so.0
        libpthread.so.0 (GLIBC_2.3.2) => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libpthread.so.0
        libpthread.so.0 (GLIBC_2.3.3) => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libpthread.so.0
        libpthread.so.0 (GLIBC_2.12) => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libpthread.so.0
        librt.so.1 (GLIBC_2.2.5) => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/librt.so.1
    /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libdl.so.2:
        libc.so.6 (GLIBC_ABI_DT_RELR) => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libc.so.6
        libc.so.6 (GLIBC_2.2.5) => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libc.so.6
    /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/librt.so.1:
        libc.so.6 (GLIBC_ABI_DT_RELR) => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libc.so.6
        libc.so.6 (GLIBC_2.2.5) => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libc.so.6
        libc.so.6 (GLIBC_PRIVATE) => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libc.so.6
    /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libm.so.6:
        ld-linux-x86-64.so.2 (GLIBC_PRIVATE) => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib64/ld-linux-x86-64.so.2
        libc.so.6 (GLIBC_ABI_DT_RELR) => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libc.so.6
        libc.so.6 (GLIBC_2.4) => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libc.so.6
        libc.so.6 (GLIBC_2.2.5) => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libc.so.6
        libc.so.6 (GLIBC_PRIVATE) => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libc.so.6
    /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libpthread.so.0:
        libc.so.6 (GLIBC_ABI_DT_RELR) => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libc.so.6
        libc.so.6 (GLIBC_2.2.5) => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libc.so.6
    /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib/libc.so.6:
        ld-linux-x86-64.so.2 (GLIBC_2.2.5) => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib64/ld-linux-x86-64.so.2
        ld-linux-x86-64.so.2 (GLIBC_2.3) => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib64/ld-linux-x86-64.so.2
        ld-linux-x86-64.so.2 (GLIBC_PRIVATE) => /nix/store/1rm6sr6ixxzipv5358x0cmaw8rs84g2j-glibc-2.38-44/lib64/ld-linux-x86-64.so.2

Contents of pcscd.nix file containing the whole eid-mw configuration that I am using:

{ config, pkgs, lib, ... }:

{

  environment.systemPackages = with pkgs; [
     chrome-token-signing # Chrome and Firefox extension for signing with your eID on the web
      (pkgs.writeShellScriptBin "eid-card-reader-activation-script" ''
      # See https://nixos.wiki/wiki/Web_eID
      # kill all open browsers:
      killall brave
      killall chromium
      killall firefox
      killall .firefox-wrapped
      NSSDB="''${HOME}/.pki/nssdb"
      mkdir -p ''${NSSDB} 
      eid-nssdb remove  
      # "eid-nssdb add" is crucial step to enable eid card reader:
      # see https://search.nixos.org/packages?channel=23.11&show=eid-mw&from=0&size=50&sort=relevance&type=packages&query=eid-mw
      eid-nssdb add
      eid-viewer
      echo "retest eid card reader on www.cm.be using brave or chromium web browser"
      chromium www.cm.be
    '')

     eid-mw # libbeidpkcs11.so in eid-mw causes coredump and constant restarting of steamwebhelper/steam client
     opensc # Set of libraries and utilities to access smart cards, required for Belgian eid cards
     p11-kit # Library for loading and sharing PKCS#11 modules, required for Belgian eid cards
     pcscliteWithPolkit # Middleware to access a smart card using SCard API (PC/SC), required for Belgian eid cards
     pcsctools # Tools used to test a PC/SC driver, card or reader, required for Belgian eid cards
     web-eid-app # signing and authentication operations with smart cards for the Web eID browser extension
  ];

services.pcscd.enable = true;
services.pcscd.extraArgs = [ "-d" ]; 
services.pcscd.plugins = [ pkgs.acsccid ]; # is right driver for ACR38 AC1038-based Smart Card Reader

# Bus 001 Device 002: ID 072f:9000 Advanced Card Systems, Ltd ACR38 AC1038-based Smart Card Reader
# This ACR38U seems to require use of acsccid plugin for pcscd
services.udev.extraRules = ''
    SUBSYSTEM=="usb", ATTR{idVendor}=="072f", ATTR{idProduct}=="9000", MODE="0660", GROUP="wheel"
  '';

security.polkit.extraConfig = ''
      polkit.addRule(function(action, subject) {
        if ((action.id == "org.debian.pcsc-lite.access_pcsc" ||
          action.id == "org.debian.pcsc-lite.access_card") &&
          subject.isInGroup("wheel")) {
          return polkit.Result.YES;
        }
      });
  '';

}

Add a :+1: reaction to issues you find important.

yoe commented 6 months ago

0x000075bd642dcd40 n/a (libbeidpkcs11.so + 0x22d40)

This shows that something did happen inside libbeidpkcs11.so, but it does not show where, because the tool you used to dump the stack trace does not have debugging symbols of libbeidpkcs11.so available.

You'll need to fix that in order for this bug to become actionable for us. I can't tell you how, as I'm not familiar with NixOS and don't know how their tools work :-)

Thanks,

MarkRijckenberg commented 6 months ago

I have solved the crashlooping issue by performing a complete reinstall of the steam client on NixOS unstable.

I ran rm -rf ~/.local/share/Steam Then reran steam to force a new install. No more crashlooping of steam, even when libbeidpkcs11.so is loaded via eid-nssdb add