(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-boun...@lists.xen.org [mailto:xen-api- > boun...@lists.xen.org] On Behalf Of Shakeel Butt > Sent: 25 February 2014 11:37 PM > To: xen-api@lists.xen.org > Subject: [Xen-API] Fwd: libxenserver crash > > Forwarding a question asked on xenserver list. > > > ---------- Forwarded message ---------- > From: Shakeel Butt <shakeel.b...@gmail.com> > Date: Mon, Feb 24, 2014 at 6:10 PM > Subject: libxenserver crash > To: "xs-de...@lists.xenserver.org" <xs-de...@lists.xenserver.org> > > > 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@lists.xen.org > http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api _______________________________________________ Xen-api mailing list Xen-api@lists.xen.org http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api