Nova should disable libguestfs' automatic cleanup
Bug #1261475 reported by
Daniel Berrange
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Michael Still |
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()
tags: | added: compute |
Changed in nova: | |
importance: | Undecided → Low |
status: | New → Triaged |
assignee: | nobody → Michael Still (mikalstill) |
Changed in nova: | |
milestone: | none → icehouse-2 |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | icehouse-2 → 2014.1 |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/64384
Review: https:/