[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Libxenstore memory leak on static compile



When statically compiling libxenstore.a, the USE_PTHREAD define is not applied. 
This results in cleanup_{pus/pop} being no-ops. cleanup_p* are used throughout 
xs.c:read_message to free malloc'ed objects.

In short, libxenstore.a will leak memory when reading xenstore messages. OOM 
killer awaits.

This could be solved by either turning on USE_PTHREAD for .a compilation 
(which, N.B. will not actually link libpthread but instead produce an object 
archive that needs to be eventually linked to libpthread.so), or by replacing 
cleanup_p* by proper free calls.

Thoughts?
Andres
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.