Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

software-stack/libcall-syscall ltrace not working on Mac with M1 #204

Open
davidxbors opened this issue Mar 17, 2023 · 0 comments
Open

software-stack/libcall-syscall ltrace not working on Mac with M1 #204

davidxbors opened this issue Mar 17, 2023 · 0 comments
Labels
area/infra Update to infrastructure / scripts kind/fix Fix issues with existing content / item student-submission Issue submitted by a student topic/software-stack Related to "Software Stack" chapter

Comments

@davidxbors
Copy link

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] docker/for-mac#5191

@teodutu teodutu added area/infra Update to infrastructure / scripts kind/fix Fix issues with existing content / item topic/software-stack Related to "Software Stack" chapter student-submission Issue submitted by a student labels Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/infra Update to infrastructure / scripts kind/fix Fix issues with existing content / item student-submission Issue submitted by a student topic/software-stack Related to "Software Stack" chapter
Projects
None yet
Development

No branches or pull requests

2 participants