All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] Qemu user mode failure
@ 2016-01-29 19:18 Pavel Shamis
  2016-02-09 16:06 ` Peter Maydell
  0 siblings, 1 reply; 2+ messages in thread
From: Pavel Shamis @ 2016-01-29 19:18 UTC (permalink / raw)
  To: qemu-devel

Dear QEMU Developers,

I'm trying to build and run UCX project
(https://github.com/openucx/ucx) under qemu user mode.
I have no problem to build the project, but whenever I'm trying to
run/use binaries from the project
I get the following error:

./bin/ucx_info
qemu-aarch64-static: qemu-2.5.0/translate-all.c:1888: page_set_flags:
Assertion `start < end' failed.
qemu: uncaught target signal 6 (Aborted) - core dumped
Aborted (core dumped)

Version:
qemu-aarch64-static
qemu-aarch64 version 2.5.0, Copyright (c) 2003-2008 Fabrice Bellard

Please let me know if you have any idea how to fix this issue.

Best,
Pasha

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

* Re: [Qemu-devel] Qemu user mode failure
  2016-01-29 19:18 [Qemu-devel] Qemu user mode failure Pavel Shamis
@ 2016-02-09 16:06 ` Peter Maydell
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Maydell @ 2016-02-09 16:06 UTC (permalink / raw)
  To: Pavel Shamis; +Cc: QEMU Developers

On 29 January 2016 at 19:18, Pavel Shamis <pasharesearch@gmail.com> wrote:
> Dear QEMU Developers,
>
> I'm trying to build and run UCX project
> (https://github.com/openucx/ucx) under qemu user mode.
> I have no problem to build the project, but whenever I'm trying to
> run/use binaries from the project
> I get the following error:
>
> ./bin/ucx_info
> qemu-aarch64-static: qemu-2.5.0/translate-all.c:1888: page_set_flags:
> Assertion `start < end' failed.
> qemu: uncaught target signal 6 (Aborted) - core dumped
> Aborted (core dumped)

This turns out to be a bug in QEMU where we were not correctly
handling an attempt by the guest to do shmdt(0). This isn't a
valid thing to do, but we were not handling it gracefully. I've just
sent a patch to the list which corrects our behaviour so we now
fail the syscall EINVAL rather than asserting. With this the
ucx_info program prints out its help message when run.
(http://patchwork.ozlabs.org/patch/580923/)

You might want to investigate why you're trying to shmdt(0) --
maybe there's some code that's not handling an error properly ?
Looking at QEMU's strace output this seems to happen shortly after
a failed shmat() syscall.

thanks
-- PMM

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

end of thread, other threads:[~2016-02-09 16:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-29 19:18 [Qemu-devel] Qemu user mode failure Pavel Shamis
2016-02-09 16:06 ` Peter Maydell

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.