https://bugs.kde.org/show_bug.cgi?id=475982
Bug ID: 475982 Summary: pass signals to debugee Classification: Applications Product: Heaptrack Version: 1.5.0 Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: m...@milianw.de Reporter: hamish+...@risingsoftware.com Target Milestone: --- tl;dr: could heaptrack pass signals along to the debugee? SUMMARY I'm trying to debug a program which runs in a container. This program normally runs as the entrypoint of the container, but now I run it inside heaptrack. To stop the container, the runtime sends SIGINT or SIGTERM to the primary process, which would cleanly shut down my program but does not get passed through the heaptrack shell script. Eventually the container runtime kills all the processes. As a result it looks like all the memory got leaked because the program did not go through a clean shutdown. The same would apply if running heaptrack from a systemd unit. STEPS TO REPRODUCE 1. Run `heaptrack /usr/bin/sleep 60` 2. Send SIGINT or SIGTERM to heaptrack OBSERVED RESULT heaptrack exits on SIGTERM but sleep is still running SIGINT seems to be ignored completely EXPECTED RESULT SIGTERM is sent to debugee SOFTWARE/OS VERSIONS Linux/KDE Plasma: Debian bookworm + heaptrack 1.4.0 from package, or heaptrack 1.5.0 compiled from source -- You are receiving this mail because: You are watching all bug changes.