qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [Bug 1268671] [NEW] CentOS guest crashing due to assertion failure in qemu-char.c
@ 2014-01-13 17:46 Wesley Holevinski
  2014-01-13 18:06 ` [Qemu-devel] [Bug 1268671] " Wesley Holevinski
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Wesley Holevinski @ 2014-01-13 17:46 UTC (permalink / raw)
  To: qemu-devel

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
+ 
+ ---------

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

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

end of thread, other threads:[~2017-01-12  9:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-13 17:46 [Qemu-devel] [Bug 1268671] [NEW] CentOS guest crashing due to assertion failure in qemu-char.c Wesley Holevinski
2014-01-13 18:06 ` [Qemu-devel] [Bug 1268671] " Wesley Holevinski
2017-01-11 20:13 ` Thomas Huth
2017-01-12  8:56 ` Paolo Bonzini
2017-01-12  8:56 ` Paolo Bonzini

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