[Ltrace-devel] SIGSEGV on MIPS
Wojtek Mitus
woytekm at gmail.com
Tue Jan 1 17:51:49 UTC 2013
Hello,
I have a problem with ltrace (pulled from git and built today). Every
binary which i try to ltrace ends up with SIGSEGV in the same place -
SYS_ioctl(1,,,) (example attached below). I'll be grateful for any hints on
what can cause such behavior...
Thanks,
WM
/proc/cpuinfo:
system type : Ikanos Fusiv Core
processor : 0
cpu model : MIPS 24K V4.12
BogoMIPS : 330.95
wait instruction : yes
microsecond timers : yes
tlb_entries : 64
extra interrupt vector : yes
hardware watchpoint : yes
ASEs implemented : mips16 dsp
VCED exceptions : not available
VCEI exceptions : not available
gcc version:
/usr/local/src/ltrace#gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/mnt/usb/Shared_drive/usr/bin/../libexec/gcc/mips-unknown-linux-uclibc/4.5.4/lto-wrapper
Target: mips-unknown-linux-uclibc
Configured with:
/root/sagem3764/buildroot-2012.08/output/toolchain/gcc-4.5.4/configure
--prefix=/usr --build=i686-pc-linux-gnu --host=mips-unknown-linux-uclibc
--target=mips-unknown-linux-uclibc --enable-languages=c,c++
--with-gxx-include-dir=/usr/include/c++ --disable-__cxa_atexit
--enable-target-optspace --disable-libgomp --with-gnu-ld --disable-libssp
--disable-multilib --disable-tls --enable-shared --disable-nls
--enable-threads --disable-decimal-float --with-abi=32 --with-tune=mips32r2
--with-pkgversion='Buildroot 2012.08' --with-bugurl=
http://bugs.buildroot.net/ --disable-__cxa_atexit
--with-dynamic-linker=/3764_ext/lib/ld-uClibc.so.0
Thread model: posix
gcc version 4.5.4 (Buildroot 2012.08)
kernel version:
Linux Sagem3764F at st 2.6.16.26 #1 Wed Aug 10 10:44:02 CET 2011 mips GNU/Linux
crash example:
/usr/local/src/ltrace#./ltrace -iS /usr/bin/gawk
[0x2aaa9c9c] SYS_mmap(0, , , )
= 0x2aaae000
[0x2aaaa9c8] SYS_open(0x7f8ed1b8, , , )
= 3
[0x2aaaaa04] SYS_fstat(3, , , )
= 0
[0x2aaaaad8] SYS_mmap(0, , , )
= 0x2aaaf000
[0x2aaaab48] SYS_read(3, , , )
= 4096
[0x2aaaada8] SYS_mmap(0, , , )
= 0x2aabf000
[0x2aaaaf7c] SYS_mmap(0x2aabf000, , , )
= 0x2aabf000
[0x2aaa8e50] SYS_mmap(0x2aad0000, , , )
= 0x2aad0000
[0x2aaab130] SYS_close(3, , , )
= 0
[0x2aaab288] SYS_munmap(0x2aaaf000, , , )
= 0
[0x2aaaa9c8] SYS_open(0x7f8ed1a8, , , )
= 3
[0x2aaaaa04] SYS_fstat(3, , , )
= 0
[0x2aaaaad8] SYS_mmap(0, , , )
= 0x2aaaf000
[0x2aaaab48] SYS_read(3, , , )
= 4096
[0x2aaaada8] SYS_mmap(0, , , )
= 0x2aad2000
[0x2aaaaf7c] SYS_mmap(0x2aad2000, , , )
= 0x2aad2000
[0x2aaa8e50] SYS_mmap(0x2aaed000, , , )
= 0x2aaed000
[0x2aaab130] SYS_close(3, , , )
= 0
[0x2aaab288] SYS_munmap(0x2aaaf000, , , )
= 0
[0x2aaaa9c8] SYS_open(0x7f8ed198, , , )
= 3
[0x2aaaaa04] SYS_fstat(3, , , )
= 0
[0x2aaaaad8] SYS_mmap(0, , , )
= 0x2aaaf000
[0x2aaaab48] SYS_read(3, , , )
= 4096
[0x2aaaada8] SYS_mmap(0, , , )
= 0x2aaee000
[0x2aaaaf7c] SYS_mmap(0x2aaee000, , , )
= 0x2aaee000
[0x2aaa8e50] SYS_mmap(0x2ab28000, , , )
= 0x2ab28000
[0x2aaab130] SYS_close(3, , , )
= 0
[0x2aaab288] SYS_munmap(0x2aaaf000, , , )
= 0
[0x2aaaa9c8] SYS_open(0x7f8ed188, , , )
= 3
[0x2aaaaa04] SYS_fstat(3, , , )
= 0
[0x2aaaaad8] SYS_mmap(0, , , )
= 0x2aaaf000
[0x2aaaab48] SYS_read(3, , , )
= 4096
[0x2aaaada8] SYS_mmap(0, , , )
= 0x2ab29000
[0x2aaaaf7c] SYS_mmap(0x2ab29000, , , )
= 0x2ab29000
[0x2aaa8e50] SYS_mmap(0x2ab8d000, , , )
= 0x2ab8d000
[0x2aaa8f44] SYS_mmap(0x2ab8f000, , , )
= 0x2ab8f000
[0x2aaab130] SYS_close(3, , , )
= 0
[0x2aaab288] SYS_munmap(0x2aaaf000, , , )
= 0
[0x2aaaa9c8] SYS_open(0x7f8ed178, , , )
= 3
[0x2aaaaa04] SYS_fstat(3, , , )
= 0
[0x2aaaaaa0] SYS_close(3, , , )
= 0
[0x2aaaa668] SYS_stat(0x2aaae74c, , , )
= 0
[0x2aaaa9c8] SYS_open(0x7f8ed158, , , )
= 3
[0x2aaaaa04] SYS_fstat(3, , , )
= 0
[0x2aaaaaa0] SYS_close(3, , , )
= 0
[0x2aaaa9c8] SYS_open(0x7f8ed148, , , )
= 3
[0x2aaaaa04] SYS_fstat(3, , , )
= 0
[0x2aaaaaa0] SYS_close(3, , , )
= 0
[0x2aaa9b7c] SYS_mprotect(0x2aad0000, , , )
= 0
[0x2aaa9b7c] SYS_mprotect(0x2ab8d000, , , )
= 0
[0x2aaa9b7c] SYS_mprotect(0x2aabd000, , , )
= 0
[0x2ab35154] SYS_ioctl(0, , , )
= 0
[0x2ab35154] SYS_ioctl(1, , , )
= 0
[0x4000000] --- SIGSEGV (Segmentation fault) ---
[0xffffffff] +++ killed by SIGSEGV +++
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/ltrace-devel/attachments/20130101/7379f61b/attachment.html>
More information about the Ltrace-devel
mailing list