Public bug reported:

qemu version:v2.9.0-rc5 release

1.virsh migrate --live 165cf436-312f-47e7-90f2-f8aa63f34893 --copy-storage-all 
qemu+ssh://10.59.163.38/system
2.press Ctrl+C cancel migrate

 qemu main thread hung

(gdb) bt
#0  0x00007fca9f4574b7 in ppoll () from /lib64/libc.so.6
#1  0x0000000000944970 in qemu_poll_ns (fds=0x293e6e0, nfds=1, timeout=-1) at 
util/qemu-timer.c:322
#2  0x0000000000947e16 in aio_poll (ctx=0x291d4b0, blocking=true) at 
util/aio-posix.c:622
#3  0x00000000008b6094 in nbd_teardown_connection (bs=0x29ccdc0) at 
block/nbd-client.c:59
#4  0x00000000008b6df1 in nbd_client_close (bs=0x29ccdc0) at 
block/nbd-client.c:377
#5  0x00000000008b5988 in nbd_close (bs=0x29ccdc0) at block/nbd.c:488
#6  0x00000000008435de in bdrv_close (bs=0x29ccdc0) at block.c:2919
#7  0x0000000000843c86 in bdrv_delete (bs=0x29ccdc0) at block.c:3100
#8  0x000000000084620b in bdrv_unref (bs=0x29ccdc0) at block.c:4087
#9  0x00000000008411d1 in bdrv_root_unref_child (child=0x30e4800) at 
block.c:1891
#10 0x000000000084128a in bdrv_unref_child (parent=0x29c0660, child=0x30e4800) 
at block.c:1915
#11 0x000000000084362a in bdrv_close (bs=0x29c0660) at block.c:2925
#12 0x0000000000843c86 in bdrv_delete (bs=0x29c0660) at block.c:3100
#13 0x000000000084620b in bdrv_unref (bs=0x29c0660) at block.c:4087
#14 0x00000000008411d1 in bdrv_root_unref_child (child=0x3013910) at 
block.c:1891
#15 0x0000000000848149 in block_job_remove_all_bdrv (job=0x3fa7800) at 
blockjob.c:154
#16 0x00000000008a8dd8 in mirror_exit (job=0x3fa7800, opaque=0x7fca90000bf0) at 
block/mirror.c:576
#17 0x0000000000849e22 in block_job_defer_to_main_loop_bh 
(opaque=0x7fca90000d90) at blockjob.c:794
#18 0x00000000009420c4 in aio_bh_call (bh=0x7fca90000dc0) at util/async.c:90
#19 0x000000000094216f in aio_bh_poll (ctx=0x291d4b0) at util/async.c:118
#20 0x00000000009480d9 in aio_poll (ctx=0x291d4b0, blocking=true) at 
util/aio-posix.c:682
#21 0x00000000008b6094 in nbd_teardown_connection (bs=0x2921350) at 
block/nbd-client.c:59
#22 0x00000000008b6df1 in nbd_client_close (bs=0x2921350) at 
block/nbd-client.c:377
#23 0x00000000008b5988 in nbd_close (bs=0x2921350) at block/nbd.c:488
#24 0x00000000008435de in bdrv_close (bs=0x2921350) at block.c:2919
#25 0x0000000000843c86 in bdrv_delete (bs=0x2921350) at block.c:3100
#26 0x000000000084620b in bdrv_unref (bs=0x2921350) at block.c:4087
#27 0x00000000008411d1 in bdrv_root_unref_child (child=0x390d180) at 
block.c:1891
#28 0x000000000084128a in bdrv_unref_child (parent=0x4eba200, child=0x390d180) 
at block.c:1915
#29 0x000000000084362a in bdrv_close (bs=0x4eba200) at block.c:2925
#30 0x0000000000843c86 in bdrv_delete (bs=0x4eba200) at block.c:3100
#31 0x000000000084620b in bdrv_unref (bs=0x4eba200) at block.c:4087
#32 0x00000000008411d1 in bdrv_root_unref_child (child=0x4ebf990) at 
block.c:1891
#33 0x0000000000848149 in block_job_remove_all_bdrv (job=0x4ea85b0) at 
blockjob.c:154
#34 0x00000000008a8dd8 in mirror_exit (job=0x4ea85b0, opaque=0x7fca98000bf0) at 
block/mirror.c:576
#35 0x0000000000849e22 in block_job_defer_to_main_loop_bh 
(opaque=0x7fca980013d0) at blockjob.c:794
#36 0x00000000009420c4 in aio_bh_call (bh=0x7fca9801e0c0) at util/async.c:90
#37 0x000000000094216f in aio_bh_poll (ctx=0x291d4b0) at util/async.c:118
---Type <return> to continue, or q <return> to quit---  
#38 0x00000000009476ae in aio_dispatch (ctx=0x291d4b0) at util/aio-posix.c:429
#39 0x00000000009425e4 in aio_ctx_dispatch (source=0x291d4b0, callback=0, 
user_data=0x0) at util/async.c:261
#40 0x00007fcaa0101f0e in g_main_context_dispatch () from 
/lib64/libglib-2.0.so.0
#41 0x0000000000945d86 in glib_pollfds_poll () at util/main-loop.c:213
#42 0x0000000000945ea7 in os_host_main_loop_wait (timeout=124777230) at 
util/main-loop.c:261
#43 0x0000000000945f72 in main_loop_wait (nonblocking=0) at util/main-loop.c:517
#44 0x00000000005c7794 in main_loop () at vl.c:1898
#45 0x00000000005cec57 in main (argc=64, argv=0x7fffe7020c58, 
envp=0x7fffe7020e60) at vl.c:4709

