qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: Denis Kirjanov <kirjanov@gmail.com>
Cc: spice-devel@lists.freedesktop.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [Spice-devel] [PATCH] spice: fix simple display on bigendian hosts
Date: Wed, 15 Apr 2015 16:22:21 +0200	[thread overview]
Message-ID: <1429107741.6219.22.camel@nilsson.home.kraxel.org> (raw)
In-Reply-To: <CAHj3AVkt8DUdu5yJz-WMcPqgyjoixjj3YV5MJLCPkuOc_FVcug@mail.gmail.com>

On Mi, 2015-04-15 at 15:55 +0300, Denis Kirjanov wrote:
> On 4/15/15, Gerd Hoffmann <kraxel@redhat.com> wrote:
> > On Di, 2015-04-14 at 17:47 +0300, Denis Kirjanov wrote:
> >> On 4/14/15, Denis Kirjanov <kirjanov@gmail.com> wrote:
> >> > On 4/14/15, Denis Kirjanov <kirjanov@gmail.com> wrote:
> >> >> On 4/14/15, Gerd Hoffmann <kraxel@redhat.com> wrote:
> >> >>> Denis Kirjanov is busy getting spice run on ppc64 and trapped into
> >> >>> this
> >> >>> one.  Spice wire format is little endian, so we have to explicitly
> >> >>> say
> >> >>> we want little endian when letting pixman convert the data for us.
> >> >>>
> >> >>> Reported-by: Denis Kirjanov <kirjanov@gmail.com>
> >> >>> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
> >> >>> ---
> >> >> Yeah, that fixes the issue. Thanks Gerd!
> >> >
> >> > Looks like that the patch fixes the half of the problem: the inverted
> >> > colors appear on client reconnect to vm
> >>
> >> Program received signal SIGSEGV, Segmentation fault.
> >> 0x00007ffff4e10258 in ?? () from
> >> /usr/lib/x86_64-linux-gnu/libpixman-1.so.0
> >> (gdb) bt
> >> #0  0x00007ffff4e10258 in ?? () from
> >> /usr/lib/x86_64-linux-gnu/libpixman-1.so.0
> >> #1  0x00007ffff4e10239 in pixman_image_unref () from
> >> /usr/lib/x86_64-linux-gnu/libpixman-1.so.0
> >> #2  0x00007ffff78e4117 in canvas_get_quic
> >> (canvas=canvas@entry=0x7ceb80, image=image@entry=0xae2720,
> >>     want_original=want_original@entry=0) at
> >> ../spice-common/common/canvas_base.c:390
> >
> > spice client crash?
> > is this spice client running on big endian or little endian machine?
> 
> it's running on x86_64 as shown in the stack trace.

Hmm.  spice client should not crash no matter what.

But beside that it is entirely possible that there is a byteswap missing
somewhere in either qemu or spice-server where bigendian is sent instead
of little endian, which in turn triggers the bug in the client.

IIRC spice protocol support was added to wireshark a while back, so it
should be possible to run tests and compare traces to le + be hosts to
see whenever there is something wrong in the wire format.  Which should
help tracing down the bug in the source code.

HTH,
  Gerd

      reply	other threads:[~2015-04-15 14:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-14  7:14 [Qemu-devel] [PATCH] spice: fix simple display on bigendian hosts Gerd Hoffmann
2015-04-14 10:17 ` [Qemu-devel] [Spice-devel] " Christophe Fergeau
2015-04-14 11:46 ` Denis Kirjanov
2015-04-14 14:27   ` Denis Kirjanov
2015-04-14 14:47     ` Denis Kirjanov
2015-04-15 12:05       ` Gerd Hoffmann
2015-04-15 12:55         ` Denis Kirjanov
2015-04-15 14:22           ` Gerd Hoffmann [this message]

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=1429107741.6219.22.camel@nilsson.home.kraxel.org \
    --to=kraxel@redhat.com \
    --cc=kirjanov@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=spice-devel@lists.freedesktop.org \
    /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 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).