Skip to contentSkip to conversation

QOM: device_del core dumps qemu

Qemu-devel Luiz Capitulino 2 participants 3 messages Mar 19, 2012

lore
Share & tools
lore

Luiz Capitulino

author Reviewed-by Anthony Liguori
#0 lore raw
# qemu [..] -netdev type=tap,vhost=on,id=guest0,script=qemu-ifup-switch \
            -device virtio-net-pci,netdev=guest0,id=foo

The on the monitor:

(qemu) device_del foo
(qemu)

Bisect says it's caused by commit:

commit dd0ba250ca83ed915ea192ab7539cdbb4e868c14

Author: Paolo Bonzini <[email protected]>
Date:   Thu Feb 2 13:08:48 2012 +0100

qdev: let QOM free properties

Drop the special free callback. Instead, register a "regular" release method in the non-legacy property.

#1 lore raw
Quoted 8 lines · Luiz Capitulino
# qemu [..] -netdev type=tap,vhost=on,id=guest0,script=qemu-ifup-switch \
             -device virtio-net-pci,netdev=guest0,id=foo

The on the monitor:

(qemu) device_del foo
(qemu)

Pretty sure this is fixed by:

commit e5ab1404d014cefe22e9a10fca00d0acf4fe412b

Author: Anthony Liguori <[email protected]>
Date:   Thu Mar 15 11:29:56 2012 -0500

pci: fix double free of romfile property

Which I just pushed earlier today.

Could you confirm that?

Regards,

Anthony Liguori

Quoted 15 lines

Bisect says it's caused by commit:

commit dd0ba250ca83ed915ea192ab7539cdbb4e868c14

Author: Paolo Bonzini<[email protected]>
Date:   Thu Feb 2 13:08:48 2012 +0100

qdev: let QOM free properties

Drop the special free callback. Instead, register a "regular" release method in the non-legacy property.

#2 lore raw
Quoted 13 lines · On Mon, 19 Mar 2012 15:22:34 -0500 Anthony Liguori <[email protected]>…
Quoted 8 lines · Luiz Capitulino
# qemu [..] -netdev type=tap,vhost=on,id=guest0,script=qemu-ifup-switch \
             -device virtio-net-pci,netdev=guest0,id=foo

The on the monitor:

(qemu) device_del foo
(qemu)

Pretty sure this is fixed by:

commit e5ab1404d014cefe22e9a10fca00d0acf4fe412b

Quoted 8 lines
Author: Anthony Liguori <[email protected]>
Date:   Thu Mar 15 11:29:56 2012 -0500

pci: fix double free of romfile property

Which I just pushed earlier today.

Could you confirm that?

Confirmed, it fixes the bug to me, thanks.