operating-systems
operating-systems copied to clipboard
software-stack/libcall-syscall ltrace not working on Mac with M1
When trying to execute ltrace
as showed here [1] I get the following error:
PTRACE_TRACEME: Function not implemented
failed to initialize process 167: No such file or directory
couldn't open program '/usr/bin/ls': No such file or directory
It seems to be caused by the fact that you can't run an emulated gdb inside QEMU's usermode emulation. [2] [3]
[1] https://open-education-hub.github.io/operating-systems/Lab/Software%20Stack/Libcall-Syscall/content/libcall-syscall [2] https://stackoverflow.com/questions/68435791/warning-ptrace-function-not-implemented-during-startup-program-exited-with-cod [3] https://github.com/docker/for-mac/issues/5191