When the strace'd program is run by execve(), strace
gets an SIGTRAP with the program's initial state. This
causes an error, as there is often no SWI instruction
at the start, and thus a bad syscall is reported.
Thank you for this patch. Without it, strace-4.5.14 fails
as you describe for every program on my glibc-2.3.3 based
Linux/ARM system. With the patch, strace seems to be working
as expected.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: NO
Change by Ben Dooks, ben-linux@fluff.org
Logged In: NO
Patch can be found at
http://www.fluff.org/ben/patches/strace/strace-fix-arm-bad-syscall.patch
Logged In: YES
user_id=176526
Thank you for this patch. Without it, strace-4.5.14 fails
as you describe for every program on my glibc-2.3.3 based
Linux/ARM system. With the patch, strace seems to be working
as expected.
Logged In: YES
user_id=443596
Originator: NO
I would also recommend to add this patch to the baseline. Wonder why it isn't already in 4.5.16...
Thomas