Skip to contentSkip to conversation

CentOS guest crashing due to assertion failure in qemu-char.c

Qemu-devel Wesley Holevinski 3 participants 5 messages Jan 13, 2014 – Jan 12, 2017

lore
Share & tools
lore
#0 lore raw

Public bug reported:

Here is the log in /var/log/libvirt/qemu/centos_heavy.log

qemu-kvm: /builddir/build/BUILD/qemu-kvm-0.12.1.2/qemu-char.c:630: io_watch_poll_finalize: Assertion `iwp->src == ((void *)0)' failed.

2014-01-13 16:50:31.576+0000: shutting down

The code it's failing the assertion on has an interesting comment:

    static void io_watch_poll_finalize(GSource *source) {
    /* Due to a glib bug, removing the last reference to a source
    * inside a finalize callback causes recursive locking (and a
    * deadlock). This is not a problem inside other callbacks,
    * including dispatch callbacks, so we call io_remove_watch_poll
    * to remove this source. A t this point, iwp->src must
    * be NULL, or we would leak it.
    *
    * This would be solved much more elegantly by child sources,
    * but we support older glib versions that do not have them. */
    IOWatchPoll *iwp = io_watch_poll_from_source(source); assert(iwp->src == NULL);
    }

------
CPU Info:

http://pastebin.com/U7MrzFxK

--------

Relevant RPM versions:

qemu-kvm-0.12.1.2-2.415.el6_5.3.x86_64
libvirt-0.10.2-29.el6_5.2.x86_64

--------

Domain config:

http://pastebin.com/Nf2VsER8

(Note the use of the vmchannels; I believe this is playing a part in this crash)

---------

uname -a:

Linux blizzard 2.6.32-431.3.1.el6.x86_64 #1 SMP Fri Jan 3 21:39:27 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

---------

CLI to start guest (included in attached dump):

http://pastebin.com/W01Xzyb0

---------

** Affects: qemu
Importance: Undecided
Status: New

** Attachment added: "kvm_assert.tgz"
https://bugs.launchpad.net/bugs/1268671/+attachment/3947851/+files/kvm_assert.tgz

** Description changed:

Here is the log in /var/log/libvirt/qemu/centos_heavy.log

qemu-kvm: /builddir/build/BUILD/qemu-kvm-0.12.1.2/qemu-char.c:630: io_watch_poll_finalize: Assertion `iwp->src == ((void *)0)' failed.

  2014-01-13 16:50:31.576+0000: shutting down

The code it's failing the assertion on has an interesting comment:

-     static void io_watch_poll_finalize(GSource *source)
-     {
-     /* Due to a glib bug, removing the last reference to a source
-     * inside a finalize callback causes recursive locking (and a
-     * deadlock). This is not a problem inside other callbacks,
-     * including dispatch callbacks, so we call io_remove_watch_poll
-     * to remove this source. A t this point, iwp->src must
-     * be NULL, or we would leak it.
-     *
-     * This would be solved much more elegantly by child sources,
-     * but we support older glib versions that do not have them.
-     */
-     IOWatchPoll *iwp = io_watch_poll_from_source(source);
-     assert(iwp->src == NULL);
-     }

+     static void io_watch_poll_finalize(GSource *source)
+     {
+     /* Due to a glib bug, removing the last reference to a source
+     * inside a finalize callback causes recursive locking (and a
+     * deadlock). This is not a problem inside other callbacks,
+     * including dispatch callbacks, so we call io_remove_watch_poll
+     * to remove this source. A t this point, iwp->src must
+     * be NULL, or we would leak it.
+     *
+     * This would be solved much more elegantly by child sources,
+     * but we support older glib versions that do not have them.
+     */
+     IOWatchPoll *iwp = io_watch_poll_from_source(source);
+     assert(iwp->src == NULL);
+     }

------
CPU Info:

http://pastebin.com/U7MrzFxK

--------

Relevant RPM versions:

qemu-kvm-0.12.1.2-2.415.el6_5.3.x86_64
libvirt-0.10.2-29.el6_5.2.x86_64

--------

Domain config:

http://pastebin.com/Nf2VsER8

