You are not logged in.

#1 2024-07-05 20:23:02

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,731
Website

Stack trace from a program started from systemd service [solved]

I need to generate a stack trace for kodi to help debug a python issue.  I am starting kodi with this systemd service.  The challenge is how to start kodi with gbd in order to capture the stack trace?  My google-fu is weak on this one.

If the solution is to attach to it once running... which is the target pid?  (Is it 224881 since that is the bin?)  Example:

% ps aux | grep kodi
kodi      224843  0.2  0.0  19100 10880 ?        Ss   16:23   0:00 /usr/lib/systemd/systemd --user
kodi      224850  0.0  0.0  20576  3332 ?        S    16:23   0:00 (sd-pam)
kodi      224859  0.0  0.0   7412  5452 tty1     Ss+  16:23   0:00 /bin/sh /usr/bin/kodi-standalone
kodi      224873  0.0  0.0  20804  3304 tty1     S+   16:23   0:00 (sd-pam)
kodi      224876  0.0  0.0   7544  5448 tty1     S+   16:23   0:00 /bin/sh /usr/bin/kodi --standalone
kodi      224881 24.4  1.5 2811116 252188 tty1   Sl+  16:23   0:10 /usr/lib/kodi/kodi.bin --standalone

EDIT: nevermind ... turns out to be easy to just use coredumpctl:
https://wiki.archlinux.org/title/Core_d … _core_dump

Last edited by graysky (2024-07-05 20:46:05)

Offline

Board footer

Powered by FluxBB