Hi Taylor,

Do you plan on making full bindings for libxml2? I'd be interested in packaging it as a Blackhole module when you are ready.
Also, when following your steps I got this error:
> (load "xml")
*** WARNING -- Could not find C function: "____20_xml_2e_o1"
*** ERROR IN (console)@1.1 -- /home/alvatar/gambit-xml/xml.o1: undefined symbol: ___release_scmobj

Using gambit 4.6.3

Best regards,

Álvaro





On Fri, Feb 10, 2012 at 8:09 PM, Marc Feeley <feeley@iro.umontreal.ca> wrote:

On 2012-02-10, at 2:01 PM, Taylor Venable wrote:

> Thanks to Valgrind, I found my mistake. I made a vector with size two, then put three items into it. Specifically, the root node went into index 2, which is why that field of the xml-document was the one with the bug. That silly problem fixed, things seem to be working fine. But if anybody has a spare minute and would be willing to check over my code, I would still appreciate any feedback about whether I'm doing things the right way. Especially when it comes to memory management. Thanks!

I'm glad you found the bug.  I looked at your code yesterday and all the allocations seem correct (use of ___STILL objects, and appropriate reference count management).  It seems I missed the "out of bound" index which was the problem.

Marc

_______________________________________________
Gambit-list mailing list
Gambit-list@iro.umontreal.ca
https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list