On Mon, 15 Mar 2021 18:06:35 +0100 Li Zhang wrote: > From: Li Zhang > > When executing the QMP commands "chardev-change" to change the > backend device to socket, it will cause a segment fault because > it assumes chr->label as non-NULL in function yank_register_instance. > The function qmp_chardev_change calls chardev_new, which label > is NULL when creating a new chardev. The label will be passed to > yank_register_instance which causes a segment fault. The callchain > is as the following: > chardev_new -> > qemu_char_open -> > cc->open -> > qmp_chardev_open_socket -> > yank_register_instance Oh, I didn't consider the chardev-change case. I'll look into it. Regards, Lukas Straub --