[libxml-devel] [ libxml-Bugs-19242 ] xpath causes GC crash
noreply at rubyforge.org
noreply at rubyforge.org
Wed Apr 2 00:16:52 EDT 2008
Bugs item #19242, was opened at 2008-04-01 17:54
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=1971&aid=19242&group_id=494
Category: memory
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: xpath causes GC crash
Initial Comment:
Well, I debugged this one, but I don't know how to fix it right. The problem is this: in order to free an xpath object, the nodes it references need to be available. But ruby will happily free the document before freeing the xpath objects.
I think some kind of refcount might work, where the last xpath object calls xmlFreeDoc...
----------------------------------------------------------------------
Comment By: Joe Khoobyar (walltndr)
Date: 2008-04-02 00:16
Message:
Oops. :)
I meant patch #19252
----------------------------------------------------------------------
Comment By: Joe Khoobyar (walltndr)
Date: 2008-04-02 00:14
Message:
I have a patch for this that is working fine on both OS X (Leopard) and 64-bit Linux. See patch #1952
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=1971&aid=19242&group_id=494
More information about the libxml-devel
mailing list