Open dqminh opened 1 year ago
How are you invoking magic-trace?
I was able to reproduce it with $ sudo $HOME/bin/magic-trace attach -p 1084651 -multi-thread -trigger .
Stops when running demo without args, doesn't when there's an arg.
$ uname -a
Linux 709L7M3 5.10.0-20-amd64 #1 SMP Debian 5.10.158-2 (2022-12-13) x86_64 GNU/Linux
$ $HOME/bin/magic-trace -version
v1.1.0
Does it work reliably when you attach to the tid (instead of the parent process) without using the -multi-thread
parameter?
Does it work reliably when you attach to the tid (instead of the parent process) without using the
-multi-thread
parameter?
yes, attaching to gettid()
without -multi-thread
seems to stop as expected
I have also encountered the issue @mikea is seeing. I ended up writing a script that wraps magic-trace and uses fzf to offer me the available thread IDs to attach to.
We have a simple reproducer:
magic_trace_stop_indicator
can be triggered reliably in main thread, but not in child thread.