[libvirt-users] libvirtd crashes after guest migration with attached console

Hi, please see following backtrace. How to reproduce: start qemu guest w/attached console, execute migration, get a crash at the end. Program received signal SIGSEGV, Segmentation fault. virHashRemoveEntry (table=0x7fa0e0003e90, name=0x7fa0ec00ca60) at /var/tmp/build/libvirt/libvirt-0.9.13/./src/util/virhash.c:463 bt #0 virHashRemoveEntry (table=0x7fa0e0003e90, name=0x7fa0ec00ca60) at /var/tmp/build/libvirt/libvirt-0.9.13/./src/util/virhash.c:463 #1 0x00007fa0ffa5efcc in virConsoleFDStreamCloseCb (st=<optimized out>, opaque=0x7fa0ec00cad0) at /var/tmp/build/libvirt/libvirt-0.9.13/./src/conf/virconsole.c:259 #2 0x00007fa0ffa7a303 in virFDStreamCloseInt (st=0x7fa0ec00c900, streamAbort=<optimized out>) at /var/tmp/build/libvirt/libvirt-0.9.13/./src/fdstream.c:325 #3 0x00007fa0ffaa0503 in virStreamAbort (stream=0x7fa0ec00c900) at /var/tmp/build/libvirt/libvirt-0.9.13/./src/libvirt.c:15289 #4 0x00000000004290c0 in daemonStreamEvent (st=<optimized out>, events=12, opaque=0x18869f0) at /var/tmp/build/libvirt/libvirt-0.9.13/./daemon/stream.c:234 #5 0x00007fa0ffa7a4ac in virFDStreamEvent (watch=<optimized out>, fd=<optimized out>, events=13, opaque=0x7fa0ec00c900) at /var/tmp/build/libvirt/libvirt-0.9.13/./src/fdstream.c:171 #6 0x00007fa0ff9fb07f in virEventPollDispatchHandles (fds=<optimized out>, nfds=11) at /var/tmp/build/libvirt/libvirt-0.9.13/./src/util/event_poll.c:489 #7 virEventPollRunOnce () at /var/tmp/build/libvirt/libvirt-0.9.13/./src/util/event_poll.c:636 #8 0x00007fa0ff9f99b7 in virEventRunDefaultImpl () at /var/tmp/build/libvirt/libvirt-0.9.13/./src/util/event.c:247 #9 0x00007fa0ffad930d in virNetServerRun (srv=0x186f0b0) at /var/tmp/build/libvirt/libvirt-0.9.13/./src/rpc/virnetserver.c:712 #10 0x000000000040c9fc in main (argc=<optimized out>, argv=<optimized out>) at /var/tmp/build/libvirt/libvirt-0.9.13/./daemon/libvirtd.c:1299

On 08/13/12 09:42, Andrey Korolyov wrote:
Hi,
Hi Andrey,
please see following backtrace. How to reproduce: start qemu guest w/attached console, execute migration, get a crash at the end.
Program received signal SIGSEGV, Segmentation fault. virHashRemoveEntry (table=0x7fa0e0003e90, name=0x7fa0ec00ca60) at /var/tmp/build/libvirt/libvirt-0.9.13/./src/util/virhash.c:463
This looks similar to a bug that I've fixed (and also caused :) ). I'd say it should be fixed in the current version, but I'll definitely try to reproduce it in your scenario just to be sure. Thanks for the report. Peter

Hi Peter, I`ve applied your patch two days ago and problem was fixed completely. Very respect for this patch, migration+console problem was a quite annoying. On Tue, Aug 21, 2012 at 12:58 PM, Peter Krempa <pkrempa@redhat.com> wrote:
On 08/13/12 09:42, Andrey Korolyov wrote:
Hi,
Hi Andrey,
please see following backtrace. How to reproduce: start qemu guest w/attached console, execute migration, get a crash at the end.
Program received signal SIGSEGV, Segmentation fault. virHashRemoveEntry (table=0x7fa0e0003e90, name=0x7fa0ec00ca60) at /var/tmp/build/libvirt/libvirt-0.9.13/./src/util/virhash.c:463
This looks similar to a bug that I've fixed (and also caused :) ). I'd say it should be fixed in the current version, but I'll definitely try to reproduce it in your scenario just to be sure.
Thanks for the report.
Peter
participants (2)
-
Andrey Korolyov
-
Peter Krempa