Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was using built-in strace given in /system/xbin/ directory in the emulator and it was giving me wrong set of system calls such as msgget() and msgrecv() which are not supported by Android even.

I downloaded a new strace4.7 from Source Forge and built with the instructions given at this link. Then I pushed it to /system/xbin/ directory after remounting adb. Now when I run

strace -p <myPID>

It gives me this error:

trace: 2: Syntax error: "&" unexpected

I have looked on the internet but nobody seems to have the same problem. Any idea where should I start debugging from or any other suggestion would be highly appreciated.

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.