I just finished changing a portion of my code from rexml to libxml-ruby. Processing time went from 40 minutes to 3 seconds. How's that for a speed increase!
Anyhow, when the program exits, ruby crashes with the below output. I thought I remembered seeing something about GCC4 and libxml-ruby, but can't seem to find it now. The program runs completely to the end. It looks like the error occurs when ruby is trying to clean up after itself. [EMAIL PROTECTED] captiveware]$ gcc --version gcc (GCC) 4.1.0 20060304 (Red Hat 4.1.0-3) Any ideas? Thanks, Doug FORM GENERATED Trying to write to file After trying to write to file nothing left to do but print this message *** glibc detected *** ruby: munmap_chunk(): invalid pointer: 0x071f1804 *** ======= Backtrace: ========= /lib/libc.so.6(__libc_free+0x179)[0xbb04f0] ruby(ruby_xfree+0x26)[0x806d936] /usr/lib/libxml2.so.2(xmlFreeNodeList+0x16e)[0x713deae] /usr/lib/libxml2.so.2(xmlFreeNodeList+0x96)[0x713ddd6] /usr/lib/libxml2.so.2(xmlFreeNodeList+0x96)[0x713ddd6] /usr/lib/libxml2.so.2(xmlFreeDoc+0xcb)[0x713dbfb] /usr/local/lib/ruby/site_ruby/1.8/i686-linux/xml/libxml_so.so(ruby_xml_document_free+0x95)[0x89e735] ruby(rb_gc_call_finalizer_at_exit+0x87)[0x806db77] ruby[0x80573e9] ruby(ruby_cleanup+0xcc)[0x806327c] ruby(ruby_stop+0x11)[0x8063351] ruby[0x8068831] ruby[0x80521d4] /lib/libc.so.6(__libc_start_main+0xdc)[0xb5e724] ruby[0x8052111] ======= Memory map: ======== 00111000-00115000 r-xp 00000000 08:03 721638 /usr/local/lib/ruby/1.8/i686-linux/strscan.so 00115000-00116000 rwxp 00003000 08:03 721638 /usr/local/lib/ruby/1.8/i686-linux/strscan.so 00116000-0011a000 r-xp 00000000 08:03 721616 /usr/local/lib/ruby/1.8/i686-linux/stringio.so 0011a000-0011b000 rwxp 00003000 08:03 721616 /usr/local/lib/ruby/1.8/i686-linux/stringio.so 0011b000-00135000 r-xp 00000000 08:03 721634 /usr/local/lib/ruby/1.8/i686-linux/syck.so 00135000-00136000 rwxp 00019000 08:03 721634 /usr/local/lib/ruby/1.8/i686-linux/syck.so 00136000-0013f000 r-xp 00000000 08:03 721649 /usr/local/lib/ruby/1.8/i686-linux/socket.so 0013f000-00140000 rwxp 00008000 08:03 721649 /usr/local/lib/ruby/1.8/i686-linux/socket.so 00140000-00142000 r-xp 00000000 08:03 721605 /usr/local/lib/ruby/1.8/i686-linux/etc.so 00142000-00143000 rwxp 00001000 08:03 721605 /usr/local/lib/ruby/1.8/i686-linux/etc.so 00143000-00146000 r-xp 00000000 08:03 721607 /usr/local/lib/ruby/1.8/i686-linux/iconv.so 00146000-00147000 rwxp 00002000 08:03 721607 /usr/local/lib/ruby/1.8/i686-linux/iconv.so 00147000-0014f000 r-xp 00000000 08:03 721641 /usr/local/lib/ruby/1.8/i686-linux/zlib.so 0014f000-00150000 rwxp 00007000 08:03 721641 /usr/local/lib/ruby/1.8/i686-linux/zlib.so 00151000-00186000 r-xp 00000000 08:03 721609 /usr/local/lib/ruby/1.8/i686-linux/openssl.so 00186000-00188000 rwxp 00034000 08:03 721609 /usr/local/lib/ruby/1.8/i686-linux/openssl.so 00188000-00197000 r-xp 00000000 08:03 721608 /usr/local/lib/ruby/1.8/i686-linux/nkf.so 00197000-001a9000 rwxp 0000f000 08:03 721608 /usr/local/lib/ruby/1.8/i686-linux/nkf.so 001a9000-001aa000 rwxp 001a9000 00:00 0 001aa000-001b1000 r-xp 00000000 08:03 721349 /usr/local/lib/ruby/site_ruby/1.8/i686-linux/postgres.so 001b1000-001b2000 rwxp 00006000 08:03 721349 /usr/local/lib/ruby/site_ruby/1.8/i686-linux/postgres.so 001b2000-001bb000 r-xp 00000000 08:01 192232 /lib/libnss_files-2.4.so 001bb000-001bc000 r-xp 00008000 08:01 192232 /lib/libnss_files-2.4.so 001bc000-001bd000 rwxp 00009000 08:01 192232 /lib/libnss_files-2.4.so 001bd000-001bf000 r-xp 00000000 08:03 721633 /usr/local/lib/ruby/1.8/i686-linux/enumerator.so 001bf000-001c0000 rwxp 00001000 08:03 721633 /usr/local/lib/ruby/1.8/i686-linux/enumerator.so 00242000-0024d000 r-xp 00000000 08:01 192231 /lib/libgcc_s-4.1.0-20060304.so.1 0024d000-0024e000 rwxp 0000a000 08:01 192231 /lib/libgcc_s-4.1.0-20060304.so.1 002bb000-002bc000 r-xp 002bb000 00:00 0 [vdso] 002bc000-002d5000 r-xp 00000000 08:01 192210 /lib/ld-2.4.so 002d5000-002d6000 r-xp 00018000 08:01 192210 /lib/ld-2.4.so 002d6000-002d7000 rwxp 00019000 08:01 192210 /lib/ld-2.4.so 00310000-00312000 r-xp 00000000 08:01 192331 /lib/libcom_err.so.2.1 00312000-00313000 rwxp 00001000 08:01 192331 /lib/libcom_err.so.2.1 00315000-00318000 r-xp 00000000 08:03 525647 /usr/lib/libkrb5support.so.0.0 00318000-00319000 rwxp 00002000 08:03 525647 /usr/lib/libkrb5support.so.0.0 0031b000-0033f000 r-xp 00000000 08:03 527969 /usr/lib/libk5crypto.so.3.0 0033f000-00340000 rwxp 00024000 08:03 527969 /usr/lib/libk5crypto.so.3.0 00342000-0035a000 r-xp 00000000 08:03 527971 /usr/lib/libgssapi_krb5.so.2.2 0035a000-0035b000 rwxp 00017000 08:03 527971 /usr/lib/libgssapi_krb5.so.2.2 00389000-003a8000 r-xp 00000000 08:03 526444 /usr/lib/libpq.so.4.1 003a8000-003a9000 rwxp 0001f000 08:03 526444 /usr/lib/libpq.so.4.1 003c5000-003d7000 r-xp 00000000 08:01 192243 /lib/libnsl-2.4.so 003d7000-003d8000 r-xp 00011000 08:01 192243 /lib/libnsl-2.4.so 003d8000-003d9000 rwxp 00012000 08:01 192243 /lib/libnsl-2.4.so 003d9000-003db000 rwxp 003d9000 00:00 0 003dd000-004fc000 r-xp 00000000 08:01 192333 /lib/libcrypto.so.0.9.8a 004fc000-0050f000 rwxp 0011e000 08:01 192333 /lib/libcrypto.so.0.9.8a 0050f000-00512000 rwxp 0050f000 00:00 0 00514000-00587000 r-xp 00000000 08:03 527970 /usr/lib/libkrb5.so.3.2 00587000-00589000 rwxp 00073000 08:03 527970 /usr/lib/libkrb5.so.3.2 0058b000-005cc000 r-xp 00000000 08:01 192430 /lib/libssl.so.0.9.8a 005cc000-005d0000 rwxp 00040000 08:01 192430 /lib/libssl.so.0.9.8a 0061a000-0061b000 r-xp 00000000 08:03 721619 /usr/local/lib/ruby/1.8/i686-linux/digest/md5.so 0061b000-0061c000 rwxp 00000000 08:03 721619 /usr/local/lib/ruby/1.8/i686-linux/digest/md5.so 006c7000-006d6000 r-xp 00000000 08:01 192255 /lib/libresolv-2.4.so 006d6000-006d7000 r-xp 0000e000 08:01 192255 /lib/libresolv-2.4.so 006d7000-006d8000 rwxp 0000f000 08:01 192255 /lib/libresolv-2.4.so 006d8000-006da000 rwxp 006d8000 00:00 0 0072b000-0072d000 r-xp 00000000 08:03 721611 /usr/local/lib/ruby/1.8/i686-linux/digest.so 0072d000-0072e000 rwxp 00001000 08:03 721611 /usr/local/lib/ruby/1.8/i686-linux/digest.so 00888000-008a1000 r-xp 00000000 08:03 895239 /usr/local/lib/ruby/site_ruby/1.8/i686-linux/xml/libxml_so.so 008a1000-008a2000 rwxp 00019000 08:03 895239 /usr/local/lib/ruby/site_ruby/1.8/i686-linux/xml/libxml_so.so 00b49000-00c76000 r-xp 00000000 08:01 192217 /lib/libc-2.4.so 00c76000-00c78000 r-xp 0012d000 08:01 192217 /lib/libc-2.4.so 00c78000-00c79000 rwxp 0012f000 08:01 192217 /lib/libc-2.4.so 00c79000-00c7c000 rwxp 00c79000 00:00 0 00c7e000-00ca1000 r-xp 00000000 08:01 192221 /lib/libm-2.4.so 00ca1000-00ca2000 r-xp 00022000 08:01 192221 /lib/libm-2.4.so 00ca2000-00ca3000 rwxp 00023000 08:01 192221 /lib/libm-2.4.so 00ca5000-00ca7000 r-xp 00000000 08:01 192223 /lib/libdl-2.4.so 00ca7000-00ca8000 r-xp 00001000 08:01 192223 /lib/libdl-2.4.so 00ca8000-00ca9000 rwxp 00002000 08:01 192223 /lib/libdl-2.4.so 00cab000-00cbd000 r-xp 00000000 08:03 527663 /usr/lib/libz.so.1.2.3 00cbd000-00cbe000 rwxp 00011000 08:03 527663 /usr/lib/libz.so.1.2.3 00dde000-00dee000 r-xp 00000000 08:01 192227 /lib/libpthread-2.4.so 00dee000-00def000 r-xp 0000f000 08:01 192227 /lib/libpthread-2.4.so 00def000-00df0000 rwxp 00010000 08:01 192227 /lib/libpthread-2.4.so 00df0000-00df2000 rwxp 00df0000 00:00 0 00fa4000-00fa7000 r-xp 00000000 08:03 721626 /usr/local/lib/ruby/1.8/i686-linux/racc/cparse.so 00fa7000-00fa8000 rwxp 00002000 08:03 721626 /usr/local/lib/ruby/1.8/i686-linux/racc/cparse.so 00fdb000-00fdc000 r-xp 00000000 08:03 721629 /usr/local/lib/ruby/1.8/i686-linux/fcntl.so 00fdc000-00fdd000 rwxp 00000000 08:03 721629 /usr/local/lib/ruby/1.8/i686-linux/fcntl.so 070fe000-07222000 r-xp 00000000 08:03 527809 /usr/lib/libxml2.so.2.6.23 07222000-0722a000 rwxp 00124000 08:03 527809 /usr/lib/libxml2.so.2.6.23 0722a000-0722b000 rwxp 0722a000 00:00 0 0722d000-07232000 r-xp 00000000 08:01 192245 /lib/libcrypt-2.4.so 07232000-07233000 r-xp 00004000 08:01 192245 /lib/libcrypt-2.4.so 07233000-07234000 rwxp 00005000 08:01 192245 /lib/libcrypt-2.4.so 07234000-0725b000 rwxp 07234000 00:00 0 08048000-080ec000 r-xp 00000000 08:03 556491 /usr/local/bin/ruby 080ec000-080ed000 rw-p 000a4000 08:03 556491 /usr/local/bin/ruby 080ed000-080fd000 rw-p 080ed000 00:00 0 09519000-134b6000 rw-p 09519000 00:00 0 [heap] b758f000-b76f6000 rw-p b758f000 00:00 0 b7737000-b776d000 rw-p b7737000 00:00 0 b77e4000-b7d80000 rw-p b77e4000 00:00 0 b7d81000-b7fc8000 rw-p b7d81000 00:00 0 b7fe3000-b7fe5000 rw-p b7fe3000 00:00 0 bfbc8000-bfbe4000 rw-p bfbc8000 00:00 0 [stack] Aborted _______________________________________________ libxml-devel mailing list libxml-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/libxml-devel