Displaying 1 result from an estimated 1 matches for "virthreadlocalinit".
2011 Aug 22
0
issue with virErrorInitialize
...r initializes the thread setup ->virThreadInitialize(),
creates the error reporting structure ->virErrorInitialize() and initialize
a
random number generator ->virRandomInitialize().
The issue is hidden in virErrorInitialize(). It calls virErrorInitialize()
which uses the wrapper function virThreadLocalInit(&virLastErr,
virLastErrFreeData);.
virThreadLocalInit() calls pthread_create() with a destructor function
(virLastErrFreeData()) which will be called on thread exits.
Trouble here is that pthread_key_delete() is never called in libvirt, but
next
time the system runs through the key list and li...