Ross,

Try this again with the patch release just announced.

Dan

On Aug 31, 2007, at 08:54, Ross Bamford wrote:

> On Thu, 30 Aug 2007 14:41:16 +0100, Dan Janowski <[EMAIL PROTECTED]>  
> wrote:
>
>> libxml at rubyforge (http://rubyforge.org/projects/libxml/) now has a
>> packaged development release from the MEM2 branch (New Memory Model)
>> http://rubyforge.org/frs/shownotes.php?release_id=14118
>>
>
> Very cool, Dan! :)
>
> On my box though, it seems to break the previous bug tests - both
> tests/copy_bug.rb and tests/copy_bug2.rb bomb out with a doublefree  
> error.
> FYI this is compiled from the gem, with GCC 4.1.1 (Red Hat 4.1.1-1). I
> included a trace below. Also, running in valgrind shows rather a  
> lot of
> memory errors (but no leaks, so looking good there!)
>
>
>
>
> # ruby bug2.rb
> [... 1..90 elided ... ]
> 91
> 92
> *** glibc detected *** ruby: double free or corruption (fasttop):
> 0x09ab4a38 ***
> ======= Backtrace: =========
> /lib/libc.so.6[0x2bdf18]
> /lib/libc.so.6(__libc_free+0x78)[0x2c13ef]
> /usr/lib/libxml2.so.2(xmlFreeNodeList+0x16e)[0x7c0aeae]
> /usr/lib/libxml2.so.2(xmlFreeNodeList+0x96)[0x7c0add6]
> /usr/lib/libxml2.so.2(xmlFreeDoc+0xcb)[0x7c0abfb]
> ./../ext/xml/libxml_so.so(ruby_xml_document_free+0x2e)[0x9562fe]
> ruby[0x8070286]
> ruby(rb_newobj+0x46)[0x8070396]
> ruby(rb_data_object_alloc+0x10)[0x80703b0]
> ./../ext/xml/libxml_so.so(ruby_xml_node2_wrap+0x67)[0x9537b7]
> ./../ext/xml/libxml_so.so(ruby_xml_node_copy+0x6f)[0x95382f]
> ruby[0x805dd8d]
> ruby[0x805e981]
> ruby[0x805c404]
> ruby[0x805c396]
> ruby[0x8059b73]
> ruby(rb_yield+0x21)[0x805a3f1]
> ruby[0x8080b91]
> ruby[0x805dd8d]
> ruby[0x805e981]
> ruby[0x805c404]
> ruby[0x805d69b]
> ruby[0x805e57f]
> ruby[0x805e981]
> ruby[0x805c50b]
> ruby[0x805adaf]
> ruby[0x805e57f]
> ruby[0x805e981]
> ruby[0x805c50b]
> ruby[0x8059b73]
> ruby(rb_yield+0x21)[0x805a3f1]
> ruby[0x8080b91]
> ruby[0x805dd8d]
> ruby[0x805e981]
> ruby[0x805c404]
> ruby[0x805d69b]
> ruby[0x806940d]
> ruby(ruby_exec+0x16)[0x8069446]
> ruby(ruby_run+0x20)[0x8069470]
> ruby[0x805278f]
> /lib/libc.so.6(__libc_start_main+0xdc)[0x26f724]
> ruby[0x80526c1]
> ======= Memory map: ========
> 0023c000-0023d000 r-xp 0023c000 00:00 0          [vdso]
> 0023d000-00256000 r-xp 00000000 fd:01 997991     /lib/ld-2.4.so
> 00256000-00257000 r-xp 00018000 fd:01 997991     /lib/ld-2.4.so
> 00257000-00258000 rwxp 00019000 fd:01 997991     /lib/ld-2.4.so
> 0025a000-00387000 r-xp 00000000 fd:01 997993     /lib/libc-2.4.so
> 00387000-00389000 r-xp 0012d000 fd:01 997993     /lib/libc-2.4.so
> 00389000-0038a000 rwxp 0012f000 fd:01 997993     /lib/libc-2.4.so
> 0038a000-0038d000 rwxp 0038a000 00:00 0
> 0038f000-003b2000 r-xp 00000000 fd:01 998148     /lib/libm-2.4.so
> 003b2000-003b3000 r-xp 00022000 fd:01 998148     /lib/libm-2.4.so
> 003b3000-003b4000 rwxp 00023000 fd:01 998148     /lib/libm-2.4.so
> 003b6000-003b8000 r-xp 00000000 fd:01 998149     /lib/libdl-2.4.so
> 003b8000-003b9000 r-xp 00001000 fd:01 998149     /lib/libdl-2.4.so
> 003b9000-003ba000 rwxp 00002000 fd:01 998149     /lib/libdl-2.4.so
> 003bc000-003ce000 r-xp 00000000 fd:01 104393     /usr/lib/libz.so. 
> 1.2.3
> 003ce000-003cf000 rwxp 00011000 fd:01 104393     /usr/lib/libz.so. 
> 1.2.3
> 00651000-0065c000 r-xp 00000000 fd:01 998151
> /lib/libgcc_s-4.1.1-20060525.so.1
> 0065c000-0065d000 rwxp 0000a000 fd:01 998151
> /lib/libgcc_s-4.1.1-20060525.so.1
> 00943000-0095f000 r-xp 00000000 fd:00 6427242
> /home/usr/local/lib/ruby/gems/1.8/gems/libxml-ruby-0.5.0/ext/xml/ 
> libxml_so.so
> 0095f000-00960000 rwxp 0001c000 fd:00 6427242
> /home/usr/local/lib/ruby/gems/1.8/gems/libxml-ruby-0.5.0/ext/xml/ 
> libxml_so.so
> 00d27000-00d39000 r-xp 00000000 fd:01 998161     /lib/libnsl-2.4.so
> 00d39000-00d3a000 r-xp 00011000 fd:01 998161     /lib/libnsl-2.4.so
> 00d3a000-00d3b000 rwxp 00012000 fd:01 998161     /lib/libnsl-2.4.so
> 00d3b000-00d3d000 rwxp 00d3b000 00:00 0
> 07bcb000-07cef000 r-xp 00000000 fd:01 104471     /usr/lib/ 
> libxml2.so.2.6.23
> 07cef000-07cf7000 rwxp 00124000 fd:01 104471     /usr/lib/ 
> libxml2.so.2.6.23
> 07cf7000-07cf8000 rwxp 07cf7000 00:00 0
> 07e2d000-07e32000 r-xp 00000000 fd:01 998156     /lib/libcrypt-2.4.so
> 07e32000-07e33000 r-xp 00004000 fd:01 998156     /lib/libcrypt-2.4.so
> 07e33000-07e34000 rwxp 00005000 fd:01 998156     /lib/libcrypt-2.4.so
> 07e34000-07e5b000 rwxp 07e34000 00:00 0
> 08048000-080ef000 r-xp 00000000 fd:00 5030041    /home/usr/local/ 
> bin/ruby
> 080ef000-080f1000 rw-p 000a6000 fd:00 5030041    /home/usr/local/ 
> bin/ruby
> 080f1000-08100000 rw-p 080f1000 00:00 0
> 09972000-09add000 rw-p 09972000 00:00 0          [heap]
> b7e00000-b7e21000 rw-p b7e00000 00:00 0
> b7e21000-b7f00000 ---p b7e21000 00:00 0
> b7f3c000-b7f6f000 rw-p b7f3c000 00:00 0
> b7f8d000-b7f8f000 rw-p b7f8d000 00:00 0
> bf7f5000-bf80b000 rw-p bf7f5000 00:00 0          [stack]
> Aborted
>
> -- 
> Ross Bamford - [EMAIL PROTECTED]
> _______________________________________________
> libxml-devel mailing list
> libxml-devel@rubyforge.org
> http://rubyforge.org/mailman/listinfo/libxml-devel

_______________________________________________
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

Reply via email to