-
Notifications
You must be signed in to change notification settings - Fork 128
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Hi. I encountered this problem while trying to trace binary inside docker-container.
The problem manifests as rather misleading
Cannot select a snapshot symbol because magic-trace can't find that executable's symbol table. Was it built without debug info, or with debug info magic-trace doesn't understand?
message which doesn't indicate failure to open the executable but strace helped here to find the root cause as running the binary outside of container worked well.
The reason is that /proc/<pid>/exe contains a path used to launch the process inside the container which means this path refers to directories inside the container. This symlink is not valid outside of the container
I believe the problem can be fixed by skipping Core_unix.readlink here
Line 722 in 7ac635e
| |> fun pid -> Core_unix.readlink [%string "/proc/%{pid#Pid}/exe"] |
/proc/<pid>/exe.Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working