<div dir="ltr"><div>Hello,</div><div>I'm trying to strace an application directly in a real embedded MIPS32 chipset that runs uclinux.</div><div><br></div><div>This is the toolchain I used to compile strace:</div><div>david@devuan:~$ mipsel-buildroot-linux-uclibc-gcc -v</div><div>Using built-in specs.</div><div>COLLECT_GCC=/home/david/Downloads/buildroot-2017.05.2/output/host/usr/bin/mipsel-buildroot-linux-uclibc-gcc.br_real</div><div>COLLECT_LTO_WRAPPER=/home/david/Downloads/buildroot-2017.05.2/output/host/usr/libexec/gcc/mipsel-buildroot-linux-uclibc/5.4.0/lto-wrapper</div><div>Target: mipsel-buildroot-linux-uclibc</div><div>Configured with: ./configure --prefix=/home/david/Downloads/buildroot-2017.05.2/output/host/usr --sysconfdir=/home/david/Downloads/buildroot-2017.05.2/output/host/etc --enable-static --target=mipsel-buildroot-linux-uclibc --with-sysroot=/home/david/Downloads/buildroot-2017.05.2/output/host/usr/mipsel-buildroot-linux-uclibc/sysroot --disable-__cxa_atexit --with-gnu-ld --disable-libssp --disable-multilib --with-gmp=/home/david/Downloads/buildroot-2017.05.2/output/host/usr --with-mpc=/home/david/Downloads/buildroot-2017.05.2/output/host/usr --with-mpfr=/home/david/Downloads/buildroot-2017.05.2/output/host/usr --with-pkgversion='Buildroot 2017.05.2' --with-bugurl=<a href="http://bugs.buildroot.net/">http://bugs.buildroot.net/</a> --disable-libquadmath --disable-libsanitizer --enable-tls --disable-libmudflap --enable-threads --without-isl --without-cloog --with-float=soft --disable-decimal-float --with-arch=mips32 --with-abi=32 --enable-languages=c --with-build-time-tools=/home/david/Downloads/buildroot-2017.05.2/output/host/usr/mipsel-buildroot-linux-uclibc/bin --enable-shared --disable-libgomp</div><div>Thread model: posix</div><div>gcc version 5.4.0 (Buildroot 2017.05.2) </div><div><br></div><div><br></div><div>And this is what happens in the system:</div><div># ./strace -V</div><div><div>strace -- version 4.15</div><div># ./strace -dv echo foo</div><div>./strace: ptrace_setoptions = 0x51</div><div>./strace: PTRACE_SEIZE doesn't work</div><div>./strace: new tcb for pid 323, active tcbs:1</div><div>./strace: [wait(0x00177f) = 323] WIFSTOPPED,sig=SIGSTOP</div><div>./strace: pid 323 has TCB_STARTUP, initializing it</div><div>./strace: setting opts 0x51 on pid 323</div><div>./strace: ignored SIGSTOP on pid 323</div><div>./strace: [wait(0x00857f) = 323] WIFSTOPPED,sig=133</div><div>execve(./strace: process_vm_readv: Unknown error -89</div><div>0x7fad0a68, ./strace: process_vm_readv: Unknown error -89</div><div>0x7fad1ebc, ./strace: process_vm_readv: Unknown error -89</div><div>0x7fad1ec8./strace: [wait(0x04057f) = 323] WIFSTOPPED,sig=SIGTRAP,EVENT_EXEC (4)</div><div>./strace: [wait(0x00857f) = 323] WIFSTOPPED,sig=133</div><div>) = 0</div><div>./strace: [wait(0x00857f) = 323] WIFSTOPPED,sig=133</div><div>./strace: process_vm_readv: Unknown error -89</div><div>mmap(</div></div><div>//strace hangs up here, I press control c</div><div><div>./strace: cleanup: looking at pid 323</div><div>./strace: Process 323 detached</div><div>./strace: dropped tcb for pid 323, 0 remain</div><div> <detached ...></div><div># </div></div><div><br></div><div>What do you suggest me to do?</div><div>Thank you,</div><div>David</div><div><br></div></div>