Bug 479653 - cannot attach to stopped process
Summary: cannot attach to stopped process
Status: REPORTED
Alias: None
Product: Heaptrack
Classification: Applications
Component: general (show other bugs)
Version: 1.5.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Milian Wolff
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-11 16:24 UTC by Milian Wolff
Modified: 2024-01-11 16:24 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Milian Wolff 2024-01-11 16:24:17 UTC
SUMMARY

when we try to attach to a SIGSTOP'ed process, then GDB attaching fails

STEPS TO REPRODUCE
1. start app
2. ctrl+z to stop
3. attach heaptrack

OBSERVED RESULT

heaptrack output will be written to "/home/milian/projects/build/heaptrack/heaptrack.threaded.88898.zst"
injecting heaptrack into application via GDB, this might take some time...
The program received a signal in another thread while
making a function call from GDB.
Evaluation of the expression containing the function
(malloc) will be abandoned.
When the function is done executing, GDB will silently stop.
No symbol "heaptrack_inject" in current context.
injection finished


EXPECTED RESULT

it works