(Note the use of the vmchannels; I believe this is playing a part in this crash)
+
+
+ ---------
+
+ uname -a:
+
+ Linux blizzard 2.6.32-431.3.1.el6.x86_64 #1 SMP Fri Jan 3 21:39:27 UTC
+ 2014 x86_64 x86_64 x86_64 GNU/Linux
+
+ ---------
+
+ CLI to start guest (included in attached dump):
+
+ http://pastebin.com/W01Xzyb0
+
+ ---------

Signature · 73 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/1268671

Title:
  CentOS guest crashing due to assertion failure in qemu-char.c

Status in QEMU:
  New

Bug description:
  Here is the log in /var/log/libvirt/qemu/centos_heavy.log

  qemu-kvm: /builddir/build/BUILD/qemu-kvm-0.12.1.2/qemu-char.c:630: io_watch_poll_finalize: Assertion `iwp->src == ((void *)0)' failed.
  2014-01-13 16:50:31.576+0000: shutting down

  The code it's failing the assertion on has an interesting comment:

      static void io_watch_poll_finalize(GSource *source)
      {
      /* Due to a glib bug, removing the last reference to a source
      * inside a finalize callback causes recursive locking (and a
      * deadlock). This is not a problem inside other callbacks,
      * including dispatch callbacks, so we call io_remove_watch_poll
      * to remove this source. A t this point, iwp->src must
      * be NULL, or we would leak it.
      *
      * This would be solved much more elegantly by child sources,
      * but we support older glib versions that do not have them.
      */
      IOWatchPoll *iwp = io_watch_poll_from_source(source);
      assert(iwp->src == NULL);
      }

  ------
  CPU Info:

  http://pastebin.com/U7MrzFxK

  --------

  Relevant RPM versions:

  qemu-kvm-0.12.1.2-2.415.el6_5.3.x86_64
  libvirt-0.10.2-29.el6_5.2.x86_64

  --------

  Domain config:

  http://pastebin.com/Nf2VsER8

  (Note the use of the vmchannels; I believe this is playing a part in
  this crash)

  
  ---------

  uname -a:

  Linux blizzard 2.6.32-431.3.1.el6.x86_64 #1 SMP Fri Jan 3 21:39:27 UTC
  2014 x86_64 x86_64 x86_64 GNU/Linux

  ---------

  CLI to start guest (included in attached dump):

  http://pastebin.com/W01Xzyb0

  ---------

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

** Description changed:

Here is the log in /var/log/libvirt/qemu/centos_heavy.log

qemu-kvm: /builddir/build/BUILD/qemu-kvm-0.12.1.2/qemu-char.c:630: io_watch_poll_finalize: Assertion `iwp->src == ((void *)0)' failed.

  2014-01-13 16:50:31.576+0000: shutting down

The code it's failing the assertion on has an interesting comment:

    static void io_watch_poll_finalize(GSource *source) {
    /* Due to a glib bug, removing the last reference to a source
    * inside a finalize callback causes recursive locking (and a
    * deadlock). This is not a problem inside other callbacks,
    * including dispatch callbacks, so we call io_remove_watch_poll
    * to remove this source. A t this point, iwp->src must
    * be NULL, or we would leak it.
    *
    * This would be solved much more elegantly by child sources,
    * but we support older glib versions that do not have them. */
    IOWatchPoll *iwp = io_watch_poll_from_source(source); assert(iwp->src == NULL);
    }

------
CPU Info:

http://pastebin.com/U7MrzFxK

--------

Relevant RPM versions:

qemu-kvm-0.12.1.2-2.415.el6_5.3.x86_64
libvirt-0.10.2-29.el6_5.2.x86_64

--------

Domain config:

http://pastebin.com/Nf2VsER8

(Note the use of the vmchannels; I believe this is playing a part in this crash)

-
---------

uname -a:

Linux blizzard 2.6.32-431.3.1.el6.x86_64 #1 SMP Fri Jan 3 21:39:27 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

---------

CLI to start guest (included in attached dump):

http://pastebin.com/W01Xzyb0

---------
+
+ thread apply all bt:
+
+ http://pastebin.com/FTpUDU7A

Signature · 76 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/1268671

Title:
  CentOS guest crashing due to assertion failure in qemu-char.c

Status in QEMU:
  New

