From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34778) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0Gas-0003hv-0D for qemu-devel@nongnu.org; Thu, 26 Jun 2014 16:48:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X0Gal-0001Qa-Qg for qemu-devel@nongnu.org; Thu, 26 Jun 2014 16:48:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:15210) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0Gal-0001QV-GZ for qemu-devel@nongnu.org; Thu, 26 Jun 2014 16:48:23 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s5QKmMH4004780 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 26 Jun 2014 16:48:22 -0400 Date: Thu, 26 Jun 2014 16:19:54 -0400 From: Luiz Capitulino Message-ID: <20140626161954.198f2fbf@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [old BUG]: -watchdog-action pause hangs QEMU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: rjones@redhat.com Cc: qemu-devel Hi Richard, If setup qemu to use a watchdog with action pause, like this: # qemu [...] -watchdog i6300esb -watchdog-action pause qemu will completely hang when the watchdog fires. I started trying to bisect, but I went as down as qemu v1.7.0 and the bug exists there. Here goes a gdb backtrace: #0 0x00007f298ce31759 in syscall () from /lib64/libc.so.6 #1 0x00007f29939b0b56 in futex_wait (ev=0x7f2994548f18, val=4294967295) at /home/lcapitulino/work/src/upstream/qmp-unstable/util/qemu-thread-posix.c:304 #2 0x00007f29939b0c68 in qemu_event_wait (ev=0x7f2994548f18) at /home/lcapitulino/work/src/upstream/qmp-unstable/util/qemu-thread-posix.c:400 #3 0x00007f299392a066 in qemu_clock_enable (type=QEMU_CLOCK_VIRTUAL, enabled=false) at /home/lcapitulino/work/src/upstream/qmp-unstable/qemu-timer.c:171 #4 0x00007f2993653cc1 in pause_all_vcpus () at /home/lcapitulino/work/src/upstream/qmp-unstable/cpus.c:1078 #5 0x00007f2993652d3f in do_vm_stop (state=RUN_STATE_WATCHDOG) at /home/lcapitulino/work/src/upstream/qmp-unstable/cpus.c:532 #6 0x00007f2993654273 in vm_stop (state=RUN_STATE_WATCHDOG) at /home/lcapitulino/work/src/upstream/qmp-unstable/cpus.c:1221 #7 0x00007f29938c638d in watchdog_perform_action () at /home/lcapitulino/work/src/upstream/qmp-unstable/hw/watchdog/watchdog.c:126 #8 0x00007f29938c679d in i6300esb_timer_expired (vp=0x7f2994d17d40) at /home/lcapitulino/work/src/upstream/qmp-unstable/hw/watchdog/wdt_i6300esb.c:197 #9 0x00007f299392a8ce in timerlist_run_timers (timer_list=0x7f2994548ec0) at /home/lcapitulino/work/src/upstream/qmp-unstable/qemu-timer.c:491 #10 0x00007f299392a916 in qemu_clock_run_timers (type=QEMU_CLOCK_VIRTUAL) at /home/lcapitulino/work/src/upstream/qmp-unstable/qemu-timer.c:502 #11 0x00007f299392abfe in qemu_clock_run_all_timers () at /home/lcapitulino/work/src/upstream/qmp-unstable/qemu-timer.c:608 #12 0x00007f299392956a in main_loop_wait (nonblocking=0) at /home/lcapitulino/work/src/upstream/qmp-unstable/main-loop.c:490 #13 0x00007f299374b40c in main_loop () at /home/lcapitulino/work/src/upstream/qmp-unstable/vl.c:2007 #14 0x00007f2993752e5d in main (argc=23, argv=0x7fffc6a5a738, envp=0x7fffc6a5a7f8) at /home/lcapitulino/work/src/upstream/qmp-unstable/vl.c:4526