All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Richard W.M. Jones" <rjones@redhat.com>
To: Kashyap Chamarthy <kchamart@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] QEMU segfault: Booting an overlay with backing_file over NBD: nbd.c:nbd_receive_request():L756: read failed
Date: Thu, 29 Jan 2015 16:47:23 +0000	[thread overview]
Message-ID: <20150129164723.GA3860@redhat.com> (raw)
In-Reply-To: <20150129162509.GA32706@tesla.redhat.com>

On Thu, Jan 29, 2015 at 05:25:09PM +0100, Kashyap Chamarthy wrote:
> A simple reproducer below.
> 
> Export a disk image over NBD (I realize port 10809 is default, thought
> I'd explicitly mention anyhow):
> 
>   $ qemu-nbd --f qcow2 -p10809 \
>         /var/lib/libvirt/images/cirros-0.3.3-x86_64-disk.img -t
> 
> 
> Create an overlay with backing file exported via NBD:
> 
>   $ qemu-img create -f qcow2 -F \
>         nbd -o backing_file=nbd://localhost overlay1.qcow2
>     Formatting 'overlay1.qcow2', fmt=qcow2 size=41126400 backing_file='nbd://localhost' backing_fmt='nbd' encryption=off cluster_size=65536 lazy_refcounts=off
> 
> 
> Let's attempt to boot the overlay with a minimal QEMU:
> 
>   $ qemu-system-x86_64               \
>      -nographic                      \
>      -nodefconfig                    \
>      -nodefaults                     \
>      -m 2048                         \
>      -device virtio-scsi-pci,id=scsi \
>      -device virtio-serial-pci       \
>      -serial stdio                   \
>      -drive file=./overlay1.qcow2,format=qcow2,if=virtio,cache=writeback
>   Segmentation fault (core dumped)
> 
> 
> On the shell where `qemu-nbd` is running, I notice this
> 
>   nbd.c:nbd_receive_request():L756: read failed

This is a "normal error" -- it just means the client dropped the
connection.

You really need to get the stack trace from that core dump to
debug this further.

Rich.

> Haven't investigated further with GDB, thought I'd bring it up here
> first.
> 
> 
> Versions
> --------
> 
>   $ rpm -q qemu; uname -r
>   qemu-2.1.2-7.fc21.x86_64
>   3.17.8-300.fc21.x86_64
> 
> -- 
> /kashyap

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW

  reply	other threads:[~2015-01-29 16:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-29 16:25 [Qemu-devel] QEMU segfault: Booting an overlay with backing_file over NBD: nbd.c:nbd_receive_request():L756: read failed Kashyap Chamarthy
2015-01-29 16:47 ` Richard W.M. Jones [this message]
2015-01-29 17:22   ` Kashyap Chamarthy
2015-01-29 23:33     ` Kashyap Chamarthy
2015-01-30 17:15 ` Kevin Wolf
2015-01-30 18:41   ` Kashyap Chamarthy
2015-01-30 19:32     ` Max Reitz
2015-01-30 22:13       ` Kashyap Chamarthy
2015-02-02  8:14       ` Stefan Hajnoczi

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=20150129164723.GA3860@redhat.com \
    --to=rjones@redhat.com \
    --cc=kchamart@redhat.com \
    --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 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.