Bug description:
  Here is the log in /var/log/libvirt/qemu/centos_heavy.log

  qemu-kvm: /builddir/build/BUILD/qemu-kvm-0.12.1.2/qemu-char.c:630: io_watch_poll_finalize: Assertion `iwp->src == ((void *)0)' failed.
  2014-01-13 16:50:31.576+0000: shutting down

  The code it's failing the assertion on has an interesting comment:

      static void io_watch_poll_finalize(GSource *source)
      {
      /* Due to a glib bug, removing the last reference to a source
      * inside a finalize callback causes recursive locking (and a
      * deadlock). This is not a problem inside other callbacks,
      * including dispatch callbacks, so we call io_remove_watch_poll
      * to remove this source. A t this point, iwp->src must
      * be NULL, or we would leak it.
      *
      * This would be solved much more elegantly by child sources,
      * but we support older glib versions that do not have them.
      */
      IOWatchPoll *iwp = io_watch_poll_from_source(source);
      assert(iwp->src == NULL);
      }

  ------
  CPU Info:

  http://pastebin.com/U7MrzFxK

  --------

  Relevant RPM versions:

  qemu-kvm-0.12.1.2-2.415.el6_5.3.x86_64
  libvirt-0.10.2-29.el6_5.2.x86_64

  --------

  Domain config:

  http://pastebin.com/Nf2VsER8

  (Note the use of the vmchannels; I believe this is playing a part in
  this crash)

  ---------

  uname -a:

  Linux blizzard 2.6.32-431.3.1.el6.x86_64 #1 SMP Fri Jan 3 21:39:27 UTC
  2014 x86_64 x86_64 x86_64 GNU/Linux

  ---------

  CLI to start guest (included in attached dump):

  http://pastebin.com/W01Xzyb0

  ---------

  thread apply all bt:

  http://pastebin.com/FTpUDU7A

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

QEMU 0.12 is completely outdated nowadays ... can you still reproduce this problem with the latest version of QEMU?

** Changed in: qemu
Status: New => Incomplete

Signature · 76 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/1268671

Title:
  CentOS guest crashing due to assertion failure in qemu-char.c

Status in QEMU:
  Incomplete

Bug description:
  Here is the log in /var/log/libvirt/qemu/centos_heavy.log

  qemu-kvm: /builddir/build/BUILD/qemu-kvm-0.12.1.2/qemu-char.c:630: io_watch_poll_finalize: Assertion `iwp->src == ((void *)0)' failed.
  2014-01-13 16:50:31.576+0000: shutting down

  The code it's failing the assertion on has an interesting comment:

      static void io_watch_poll_finalize(GSource *source)
      {
      /* Due to a glib bug, removing the last reference to a source
      * inside a finalize callback causes recursive locking (and a
      * deadlock). This is not a problem inside other callbacks,
      * including dispatch callbacks, so we call io_remove_watch_poll
      * to remove this source. A t this point, iwp->src must
      * be NULL, or we would leak it.
      *
      * This would be solved much more elegantly by child sources,
      * but we support older glib versions that do not have them.
      */
      IOWatchPoll *iwp = io_watch_poll_from_source(source);
      assert(iwp->src == NULL);
      }

  ------
  CPU Info:

  http://pastebin.com/U7MrzFxK

  --------

  Relevant RPM versions:

  qemu-kvm-0.12.1.2-2.415.el6_5.3.x86_64
  libvirt-0.10.2-29.el6_5.2.x86_64

  --------

  Domain config:

  http://pastebin.com/Nf2VsER8

  (Note the use of the vmchannels; I believe this is playing a part in
  this crash)

  ---------

  uname -a:

  Linux blizzard 2.6.32-431.3.1.el6.x86_64 #1 SMP Fri Jan 3 21:39:27 UTC
  2014 x86_64 x86_64 x86_64 GNU/Linux

  ---------

  CLI to start guest (included in attached dump):

  http://pastebin.com/W01Xzyb0

  ---------

  thread apply all bt:

  http://pastebin.com/FTpUDU7A

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1268671/+subscriptions
#3 lore raw
In reply to Wesley Holevinski

It's a glib bug. It's fixed in RHEL 6.9 beta and in due time the fix will get to CentOS.

** Changed in: qemu
Status: Incomplete => Invalid

