path: knot_3.5.3-2/doc/troubleshooting.rst you may try the single-purpose ``pstack`` utility:: $ pstack $(pidof knotd) > backtrace.txt .. _Bus error: path: knot_3.5.3-2/doc/troubleshooting.rst To generate a core dump of a running process, the `gcore` utility can be used:: $ gcore -o $(pidof knotd) Please note that core dumps can be intercepted by an error-collecting system path: knot_3.5.3-2/doc/troubleshooting.rst $ knotd ... $ gdb --pid $(pidof knotd) (gdb) continue ... path: knot_3.5.3-2/python/knot_exporter/knot_exporter/knot_exporter.py out = dict() try: pids = subprocess.check_output(['pidof', 'knotd']).decode().split() for pid in pids: out[pid] = psutil.Process(int(pid)).memory_info()._asdict()['rss']