Hello,

Here the progress that I made.

* Was able to build an unstripped binary and installed it
* Got a fresh core after setting "limit -c" to unlimited
* Made a "backtrace" with gdb.


root@rosa:/usr/src/bts678029#
root@rosa:/usr/src/bts678029# dpkg -i 
../qemu-user-static_1.1.2+dfsg-3.1_amd64.deb
(Database inlezen ... 66165 files and directories currently installed.)
Voorbereiden om qemu-user-static 1.1.2+dfsg-3.1 te vervangen (door 
.../qemu-user-static_1.1.2+dfsg-3.1_amd64.deb) ...
Uitpakken van vervangende qemu-user-static ...
Instellen van qemu-user-static (1.1.2+dfsg-3.1) ...
Processing triggers for man-db ...
root@rosa:/usr/src/bts678029# cp -p /usr/bin/qemu-mips-static oa/usr/bin
root@rosa:/usr/src/bts678029# chroot oa
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentatiefout
root@rosa:/usr/src/bts678029# ls -l oa/core
-rw------- 1 root root 97800192 dec 16 23:40 oa/core
root@rosa:/usr/src/bts678029# ulimit -c
0
root@rosa:/usr/src/bts678029# ulimit -c unlimited
root@rosa:/usr/src/bts678029# chroot oa
Segmentatiefout (geheugendump gemaakt)
root@rosa:/usr/src/bts678029# ls -l oa/core
-rw------- 1 root root 97800192 dec 18 18:04 oa/core
root@rosa:/usr/src/bts678029# gdb /usr/bin/qemu-mips-static oa/core
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/qemu-mips-static...done.

warning: core file may not match specified executable file.
[New LWP 3250]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/bin/qemu-mips-static /bin/bash -i'.
Program terminated with signal 11, Segmentation fault.
#0  0x00000000600d8bd7 in kill ()
(gdb) bt
#0  0x00000000600d8bd7 in kill ()
#1  0x0000000060042a48 in force_sig (target_sig=target_sig@entry=11)
    at /usr/src/qemu/linux-user/signal.c:405
#2  0x00000000600416be in queue_signal (env=env@entry=0x634f3190,
    sig=sig@entry=11, info=info@entry=0x7fff9bc06980)
    at /usr/src/qemu/linux-user/signal.c:443
#3  0x000000006002e9e2 in cpu_loop (env=env@entry=0x634f3190)
    at /usr/src/qemu/linux-user/main.c:2293
#4  0x000000006002f6dc in main (argc=1666129488, argv=<optimized out>,
    envp=<optimized out>) at /usr/src/qemu/linux-user/main.c:3857
(gdb) quit
root@rosa:/usr/src/bts678029# ls oa/*core*
oa/core                                 oa/qemu_bash_20121218-170427_3250.core
oa/qemu_bash_20121216-224051_7558.core
root@rosa:/usr/src/bts678029#
root@rosa:/usr/src/bts678029# gdb /usr/bin/qemu-mips-static 
oa/qemu_bash_20121218-170427_3250.core
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/qemu-mips-static...done.

warning: core file may not match specified executable file.

warning: Selected architecture i386:x86-64 is not compatible with reported 
target architecture i386

warning: Architecture rejected target-supplied description

warning: Couldn't find general-purpose registers in core file.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

warning: Couldn't find general-purpose registers in core file.
#0  <unavailable> in ?? ()
(gdb) quit
root@rosa:/usr/src/bts678029#
root@rosa:/usr/src/bts678029# exit


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to