** Affects: qemu
     Importance: Undecided
         Status: New

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

Title:
  when migration cancel, qemu main thread hung

Status in QEMU:
  New

Bug description:
  qemu version:v2.9.0-rc5 release

  1.virsh migrate --live 165cf436-312f-47e7-90f2-f8aa63f34893 
--copy-storage-all qemu+ssh://10.59.163.38/system
  2.press Ctrl+C cancel migrate

   qemu main thread hung

  (gdb) bt
  #0  0x00007fca9f4574b7 in ppoll () from /lib64/libc.so.6
  #1  0x0000000000944970 in qemu_poll_ns (fds=0x293e6e0, nfds=1, timeout=-1) at 
util/qemu-timer.c:322
  #2  0x0000000000947e16 in aio_poll (ctx=0x291d4b0, blocking=true) at 
util/aio-posix.c:622
  #3  0x00000000008b6094 in nbd_teardown_connection (bs=0x29ccdc0) at 
block/nbd-client.c:59
  #4  0x00000000008b6df1 in nbd_client_close (bs=0x29ccdc0) at 
block/nbd-client.c:377
  #5  0x00000000008b5988 in nbd_close (bs=0x29ccdc0) at block/nbd.c:488
  #6  0x00000000008435de in bdrv_close (bs=0x29ccdc0) at block.c:2919
  #7  0x0000000000843c86 in bdrv_delete (bs=0x29ccdc0) at block.c:3100
  #8  0x000000000084620b in bdrv_unref (bs=0x29ccdc0) at block.c:4087
  #9  0x00000000008411d1 in bdrv_root_unref_child (child=0x30e4800) at 
block.c:1891
  #10 0x000000000084128a in bdrv_unref_child (parent=0x29c0660, 
child=0x30e4800) at block.c:1915
  #11 0x000000000084362a in bdrv_close (bs=0x29c0660) at block.c:2925
  #12 0x0000000000843c86 in bdrv_delete (bs=0x29c0660) at block.c:3100
  #13 0x000000000084620b in bdrv_unref (bs=0x29c0660) at block.c:4087
  #14 0x00000000008411d1 in bdrv_root_unref_child (child=0x3013910) at 
