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

Re: [Xen-API] Fwd: libxenserver crash



(Already replied on the xenserver list, but also copying the answer here)

This seems to be a bug in the SDK code. I'll rectify it in one of the upcoming 
hotfixes, in the meantime I'm afraid you'll probably have to modify the source 
and in the xen_<class>_xen_<class>_record_map_free calls substitute the 
xen_<class>_record_opt_free(map->contents[i].key) with 
xen_<class>_free(map->contents[i].key).


> -----Original Message-----
> From: xen-api-bounces@xxxxxxxxxxxxx [mailto:xen-api-
> bounces@xxxxxxxxxxxxx] On Behalf Of Shakeel Butt
> Sent: 25 February 2014 11:37 PM
> To: xen-api@xxxxxxxxxxxxx
> Subject: [Xen-API] Fwd: libxenserver crash
> 
> Forwarding a question asked on xenserver list.
> 
> 
> ---------- Forwarded message ----------
> From: Shakeel Butt <shakeel.butt@xxxxxxxxx>
> Date: Mon, Feb 24, 2014 at 6:10 PM
> Subject: libxenserver crash
> To: "xs-devel@xxxxxxxxxxxxxxxxxxx" <xs-devel@xxxxxxxxxxxxxxxxxxx>
> 
> 
> Hi all,
> 
> I am trying to use libxenserver from XenServer 6.2.0 SDK but it is crashing
> whenever I tried to free the records returned by libxenserver. More
> specifically the program is crashing on the following line for all the modules
> having function like "*_record_map_free".
> 
> *_record_opt_free(map->contents[i].key);
> 
> On further investigation, in "xen_common.c::parse_into" the key is just a
> malloc(ed) string but *_record_opt_free is assuming that the key is of type
> struct *_record_opt and try to access its field which is crashing.
> 
> Is this known issue or am I missing something?
> 
> thanks,
> Shakeel
> 
> _______________________________________________
> Xen-api mailing list
> Xen-api@xxxxxxxxxxxxx
> http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api

_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api


 


Rackspace

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