[libvirt] clone memory leak and libvirt connection selection
Johnny Luong
j.duh at compfazed.com
Thu Jul 23 04:32:31 UTC 2009
Hi,
I'm trying to use libvirt-0.6.5 within a multithreaded application without
libvirtd and from what it looks like, it appears to have two things
that are somewhat undesirable:
1) It tries to connect to libvirtd which isn't running. But it does
eventually connect to the hypervisor.
2) It appears to leak some memory within a readonly
connect and close. This is not too bad but it would be an issue in my
long lived daemon application.
I've attached an example program illustrating the issue with the linker log
and the log from valgrind showing the memory leak. The code itself
is based off the one on the website. Is there a URI I can use to avoid
the connection to the libvirtd daemon while still connecting to the
xendstore
and is the memory leak an issue with the application environment or the
library?
Let me know if you need any more information.
Thanks,
Johnny
-------------- next part --------------
#gJ íZmsÛ¸ÎWëWlÓ|¢DRi3§Üx;ãV3vÒëM{£HPÂ"4 ([éä¿wÁIô[:mø:x&±H,v±/Ø% RQ©:á'
ðúýüqû×éùþÇq{o;ý¾ÿÂvlßö_ý´jȤ"à
à\=Öïkô?(ºûûpÉËBÈÓ
è
Éï¯Ùr)¨§ YRHØtÅ([,%HÅqöAq CAiÚÁûn£ñgìd
¥ïÌßÔPP½Ü-ï'ê?¹jÜÀ*³¨RlSyÓ>d·D6 íXS>(QØÖjü«ñ¥Ñ`©aiS_1ÛÎqbìïãÍJwÚÓöº±"F
«´GôuIDPJBS7à¶à 3Ý°úû{pì×
ä¡ÂNS¦IØgÚlÁ`·{8ÜÞR иù2KÉîe/[8ö *)8x¦t»ZÅKªrCO²4l¾ÿ4·ë®ii
{1F·Éök`ðóxÿÓO¥"ÚD´hk÷ù¦Dçi²®ìt´ÚBçw4ðå
Mn·«õÃqrSs1hV%ç¢7F/`Yâ\³¤Óé ¯!L8κÙ?ÓÂÜBsÉ¥TU¡ï¿àHZöEû§òàKãG§ßǹ¢1KèSñúå¾WÕÛõ¬ÿãúÿ] ðùÊW½Y5ëÜ+Éë»ÅsbÕ£&¤&Ѭ8o59ôGFEOt l¯ÿ<ÏÞ¬ÿ<g óß÷&ÿ¿öf7Ö*¼ÿ¾hÚ7:0~ÇÓA/ñØÕ»Ùº[7¢ð$zÖ7lBÂhêo$îåì%SÙRã ^Ãq³H\ÝÅÝY0n 5^ß>ØðÎÒL%2ïäÝf¯Ñjúo#A:ºSï6ÿ¥Æíö·Ü7>Ýå,[k\¶»õò,ëeîHço¶+a
;v/gV±<®«Q§îJÃÞF$ò×ïPj:L ÝpGɵd«j<lxpÁÕ¾Ý毸õ5®8¥âæ!¹kômrMÎà`«÷RÍ®m·+ÔÚkÜ=ß-¸u7¯ßM"«ÈªÏòúwõìÁf¼ÅXÜÍ©MùñóE.Á£NÂgßZv
Çë?Výmýwí^ÿ¹öÀ¬ÿ¾C§wè»Ã!ÑE8§áUwðºàb]nþ#ªp§
Õ¢±í<â˵`³¹æ¨8ý]ÿøÈFðîý'x÷aü*jÃt
ÉFR¸¤×DD at qwìJú¤wv0fÓ¿ÿ]s0èktÞTBïP£uJ¸Ã²T7)ARäÕGê?¨ÞÁþÊÅñøÃ]uª¬°zX+ë-¢ Z©[0¬)"[ÐTåÊ@,È^£ÜGÕ²ÿ[_ +00T°D¶Ña"Kó ¬ÕN×Ë_HѨ ·ÒF0ÍdéOðñP%`ßôl]3di7b¢ÜÏq.wD">ÎgI!É$¹ÌãÔÎËh1wd~ ´\RR=KJáâøèíÙñäìôòòôý»Éåo££ñxr~19=}çe,"úÀ µ¸LéèX
¾¤´ìhcìÿ±Åª2¬HªØU§xùjgEº"¢©QJ«_KòðÊüU ï¹>i>ý ]cr`ÙÛy]¸;ÁlCâ1VPs
)U:Ñ8ù}DPÃpÌçªù³òÉÏH!lEÅÆ_åÑór ¹ ¹ ¹ ¹ ¹ ù3ÑüYyËÜÜÜüù8ÎÜÜÜÜü Bþ|e:}ËN÷à_\_À姳³£ß°«#ØXðÞ¡`Eofõ&è÷z¯µ#iAfÝXP Kõ@ô'Là8NÛõ}®êõ`ý¯dç!ÝvÈdÛÞ 7í×k;RbÞ(Ý~§ò,Eõy\¾kÂ[XøÈIçzêÃä%gèâTZkrei-¢{ôÏßr!¥ïûmÏëÊuî÷|߶·îpìRüL¬¿Ç¤É0vJwÀ_\Dàôµ=îaýp}mßôG®ëÙÇAéIh®fA é¤hêkû:ït¼ïx£Ña MíówÜû! ÇýÿE¡Û;yèW§jR¼¦ÔÞ[nÇGI÷É8£ÞàhèÒsxÛÎåøøè¯\¨K¾àðÝza8{¤dÓ
×Ï,R±$ÁHp®Ë¹N»}PK÷¾Ô©°§_í¢¤{M5ç2\Ï>H5ù±ìcIÀTZùÅ 9ç×µw¤ñáA©.û[Ée%\Yyr±0%Ø¢¹Ã5æc?g'ñá P
More information about the libvir-list
mailing list