[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;ãVŽ3vÒë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šÜÀ*Š³¨Rl’S›yÓ>d’Š·D‘6 íXS>(QØÖjü«ñ¥Ñ`©‚aiS_1ÛÎqbìïãÍJwÚÓöº±‡"F…«´”GôuID•PžJBS7à¶à Š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ðå
Mƒn·«õÃqrSs1hŸV%ç¢7F–“/Ÿ`Yâ\‹³¤Óé ¯!L8κÙ?ÓÂܝŒBsÉ¥TU¡ï¿àšHZŽöEû§ò†àKãG§ßǹ¢1KèSŽñ•úå¾WÕÛõ¬ÿŽã›úÿ] ðù€ÊW½Y‚5ëÜ+Éë»Å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]‘Š3Ÿ”ƒdŸi7b¢Ü’Ïq“.wD">Ι„gI!É$¹Ìã™ÔÎËh1wd~ ´\RR›=ˆKJáâøèíÙñäìôòòôý»Éåo—££ñxr~19=}ç‘Ÿe,"úÀ	µ¸LéèX
¾¤´ìšhcìÿ—±Åª2€¬HªØž‰U§–xùjgEº"¢‹©Q­J«_KòðÊüU ï¹>išƒ>ý ]crŸ`ÙÛŒy]¸‡;ÁlC—â1VPs
)U:Ñ8•ù}DPÃp̜痪ù³òÉÏH!lEÅÆ_åÑórœ	¹	¹	¹	¹	¹	ù3ÑüYyË„Ü„Ü„Ü„üù8΄܄܄܄܄ü	BþŸ|•e:}ËN÷žà_\œ_À姳³£‹ß°«#ØXðÞ¡`Eo”„fõ&è÷z¯µ#iAœfÝXP Kõ‡‘@ô'ŸLà8NÛõ}˜®•šêõ`Šý¯dç!ŽÝvÈ›dÛÞ š„7í×k;ƒƒRbÞ‰(Ý~§ò,Eõy\¾kÂ[XøÈI‰çzšêÃä%gèƒâTZkrei-¢{ôÏß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±$ÁH“p®Ë¹N»}PK÷¾Ô©°›§_í¢¤š{M5ç2‚\Ï>H5ù±ìcIÀTŠZùÅ 9ç×µw¤ñáA©.û‹[Ée%”\Yyr±0%Ø¢¹­•Ã5•æc?ƒgˆ'ñƒá P  


More information about the libvir-list mailing list