Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support debugging crashes from binaries invoked via shell scripts. #363

Open
RokeJulianLockhart opened this issue Dec 14, 2024 · 0 comments

Comments

@RokeJulianLockhart
Copy link

RokeJulianLockhart commented Dec 14, 2024

Both firefox 1 and steamwebhelper 2 are bash shell scripts:

RokeJulianLockhart@SNRW3Q:~$ command -v steam
/usr/bin/steam
RokeJulianLockhart@SNRW3Q:~$ command -v firefox
/usr/bin/firefox
RokeJulianLockhart@SNRW3Q:~$ file /usr/bin/steam
/usr/bin/steam: symbolic link to /usr/lib/steam/bin_steam.sh
RokeJulianLockhart@SNRW3Q:~$ file /usr/bin/firefox
/usr/bin/firefox: Bourne-Again shell script, ASCII text executable
RokeJulianLockhart@SNRW3Q:~$ file $(readlink /usr/bin/steam)
/usr/lib/steam/bin_steam.sh: Bourne-Again shell script, ASCII text executable

However, although neither steam nor firefox can be debugged by gdb (at least, not without trickery that I'm ultimately unfamiliar with), firefox can be debugged by gnome-abrt, whereas steam (and its more common crash blame receipient, steamwebhelper) cannot, as the undermentioned demonstrates:

--- Running report_uReport ---
Server responded with an error: 'uReport must contain affected package'

--- Skipping collect_GConf ---
No matching actions found for this event.

--- Skipping collect_vimrc_system ---
No matching actions found for this event.

--- Skipping collect_vimrc_user ---
No matching actions found for this event.

--- Skipping collect_xsession_errors ---
No matching actions found for this event.

--- Running analyze_CCpp ---
Generating backtrace
Backtrace is generated and saved, 69614 bytes
Can't open file 'component' for reading: No such file or directory

--- Running analyze_BodhiUpdates ---
Looking for similar problems in bugzilla

Specifically, the undermentioned error appears to prevent it:

Can't open file 'component' for reading: No such file or directory

For reference, drkonqi-coredump-gui reports:

           PID: 145523 (steamwebhelper)
           UID: 1000 (RokeJulianLockhart)
           GID: 1000 (RokeJulianLockhart)
        Signal: 11 (SEGV)
     Timestamp: Tue 2024-12-03 17:41:48 GMT (1 week 3 days ago)
  Command Line: ./steamwebhelper -lang=en_US -cachedir=/home/RokeJulianLockhart/.local/share/Steam/config/htmlcache -steampid=144923 -buildid=1731433018 -steamid=0 -logdir=/home/RokeJulianLockhart/.local/share/Steam/logs -uimode=7 -startcount=0 -steamuniverse=Public -realm=Global -clientui=/home/RokeJulianLockhart/.local/share/Steam/clientui -steampath=/home/RokeJulianLockhart/.local/share/Steam/ubuntu12_32/steam -launcher=0 -no-restart-on-ui-mode-change --valve-enable-site-isolation --enable-smooth-scrolling --password-store=basic --log-file=/home/RokeJulianLockhart/.local/share/Steam/logs/cef_log.txt --disable-quick-menu --enable-features=PlatformHEVCDecoderSupport --disable-features=SpareRendererForSitePerProcess,DcheckIsFatal,ValveFFmpegAllowLowDelayHEVC
    Executable: /home/RokeJulianLockhart/.local/share/Steam/ubuntu12_64/steamwebhelper
 Control Group: /user.slice/user-1000.slice/user@1000.service/app.slice/app-steam@9a42597cd1b84fb0b7f3b66879153926.service
          Unit: user@1000.service
     User Unit: app-steam@9a42597cd1b84fb0b7f3b66879153926.service
         Slice: user-1000.slice
     Owner UID: 1000 (RokeJulianLockhart)
       Boot ID: c12448e213c144b18ffc5a0816158a6a
    Machine ID: 8962ec69d8de46f6b8ebc778a4ca76cb
      Hostname: SNRW3Q
       Storage: /var/lib/systemd/coredump/core.steamwebhelper.1000.c12448e213c144b18ffc5a0816158a6a.145523.1733247708000000.zst (present)
  Size on Disk: 10.4M
       Message: Process 145523 (steamwebhelper) of user 1000 dumped core.
                
                Module /run/host/usr/lib64/libxcb-glx.so.0.0.0 from rpm libxcb-1.17.0-3.fc41.x86_64
                Module /run/host/usr/lib64/libXxf86vm.so.1.0.0 from rpm libXxf86vm-1.1.5-7.fc41.x86_64
                Module /run/host/usr/lib64/libGLX_mesa.so.0.0.0 from rpm mesa-24.2.8-1.fc41.x86_64
                Module /run/host/usr/lib64/libudev.so.1.7.9 from rpm systemd-256.9-2.fc41.x86_64
                Module /run/host/usr/lib64/libcap.so.2.70 from rpm libcap-2.70-4.fc41.x86_64
                Module /run/host/usr/lib64/libwayland-client.so.0.23.0 from rpm wayland-1.23.0-2.fc41.x86_64
                Module /run/host/usr/lib64/libxml2.so.2.12.8 from rpm libxml2-2.12.8-2.fc41.x86_64
                Module /run/host/usr/lib64/libunistring.so.5.0.0 from rpm libunistring-1.1-8.fc41.x86_64
                Module /run/host/usr/lib64/libpciaccess.so.0.11.1 from rpm libpciaccess-0.16-13.fc41.x86_64
                Module /run/host/usr/lib64/libedit.so.0.0.74 from rpm libedit-3.1-53.20240808cvs.fc41.x86_64
                Module /run/host/usr/lib64/libffi.so.8.1.4 from rpm libffi-3.4.6-3.fc41.x86_64
                Module /run/host/usr/lib64/libxcb-dri2.so.0.0.0 from rpm libxcb-1.17.0-3.fc41.x86_64
                Module /run/host/usr/lib64/libdrm_intel.so.1.123.0 from rpm libdrm-2.4.123-1.fc41.x86_64
                Module /run/host/usr/lib64/libdrm_amdgpu.so.1.123.0 from rpm libdrm-2.4.123-1.fc41.x86_64
                Module /run/host/usr/lib64/libelf-0.192.so from rpm elfutils-0.192-6.fc41.x86_64
                Module /run/host/usr/lib64/libdrm_radeon.so.1.123.0 from rpm libdrm-2.4.123-1.fc41.x86_64
                Module /run/host/usr/lib64/libsensors.so.4.5.0 from rpm lm_sensors-3.6.0-20.fc41.x86_64
                Module /run/host/usr/lib64/libxcb-sync.so.1.0.0 from rpm libxcb-1.17.0-3.fc41.x86_64
                Module /run/host/usr/lib64/libxshmfence.so.1.0.0 from rpm libxshmfence-1.3.2-5.fc41.x86_64
                Module /run/host/usr/lib64/libxcb-xfixes.so.0.0.0 from rpm libxcb-1.17.0-3.fc41.x86_64
                Module /run/host/usr/lib64/libxcb-present.so.0.0.0 from rpm libxcb-1.17.0-3.fc41.x86_64
                Module /run/host/usr/lib64/libxcb-dri3.so.0.1.0 from rpm libxcb-1.17.0-3.fc41.x86_64
                Module /run/host/usr/lib64/libX11-xcb.so.1.0.0 from rpm libX11-1.8.10-2.fc41.x86_64
                Module /run/host/usr/lib64/libglapi.so.0.0.0 from rpm mesa-24.2.8-1.fc41.x86_64
                Module /run/host/usr/lib64/libidn2.so.0.4.0 from rpm libidn2-2.3.7-2.fc41.x86_64
                Module /run/host/usr/lib64/libzstd.so.1.5.6 from rpm zstd-1.5.6-2.fc41.x86_64
                Module /run/host/usr/lib64/liblzma.so.5.6.2 from rpm xz-5.6.2-2.fc41.x86_64
                Module /run/host/usr/lib64/libgallium-24.2.8.so from rpm mesa-24.2.8-1.fc41.x86_64
                Module /run/host/usr/lib64/libxcb-shm.so.0.0.0 from rpm libxcb-1.17.0-3.fc41.x86_64
                Module /run/host/usr/lib64/libxcb-randr.so.0.1.0 from rpm libxcb-1.17.0-3.fc41.x86_64
                Module /run/host/usr/lib64/libwayland-server.so.0.23.0 from rpm wayland-1.23.0-2.fc41.x86_64
                Module /run/host/usr/lib64/libXau.so.6.0.0 from rpm libXau-1.0.11-7.fc41.x86_64
                Module /run/host/usr/lib64/libGLdispatch.so.0.0.0 from rpm libglvnd-1.7.0-5.fc41.x86_64
                Module /run/host/usr/lib64/libGLX.so.0.0.0 from rpm libglvnd-1.7.0-5.fc41.x86_64
                Module /run/host/usr/lib64/libz.so.1.3.1.zlib-ng from rpm zlib-ng-2.1.7-3.fc41.x86_64
                Module /run/host/usr/lib64/libgbm.so.1.0.0 from rpm mesa-24.2.8-1.fc41.x86_64
                Module /run/host/usr/lib64/libxcb.so.1.1.0 from rpm libxcb-1.17.0-3.fc41.x86_64
                Module /run/host/usr/lib64/libexpat.so.1.10.0 from rpm expat-2.6.4-1.fc41.x86_64
                Module /run/host/usr/lib64/libdrm.so.2.123.0 from rpm libdrm-2.4.123-1.fc41.x86_64
                Module /run/host/usr/lib64/libX11.so.6.4.0 from rpm libX11-1.8.10-2.fc41.x86_64
                Module /run/host/usr/lib64/libXfixes.so.3.1.0 from rpm libXfixes-6.0.1-4.fc41.x86_64
                Module /run/host/usr/lib64/libGL.so.1.7.0 from rpm libglvnd-1.7.0-5.fc41.x86_64
                Module /run/host/usr/lib64/libXext.so.6.4.0 from rpm libXext-1.3.6-2.fc41.x86_64
                Stack trace of thread 147401:
                #0  0x0000000000000000 n/a (n/a + 0x0)
                ELF object binary architecture: AMD x86-64

This obviously isn't useful either, and that's not surprising, because it's basically a frontend to gdb.

Footnotes

  1. fedora-updates-x86_64/firefox-133.0.3-1.fc41.x86_64.rpm

  2. rpmfusion-nonfree-updates-x86_64/steam-1.0.0.82-1.fc41.i686.rpm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant