Why does this ptrace program say syscall returned -38?

前端 未结 3 667
面向向阳花
面向向阳花 2021-01-05 05:28

It\'s the same as this one except that I\'m running execl(\"/bin/ls\", \"ls\", NULL);.

The result is obviously wrong as every syscall returns with

3条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-05 05:51

    You can print a human-readable description of the last system error with perror or strerror. This error description will help you substantially more.

提交回复
热议问题