#1106762 ltrace: -p $pid SIGCONTs $pid and makes SIGTSTPping $pid ineffective

Package:
ltrace
Source:
ltrace
Description:
Tracks runtime library calls in dynamically linked programs
Submitter:
наб
Date:
2025-05-29 14:21:01 UTC
Severity:
normal
#1106762#5
Date:
2025-05-29 14:06:55 UTC
From:
To:
Dear Maintainer,

$ </dev/zero /bin/dd status=progress > /dev/null
1756444160 bytes (1.8 GB, 1.6 GiB) copied, 4 s, 439 MB/s^Z
[3]+  Stopped                 /bin/dd status=progress < /dev/zero > /dev/null
$ jobs -p %3
3049318
$ ltrace -p 3049318 -o /dev/null
2147149312 bytes (2.1 GB, 2.0 GiB) copied, 25 s, 85.9 MB/s^C

ltrace shouldn't do this at all; strace doesn't.

#1106762#10
Date:
2025-05-29 14:12:25 UTC
From:
To:
Actually, if you attach ltrace -p then you can ^Z and it instantly resumes.
You can then fg, ^Z and this repeats.