qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] QEMU segfault: Booting an overlay with backing_file over NBD: nbd.c:nbd_receive_request():L756: read failed
@ 2015-01-29 16:25 Kashyap Chamarthy
  2015-01-29 16:47 ` Richard W.M. Jones
  2015-01-30 17:15 ` Kevin Wolf
  0 siblings, 2 replies; 9+ messages in thread
From: Kashyap Chamarthy @ 2015-01-29 16:25 UTC (permalink / raw)
  To: qemu-devel

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


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

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

end of thread, other threads:[~2015-02-02  8:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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).