** Bug watch added: Red Hat Bugzilla #1212722
https://bugzilla.redhat.com/show_bug.cgi?id=1212722

Signature · 76 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/1268671

Title:
  CentOS guest crashing due to assertion failure in qemu-char.c

Status in QEMU:
  Invalid

Bug description:
  Here is the log in /var/log/libvirt/qemu/centos_heavy.log

  qemu-kvm: /builddir/build/BUILD/qemu-kvm-0.12.1.2/qemu-char.c:630: io_watch_poll_finalize: Assertion `iwp->src == ((void *)0)' failed.
  2014-01-13 16:50:31.576+0000: shutting down

  The code it's failing the assertion on has an interesting comment:

      static void io_watch_poll_finalize(GSource *source)
      {
      /* Due to a glib bug, removing the last reference to a source
      * inside a finalize callback causes recursive locking (and a
      * deadlock). This is not a problem inside other callbacks,
      * including dispatch callbacks, so we call io_remove_watch_poll
      * to remove this source. A t this point, iwp->src must
      * be NULL, or we would leak it.
      *
      * This would be solved much more elegantly by child sources,
      * but we support older glib versions that do not have them.
      */
      IOWatchPoll *iwp = io_watch_poll_from_source(source);
      assert(iwp->src == NULL);
      }

  ------
  CPU Info:

  http://pastebin.com/U7MrzFxK

  --------

  Relevant RPM versions:

  qemu-kvm-0.12.1.2-2.415.el6_5.3.x86_64
  libvirt-0.10.2-29.el6_5.2.x86_64

  --------

  Domain config:

  http://pastebin.com/Nf2VsER8

  (Note the use of the vmchannels; I believe this is playing a part in
  this crash)

  ---------

  uname -a:

  Linux blizzard 2.6.32-431.3.1.el6.x86_64 #1 SMP Fri Jan 3 21:39:27 UTC
  2014 x86_64 x86_64 x86_64 GNU/Linux

  ---------

  CLI to start guest (included in attached dump):

  http://pastebin.com/W01Xzyb0

  ---------

  thread apply all bt:

  http://pastebin.com/FTpUDU7A

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1268671/+subscriptions
#4 lore raw
In reply to Wesley Holevinski

https://bugzilla.redhat.com/show_bug.cgi?id=1212722

Signature · 76 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/1268671

Title:
  CentOS guest crashing due to assertion failure in qemu-char.c

Status in QEMU:
  Invalid

Bug description:
  Here is the log in /var/log/libvirt/qemu/centos_heavy.log

  qemu-kvm: /builddir/build/BUILD/qemu-kvm-0.12.1.2/qemu-char.c:630: io_watch_poll_finalize: Assertion `iwp->src == ((void *)0)' failed.
  2014-01-13 16:50:31.576+0000: shutting down

  The code it's failing the assertion on has an interesting comment:

      static void io_watch_poll_finalize(GSource *source)
      {
      /* Due to a glib bug, removing the last reference to a source
      * inside a finalize callback causes recursive locking (and a
      * deadlock). This is not a problem inside other callbacks,
      * including dispatch callbacks, so we call io_remove_watch_poll
      * to remove this source. A t this point, iwp->src must
      * be NULL, or we would leak it.
      *
      * This would be solved much more elegantly by child sources,
      * but we support older glib versions that do not have them.
      */
      IOWatchPoll *iwp = io_watch_poll_from_source(source);
      assert(iwp->src == NULL);
      }

  ------
  CPU Info:

  http://pastebin.com/U7MrzFxK

  --------

  Relevant RPM versions:

  qemu-kvm-0.12.1.2-2.415.el6_5.3.x86_64
  libvirt-0.10.2-29.el6_5.2.x86_64

  --------

  Domain config:

  http://pastebin.com/Nf2VsER8

  (Note the use of the vmchannels; I believe this is playing a part in
  this crash)

  ---------

  uname -a:

  Linux blizzard 2.6.32-431.3.1.el6.x86_64 #1 SMP Fri Jan 3 21:39:27 UTC
  2014 x86_64 x86_64 x86_64 GNU/Linux

  ---------

  CLI to start guest (included in attached dump):

  http://pastebin.com/W01Xzyb0

  ---------

  thread apply all bt:

  http://pastebin.com/FTpUDU7A

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