qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-discuss] qemu-i386 maple apt-get


From: Franz-Josef Haider
Subject: Re: [Qemu-discuss] qemu-i386 maple apt-get
Date: Mon, 23 Nov 2015 18:50:16 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

On 11/18/2015 01:27 PM, Franz-Josef Haider wrote:
Hi!

Commit 9f08c8ec73878122ad4b061ed334f0437afaaa32 breaks qemu i386 user
mode emulation for me (on arm):

[1|address@hidden|~]/home/user/MyDocs/maple13_i386/bin/start_cmaple.sh
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
/home/user/MyDocs/maple13_i386/bin/start_cmaple.sh: line 1: 16024
Segmentation fault      LD_LIBRARY_PATH=/home/user/MyDocs/root.i686/lib
/home/user/MyDocs/maple13_i386/bin/maple
// root.i686 is an arch linux chroot

In the likely case you don't own a maple license, you can reproduce this
with a debian sarge x86 chroot (i have not tested other debian versions,
but there might be similar results).

// sarge created on desktop with "debootstrap --no-check-gpg --arch=i386
sarge /home/krnlyng/sarge http://archive.debian.org/debian/";
// on device:
/home/user/MyDocs # cp /usr/bin/qemu-i386 sarge/usr/bin/
/home/user/MyDocs # chroot sarge
address@hidden:/# apt-get update
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault
address@hidden:/# qemu: uncaught target signal 11 (Segmentation fault)
- core dumped
// core dump:
http://www.mediafire.com/download/zac5p92o7g2zxo6/qemu_apt-get_20151118-120024_16081.core


// additional information:
/home/user/MyDocs # uname -a
Linux Nokia-N900 2.6.28-omap1 #1 PREEMPT Fri Aug 6 11:50:00 EEST 2010
armv7l unknown

// qemu-i386 is built from git master branch (./configure --static
--prefix=/usr --disable-system)
address@hidden:/# qemu-i386 --version
qemu-i386 version 2.4.90, Copyright (c) 2003-2008 Fabrice Bellard

with the referenced commit reverted apt-get and maple work fine.

Please let me know if you need additional information.

best regards,
Frajo Haider


I have built qemu statically copied it into the x86 directory and set up binfmt to launch qemu-i386 if a x86 binary is to be executed. Then i chrooted into the x86 directory and executed gdb from there.

apt-get outside of the chroot does not really make sense.

But this is a backtrace from directly launching cmaple.
# qemu configure line: ./configure --prefix=/usr --static --target-list=i386-linux-user

[1|address@hidden|~/MyDocs/maple13_i386/bin.IBM_INTEL_LINUX]LD_LIBRARY_PATH=/home/user/MyDocs/root.i686/lib:/home/user/MyDocs/maple13_i386/bin.IBM_INTEL_LINUX gdb /usr/bin/qemu-i386
GNU gdb (GDB) 7.3.1-debian
Copyright (C) 2011 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 "arm-linux-gnueabi".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/qemu-i386...(no debugging symbols found)...done.
(gdb) run cmaple
Starting program: /usr/bin/qemu-i386 cmaple

Program received signal SIGSEGV, Segmentation fault.
0x600104c0 in ?? ()
(gdb) bt
#0 0x600104c0 in ?? ()
#1 0x6029b37c in ?? ()
#2 0x6029b37c in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)

And this with debugging symbols enabled:
# qemu configure line: ./configure --prefix=/usr --enable-debug --static --target-list=i386-linux-user

[1|address@hidden|~/MyDocs/maple13_i386/bin.IBM_INTEL_LINUX]LD_LIBRARY_PATH=/home/user/MyDocs/root.i686/lib:/home/user/MyDocs/maple13_i386/bin.IBM_INTEL_LINUX gdb /usr/bin/qemu-i386
GNU gdb (GDB) 7.3.1-debian
Copyright (C) 2011 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 "arm-linux-gnueabi".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/qemu-i386...done.
(gdb) run cmaple
Starting program: /usr/bin/qemu-i386 cmaple
[Thread debugging using libthread_db enabled]
[New Thread 0x407ff2d0 (LWP 15439)]
Unsupported setsockopt level=1 optname=13
|\^/| Maple 13 (IBM INTEL LINUX)
._|\| |/|_. Copyright (c) Maplesoft, a division of Waterloo Maple Inc. 2009
\ MAPLE / All rights reserved. Maple is a trademark of
<____ ____> Waterloo Maple Inc.
| Type ? for help.
>
(gdb)

And this is with the referenced commit reverted and without debugging symbols:

# qemu configure line: ./configure --prefix=/usr --static --target-list=i386-linux-user

[1|address@hidden|~/MyDocs/maple13_i386/bin.IBM_INTEL_LINUX] LD_LIBRARY_PATH=/home/user/MyDocs/root.i686/lib:/home/user/MyDocs/maple13_i386/bin.IBM_INTEL_LINUX /usr/bin/qemu-i386 cmaple
Unsupported setsockopt level=1 optname=13
|\^/| Maple 13 (IBM INTEL LINUX)
._|\| |/|_. Copyright (c) Maplesoft, a division of Waterloo Maple Inc. 2009
\ MAPLE / All rights reserved. Maple is a trademark of
<____ ____> Waterloo Maple Inc.
| Type ? for help.
>

So something is really weird here...

best regars,
Frajo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]