mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
If you've registered a callback in Python and the handle is implicitly closed when the Python interpreter exits, then it can be that the following happens: - Python interpreter is finalized. - guestfs_close is called - callback is invoked (eg. close event or to display a debug message) - Python code runs from the callback wrapper This cause a segfault on shutdown. Catch this case and stop the callback from running (we lose the event but given the above sequence of events there's not much we can do about it). See: https://bugzilla.redhat.com/show_bug.cgi?id=1773520#c7
9.9 KiB
9.9 KiB