qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Is mips-user broken on 64bit host?
@ 2012-12-18 16:10 Michael Tokarev
  2012-12-18 19:05 ` [Qemu-devel] (bisected): Is mips-user broken on 64bit host since v1.1? Michael Tokarev
  2012-12-21  0:19 ` [Qemu-devel] Is mips-user broken on 64bit host? Richard Henderson
  0 siblings, 2 replies; 6+ messages in thread
From: Michael Tokarev @ 2012-12-18 16:10 UTC (permalink / raw)
  To: qemu-devel; +Cc: Aurelien Jarno

Since at least 1.1 version of qemu, I can't run any
mips binary using statically linked qemu-mips on x86_64
host.  It immediately fails with SIGSEGV:

# chroot mipsroot /bin/bash
qemu: uncaught target signal 11 (Segmentation fault) - core dumped

mipsroot/bin/bash: ELF 32-bit MSB executable, MIPS, MIPS-II version 1 (SYSV),
 dynamically linked (uses shared libs), for GNU/Linux 2.6.26,
 BuildID[sha1]=0xeb1a3595d733e28f4f081beabb1f135bc5bf7527,
 with unknown capability 0x41000000 = 0xf676e75,
 with unknown capability 0x10000 = 0x70401,
 stripped

(this is current Debian install of mips architecture).

At the same time, 32bit qemu-mips works just fine:


# cp -p /usr/bin/qemu-mips-static-32 mipsroot/usr/bin/
# chroot mipsroot /bin/bash
I have no name!@gandalf:/# ls
bin   dev  home  lib64	proc  run   selinux  tmp  var
boot  etc  lib	 mnt	root  sbin  sys      usr
I have no name!@gandalf:/# uname -a
Linux gandalf 3.2.0-amd64 #3.2.30 SMP Thu Sep 20 18:50:45 MSK 2012 mips GNU/Linux

Current qemu git behaves the same - it also segfaults
when trying to run a 32bit mips binary from x86_64
host qemu-mips binary.

There are numerous bugreports about this issue on Debian
as well.

Is it just Debian, or is something really broken there?
I'd think that running 32bit mips code on x86_64 host
is quite common, no?

(Cc'ing Aurelien for this one)

Thanks,

/mjt

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-12-21  0:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-18 16:10 [Qemu-devel] Is mips-user broken on 64bit host? Michael Tokarev
2012-12-18 19:05 ` [Qemu-devel] (bisected): Is mips-user broken on 64bit host since v1.1? Michael Tokarev
2012-12-18 21:30   ` Stefan Weil
2012-12-18 21:33   ` Alexander Graf
2012-12-19  6:26     ` Michael Tokarev
2012-12-21  0:19 ` [Qemu-devel] Is mips-user broken on 64bit host? Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).