qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Alon Levy <alevy@redhat.com>
To: Lee Essen <lee.essen@nowonline.co.uk>
Cc: qemu-devel@nongnu.org, kraxel@redhat.com
Subject: Re: [Qemu-devel] Spice bug with qemu_name
Date: Fri, 23 Mar 2012 12:18:20 +0200	[thread overview]
Message-ID: <20120323101820.GE23394@garlic> (raw)
In-Reply-To: <AC0B23F3-5CC8-4F28-A975-0233B602E0A5@nowonline.co.uk>

On Fri, Mar 23, 2012 at 08:10:36AM +0000, Lee Essen wrote:
> Hi,
> 
> I think I've found a bug with the way that spice uses qemu_name. 
> 
> qemu_name is a char *, that's only set to if "-name" is given (and then the arg is strdup'd), otherwise it's not set properly.
> 
> In ui/spice_core.c spice_server_set_name() is called with qemu_name, which if not set causes a core dump.
> 
> -----------------  lwp# 1 / thread# 1  --------------------

What's lwp?

>  fffffd7fff168090 strlen () + 30
>  fffffd7ffa6b5d7e spice_server_set_name () + 2b
>  000000000068fab1 qemu_spice_init () + 753
>  000000000062a58f main () + 2a31
>  0000000000519c5c _start () + 6c
> -----------------  lwp# 2 / thread# 2  --------------------
>  fffffd7fff1f9b2a __sigtimedwait () + a
>  fffffd7fff1e626d sigwait () + d
>  fffffd7fff1d1b31 __posix_sigwait () + 31
>  000000000057572c sigwait_compat () + 68
>  fffffd7fff1f39a3 _thrp_setup () + 83
>  fffffd7fff1f3ca0 _lwp_start ()
> 
> There's a similar situation with qemu_uuid, however because it's not a pointer I'm assuming you end up with all zero's, which is probably ok behaviour.
> 
> I haven't provided a patch since I don't really know which way you want to fix this ... either provide a sensible default if it's not set, or default to NULL and check it in the spice code.
> 
> Regards,
> 
> Lee.
> 
> 

  reply	other threads:[~2012-03-23 10:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-23  8:10 [Qemu-devel] Spice bug with qemu_name Lee Essen
2012-03-23 10:18 ` Alon Levy [this message]
2012-03-23 10:33   ` Lee Essen
2012-03-23 12:14 ` Marc-André Lureau

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=20120323101820.GE23394@garlic \
    --to=alevy@redhat.com \
    --cc=kraxel@redhat.com \
    --cc=lee.essen@nowonline.co.uk \
    --cc=qemu-devel@nongnu.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).