All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Tokarev <mjt@tls.msk.ru>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: sur5r@sur5r.net, qemu-devel <qemu-devel@nongnu.org>,
	Richard Henderson <rth@twiddle.net>
Subject: Re: [Qemu-devel] qemu-x86_64 on i386 host: SIGSEGV
Date: Sun, 24 Mar 2013 17:24:27 +0400	[thread overview]
Message-ID: <514EFE8B.2040401@msgid.tls.msk.ru> (raw)
In-Reply-To: <CAFEAcA9xNkcCvjDrOuWPKBa1ay-ur14+-34Gc=Q0+jKCy1PwUQ@mail.gmail.com>

24.03.2013 14:59, Peter Maydell wrote:
> On 24 March 2013 10:43, Michael Tokarev <mjt@tls.msk.ru> wrote:
>> $ ./x86_64-linux-user/qemu-x86_64 bash64
>> qemu: uncaught target signal 11 (Segmentation fault) - core dumped
>> Segmentation Fault
> 
> Are 64 bit linux-user guests on 32 bit hosts supposed to work?
> I would expect them to be at best pretty unreliable.

What's the reason we build these binaries in that case?

What about qemu-x86_64 on other 32bit arches (arm)?  Is
there a list of combinations (host/target) which are
supposed to work and which don't, somewhere?

>> $ gdb x86_64-linux-user/qemu-x86_64
>> (gdb) ru bash64
>> Program received signal SIGSEGV, Segmentation fault.
>> disas_insn (s=s@entry=0xffffcf98, pc_start=18446744073699066880)
>>     at target-i386/translate.c:4107
>> 4107        b = ldub_code(s->pc);
>> (gdb) p *s
>> $1 = {override = -1, prefix = 1484501952, aflag = 1, dflag = 1484503884,
>>   pc = 18446744073699066880, is_jmp = 0, cs_base = 0, pe = 1, code32 = 1,
> 
> PC is FFFFFFFFFF600400 so either we've messed it up already or this
> is just "64 bit address space doesn't fit in a 32 bit one".

>> Some binaries works - for example, gzip (it prints "qemu: Unsupported syscall:
>> 202" on the way which is a different issue).
> 
> Yes. That is just the usual "x86 linux-user isn't really supported":
> 202 is TARGET_NR_futex, which works on other target archs but
> won't on x86 until somebody actually fixes support for threaded
> guests in x86 to at least the level it is for other targets.

Maybe we should stop building x86 linux-user completely?

Thanks,

/mjt

  reply	other threads:[~2013-03-24 13:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-24 10:43 [Qemu-devel] qemu-x86_64 on i386 host: SIGSEGV Michael Tokarev
2013-03-24 10:59 ` Peter Maydell
2013-03-24 13:24   ` Michael Tokarev [this message]
2013-03-25 15:03   ` Richard Henderson
2013-03-25 15:36     ` Laurent Desnogues

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=514EFE8B.2040401@msgid.tls.msk.ru \
    --to=mjt@tls.msk.ru \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    --cc=sur5r@sur5r.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.