qemu-kvm crashes with the error "iwp->src == NULL in io_watch_poll_finalize"

Solution Verified - Updated -

Issue

  • qemu-kvm crashes with the error "iwp->src == NULL in io_watch_poll_finalize"
#(gdb) bt full
#0  0x00007f6697d8c625 in raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
        resultvar = 0
        pid = <value optimized out>
        selftid = <value optimized out>
#1  0x00007f6697d8de05 in abort () at abort.c:92
        save_stage = 2
        act = {__sigaction_handler = {sa_handler = 0x7f669b4e915f, sa_sigaction = 0x7f669b4e915f}, sa_mask = {__val = {140078612157116, 140077374093184, 0, 140077374093424, 140078611169814, 206158430232, 
    140077374093440, 140077374093216, 140078611075912, 206158430256, 140077374093472, 140076935810048, 0, 4404629778779221360, 7235436829617954877, 140729592551710}}, sa_flags = -1746207828, sa_restorer = 
    0x7f669b4e9478}
        sigs = {__val = {32, 0 <repeats 15 times>}}
#2  0x00007f6697d8574e in __assert_fail_base (fmt=<value optimized out>, assertion=0x7f669b4e915f "iwp->src == ((void *)0)", file=0x7f669b4e9478 "/builddir/build/BUILD/qemu-kvm-0.12.1.2/qemu-char.c", 
    line=<value optimized out>, function=<value optimized out>) at assert.c:96
        str = 0x7f6634000c00 "qemu-kvm: /builddir/build/BUILD/qemu-kvm-0.12.1.2/qemu-char.c:634: io_watch_poll_finalize: Assertion `iwp->src == ((void *)0)' failed.\n"
        total = 4096
#3  0x00007f6697d85810 in __assert_fail (assertion=0x7f669b4e915f "iwp->src == ((void *)0)", file=0x7f669b4e9478 "/builddir/build/BUILD/qemu-kvm-0.12.1.2/qemu-char.c", line=634, function=
    0x7f669b4e9800 "io_watch_poll_finalize") at assert.c:105
No locals.
#4  0x00007f669b39830f in io_watch_poll_finalize (source=<value optimized out>) at /usr/src/debug/qemu-kvm-0.12.1.2/qemu-char.c:634
        iwp = <value optimized out>
        __PRETTY_FUNCTION__ = "io_watch_poll_finalize"
#5  0x00007f669a758fdd in g_source_unref_internal (source=0x7f662adfe6a0, context=0x7f669bec92b0, have_lock=1) at gmain.c:1694
        old_cb_data = 0x0
        old_cb_funcs = 0x0
        __PRETTY_FUNCTION__ = "g_source_unref_internal"
#6  0x00007f669a759312 in g_source_destroy_internal (source=0x7f662adfe6a0, context=0x7f669bec92b0, have_lock=0) at gmain.c:1034
        tmp_list = <value optimized out>
        old_cb_data = <value optimized out>
        old_cb_funcs = <value optimized out>
#7  0x00007f669a75bfce in g_source_remove (tag=<value optimized out>) at gmain.c:1892
        source = 0x7f662adfe6a0
        __PRETTY_FUNCTION__ = "g_source_remove"
#8  0x00007f669b39b615 in pty_chr_rearm_timer (chr=0x7f669bec9d40, connected=<value optimized out>) at /usr/src/debug/qemu-kvm-0.12.1.2/qemu-char.c:1046
        s = 0x7f669becab40
#9  pty_chr_state (chr=0x7f669bec9d40, connected=<value optimized out>) at /usr/src/debug/qemu-kvm-0.12.1.2/qemu-char.c:1135
        s = <value optimized out>
#10 0x00007f669b39b67a in pty_chr_update_read_handler (chr=0x7f669bec9d40) at /usr/src/debug/qemu-kvm-0.12.1.2/qemu-char.c:1119
        s = <value optimized out>
        pfd = {fd = 4, events = 4, revents = 20}
#11 0x00007f669b39b6d5 in pty_chr_write (chr=<value optimized out>, buf=<value optimized out>, len=<value optimized out>) at /usr/src/debug/qemu-kvm-0.12.1.2/qemu-char.c:1063
        s = <value optimized out>
#12 0x00007f669b491d22 in serial_xmit (opaque=0x7f662c1fed90) at /usr/src/debug/qemu-kvm-0.12.1.2/hw/serial.c:325
        s = 0x7f662c1fed90
        new_xmit_ts = 19329958017004362
#13 0x00007f669b49205e in serial_ioport_write (opaque=0x7f662c1fed90, addr=<value optimized out>, val=101) at /usr/src/debug/qemu-kvm-0.12.1.2/hw/serial.c:380
        s = 0x7f662c1fed90
#14 0x00007f669b32c047 in kvm_handle_io (env=0x7f669bff2eb0) at /usr/src/debug/qemu-kvm-0.12.1.2/kvm-all.c:145
        i = <value optimized out>
        ptr = <value optimized out>
#15 kvm_run (env=0x7f669bff2eb0) at /usr/src/debug/qemu-kvm-0.12.1.2/qemu-kvm.c:1061
        r = <value optimized out>
        kvm = 0x7f669becb040
        run = 0x7f669b215000
        fd = 34
#16 0x00007f669b32c239 in kvm_cpu_exec (env=0x7f669bff2eb0) at /usr/src/debug/qemu-kvm-0.12.1.2/qemu-kvm.c:1756
        r = <value optimized out>
#17 0x00007f669b32d12d in kvm_main_loop_cpu (_env=0x7f669bff2eb0) at /usr/src/debug/qemu-kvm-0.12.1.2/qemu-kvm.c:2018
        run_cpu = <value optimized out>
#18 ap_main_loop (_env=0x7f669bff2eb0) at /usr/src/debug/qemu-kvm-0.12.1.2/qemu-kvm.c:2074
        env = 0x7f669bff2eb0
        signals = {__val = {18446744067267100671, 18446744073709551615 <repeats 15 times>}}
        data = <value optimized out>
#19 0x00007f669ae42aa1 in start_thread (arg=0x7f664e1fc700) at pthread_create.c:301
---Type <return> to continue, or q <return> to quit--- 
        __res = <value optimized out>
        pd = 0x7f664e1fc700
        now = <value optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140077374097152, -8268549422669003798, 140078664217440, 140077374097856, 0, 3, 8326216885621064682, 8326315493046453226}, mask_was_saved = 0}}, priv = {
            pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <value optimized out>
        pagesize_m1 = <value optimized out>
        sp = <value optimized out>
        freesize = <value optimized out>
#20 0x00007f6697e4293d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Environment

  • Red Hat Enterprise Linux 6.7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content