yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #07406
[Bug 1261475] [NEW] Nova should disable libguestfs' automatic cleanup
Public bug reported:
By default libguestfs will register an atexit() handler to cleanup any
open libguestfs handles when the process exits. Since libguestfs does
not provide any mutex locking in its APIs, the atexit handlers are not
safe in multi-threaded processes. If they run they are liable to cause
memory corruption as multiple threads access the same libguestfs handle.
As such at atexit handlers should be disabled in any multi-threaded
program using libguestfs. eg by using
guestfs.GuestFS (close_on_exit = False)
instead of
guestfs.GuestFS()
** Affects: nova
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1261475
Title:
Nova should disable libguestfs' automatic cleanup
Status in OpenStack Compute (Nova):
New
Bug description:
By default libguestfs will register an atexit() handler to cleanup any
open libguestfs handles when the process exits. Since libguestfs does
not provide any mutex locking in its APIs, the atexit handlers are not
safe in multi-threaded processes. If they run they are liable to cause
memory corruption as multiple threads access the same libguestfs
handle. As such at atexit handlers should be disabled in any multi-
threaded program using libguestfs. eg by using
guestfs.GuestFS (close_on_exit = False)
instead of
guestfs.GuestFS()
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1261475/+subscriptions
Follow ups
References