Skip to contentSkip to conversation

Recent regression: segfault on startup with -snapshot

Qemu-devel Andreas Gustafsson 3 participants 3 messages Feb 27, 2015 – May 11, 2015

lore
Share & tools
lore

Andreas Gustafsson

author Reviewed-by Michael Roth Tested-by Michael Roth
#0 lore raw

Public bug reported:

As of git revision 041ccc922ee474693a2869d4e3b59e920c739bc0, qemu segfaults on startup when I try to boot a hard disk image with the -snapshot option.

To reproduce:

wget http://wiki.qemu.org/download/linux-0.2.img.bz2
bunzip2 linux-0.2.img.bz2
qemu-system-i386 -hda linux-0.2.img -snapshot

When I run this, qemu-system-i386 crashes with a segmentation fault. This is on a Debian 7 amd64 host.

git bisect implicates the following commit:

commit a464982499b2f637f6699e3d03e0a9d2e0b5288b

Author: Paolo Bonzini <[email protected]>
Date:   Wed Feb 11 17:15:18 2015 +0100

rcu: run RCU callbacks under the BQL

This needs to go away sooner or later, but one complication is the complex VFIO data structures that are modified in instance_finalize. Take a shortcut for now.

** Affects: qemu
Importance: Undecided
Status: New

Signature · 42 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1426472

Title:
  Recent regression: segfault on startup with -snapshot

Status in QEMU:
  New

Bug description:
  As of git revision 041ccc922ee474693a2869d4e3b59e920c739bc0, qemu
  segfaults on startup when I try to boot a hard disk image with the
  -snapshot option.

  To reproduce:

    wget http://wiki.qemu.org/download/linux-0.2.img.bz2
    bunzip2 linux-0.2.img.bz2 
    qemu-system-i386 -hda linux-0.2.img -snapshot

  When I run this, qemu-system-i386 crashes with a segmentation fault.
  This is on a Debian 7 amd64 host.

  git bisect implicates the following commit:

  commit a464982499b2f637f6699e3d03e0a9d2e0b5288b
  Author: Paolo Bonzini <[email protected]>
  Date:   Wed Feb 11 17:15:18 2015 +0100

      rcu: run RCU callbacks under the BQL

      This needs to go away sooner or later, but one complication is the
      complex VFIO data structures that are modified in instance_finalize.
      Take a shortcut for now.

      Reviewed-by: Michael Roth <[email protected]>
      Tested-by: Michael Roth <[email protected]>
      Signed-off-by: Paolo Bonzini <[email protected]>

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1426472/+subscriptions
#1 lore raw

** Changed in: qemu
Status: New => In Progress

** Changed in: qemu
Importance: Undecided => Critical

** Changed in: qemu
Assignee: (unassigned) => Paolo Bonzini (bonzini)

Signature · 42 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1426472

Title:
  Recent regression: segfault on startup with -snapshot

Status in QEMU:
  In Progress

Bug description:
  As of git revision 041ccc922ee474693a2869d4e3b59e920c739bc0, qemu
  segfaults on startup when I try to boot a hard disk image with the
  -snapshot option.

  To reproduce:

    wget http://wiki.qemu.org/download/linux-0.2.img.bz2
    bunzip2 linux-0.2.img.bz2 
    qemu-system-i386 -hda linux-0.2.img -snapshot

  When I run this, qemu-system-i386 crashes with a segmentation fault.
  This is on a Debian 7 amd64 host.

  git bisect implicates the following commit:

  commit a464982499b2f637f6699e3d03e0a9d2e0b5288b
  Author: Paolo Bonzini <[email protected]>
  Date:   Wed Feb 11 17:15:18 2015 +0100

      rcu: run RCU callbacks under the BQL

      This needs to go away sooner or later, but one complication is the
      complex VFIO data structures that are modified in instance_finalize.
      Take a shortcut for now.

      Reviewed-by: Michael Roth <[email protected]>
      Tested-by: Michael Roth <[email protected]>
      Signed-off-by: Paolo Bonzini <[email protected]>

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1426472/+subscriptions
#2 lore raw
In reply to Andreas Gustafsson

I believe this was resolved in:

commit 6b49809c597331803ea941eadda813e5bb4e8fe2

Author: Paolo Bonzini <[email protected]>
Date:   Fri Feb 27 19:58:23 2015 +0100

cpus: fix deadlock and segfault in qemu_mutex_lock_iothread

The problem cannot be reproduced in qemu.git/master (fc85cf4a8199a657fdfd5fb902f1835973406454).

** Changed in: qemu
Status: In Progress => Fix Released

Signature · 42 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1426472

Title:
  Recent regression: segfault on startup with -snapshot

Status in QEMU:
  Fix Released

Bug description:
  As of git revision 041ccc922ee474693a2869d4e3b59e920c739bc0, qemu
  segfaults on startup when I try to boot a hard disk image with the
  -snapshot option.

  To reproduce:

    wget http://wiki.qemu.org/download/linux-0.2.img.bz2
    bunzip2 linux-0.2.img.bz2 
    qemu-system-i386 -hda linux-0.2.img -snapshot

  When I run this, qemu-system-i386 crashes with a segmentation fault.
  This is on a Debian 7 amd64 host.

  git bisect implicates the following commit:

  commit a464982499b2f637f6699e3d03e0a9d2e0b5288b
  Author: Paolo Bonzini <[email protected]>
  Date:   Wed Feb 11 17:15:18 2015 +0100

      rcu: run RCU callbacks under the BQL

      This needs to go away sooner or later, but one complication is the
      complex VFIO data structures that are modified in instance_finalize.
      Take a shortcut for now.

      Reviewed-by: Michael Roth <[email protected]>
      Tested-by: Michael Roth <[email protected]>
      Signed-off-by: Paolo Bonzini <[email protected]>

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1426472/+subscriptions