block.c:1891
  #15 0x0000000000848149 in block_job_remove_all_bdrv (job=0x3fa7800) at 
blockjob.c:154
  #16 0x00000000008a8dd8 in mirror_exit (job=0x3fa7800, opaque=0x7fca90000bf0) 
at block/mirror.c:576
  #17 0x0000000000849e22 in block_job_defer_to_main_loop_bh 
(opaque=0x7fca90000d90) at blockjob.c:794
  #18 0x00000000009420c4 in aio_bh_call (bh=0x7fca90000dc0) at util/async.c:90
  #19 0x000000000094216f in aio_bh_poll (ctx=0x291d4b0) at util/async.c:118
  #20 0x00000000009480d9 in aio_poll (ctx=0x291d4b0, blocking=true) at 
util/aio-posix.c:682
  #21 0x00000000008b6094 in nbd_teardown_connection (bs=0x2921350) at 
block/nbd-client.c:59
  #22 0x00000000008b6df1 in nbd_client_close (bs=0x2921350) at 
block/nbd-client.c:377
  #23 0x00000000008b5988 in nbd_close (bs=0x2921350) at block/nbd.c:488
  #24 0x00000000008435de in bdrv_close (bs=0x2921350) at block.c:2919
  #25 0x0000000000843c86 in bdrv_delete (bs=0x2921350) at block.c:3100
  #26 0x000000000084620b in bdrv_unref (bs=0x2921350) at block.c:4087
  #27 0x00000000008411d1 in bdrv_root_unref_child (child=0x390d180) at 
block.c:1891
  #28 0x000000000084128a in bdrv_unref_child (parent=0x4eba200, 
child=0x390d180) at block.c:1915
  #29 0x000000000084362a in bdrv_close (bs=0x4eba200) at block.c:2925
  #30 0x0000000000843c86 in bdrv_delete (bs=0x4eba200) at block.c:3100
  #31 0x000000000084620b in bdrv_unref (bs=0x4eba200) at block.c:4087
  #32 0x00000000008411d1 in bdrv_root_unref_child (child=0x4ebf990) at 
block.c:1891
  #33 0x0000000000848149 in block_job_remove_all_bdrv (job=0x4ea85b0) at 
blockjob.c:154
  #34 0x00000000008a8dd8 in mirror_exit (job=0x4ea85b0, opaque=0x7fca98000bf0) 
at block/mirror.c:576
  #35 0x0000000000849e22 in block_job_defer_to_main_loop_bh 
(opaque=0x7fca980013d0) at blockjob.c:794
  #36 0x00000000009420c4 in aio_bh_call (bh=0x7fca9801e0c0) at util/async.c:90
  #37 0x000000000094216f in aio_bh_poll (ctx=0x291d4b0) at util/async.c:118
  ---Type <return> to continue, or q <return> to quit---  
  #38 0x00000000009476ae in aio_dispatch (ctx=0x291d4b0) at util/aio-posix.c:429
  #39 0x00000000009425e4 in aio_ctx_dispatch (source=0x291d4b0, callback=0, 
user_data=0x0) at util/async.c:261
  #40 0x00007fcaa0101f0e in g_main_context_dispatch () from 
/lib64/libglib-2.0.so.0
  #41 0x0000000000945d86 in glib_pollfds_poll () at util/main-loop.c:213
  #42 0x0000000000945ea7 in os_host_main_loop_wait (timeout=124777230) at 
util/main-loop.c:261
  #43 0x0000000000945f72 in main_loop_wait (nonblocking=0) at 
util/main-loop.c:517
  #44 0x00000000005c7794 in main_loop () at vl.c:1898
  #45 0x00000000005cec57 in main (argc=64, argv=0x7fffe7020c58, 
envp=0x7fffe7020e60) at vl.c:4709

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

Reply via email to