3 ms·
>The main problem I have with ltrace is that even though there’s a -p option (“Attach to the process with the process ID pid and begin tracing”), I don’t think
by cthalupa 9y ago
>The main problem I have with ltrace is that even though there’s a -p option (“Attach to the process with the process ID pid and begin tracing”), I don’t think I’ve ever been able to get that option to work. When I run sudo ltrace -p SOME_PID, nothing happens, even though I’m pretty sure the process I’m tracing is calling library functions.
>I don’t fully understand why ltrace can’t attach to processes, but that’s not what this post is about.
I use ltrace to attach to specific PIDs all the time, across a variety of linux distributions and versions. Unsure what is going wrong here when Julia attempts to do it.
- striking 9y agoI suspect she's on a Mac with SIP on.
- jvns 9y agoI'm on Linux. I did a tiny bit more investigation and it seems like ltrace works on some processes (like top) but not on other processes (like Firefox). I'm sure that the Firefox process in question is making library calls because when I trace the same process with `ltrace-bcc`, it shows the library calls.