Bugs item #8337, was opened at 2007-01-31 10:47 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=8337&group_id=494
Category: None Group: None Status: Closed Resolution: Accepted Priority: 3 Submitted By: Nobody (None) Assigned to: Charlie Savage (cfis) Summary: Opening many files causes segfault on fbsd-amd64 Initial Comment: I have a number of xml files I'm parsing, and it seems the libxml-ruby will cause a segfault if I open too many files too quickly. For example, if your script test.rb is: -- require 'xml/libxml' (1..10000).each{|time| XML::Document.file('test.xml') p time if time % 100 == 0 } -- and test.xml is -- <?xml version="1.0"?> <test/> -- Then, on fbsd-amd64, you'll see 100 200 300 400 500 test.rb:5: [BUG] Segmentation fault ruby 1.8.5 (2006-08-25) [amd64-freebsd6] zsh: abort (core dumped) ruby test.rb It seems to error in the same place every time. Interestingly, for so short an XML file, if you remove the if clause from the p statement, there won't be any errors, however longer XML files will still suffer this problem. More interestingly, the problem can be avoided entirely by disabling the GC. ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2008-07-10 01:15 Message: For follow up see thread at: http://rubyforge.org/pipermail/libxml-devel/2008-July/000890.html ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2008-07-09 11:37 Message: I assume this is now fixed with the new memory model. ---------------------------------------------------------------------- Comment By: Saurabh Nanda (saurabhnanda) Date: 2008-02-05 07:19 Message: Here's the error log. I don't know what'll happen to the formatting, though: *** glibc detected *** /usr/local/bin/ruby: double free or corruption (out): 0x0000000012933740 *** ======= Backtrace: ========= /lib64/libc.so.6[0x3ef4e6e8a0] /lib64/libc.so.6(cfree+0x8c)[0x3ef4e71fbc] /usr/lib64/libxml2.so.2(xmlCharEncCloseFunc+0x51)[0x3f0202def1] /usr/lib64/libxml2.so.2(xmlFreeParserInputBuffer+0x2d)[0x3f02057efd] /usr/lib64/libxml2.so.2(xmlFreeInputStream+0x67)[0x3f020322a7] /usr/lib64/libxml2.so.2(xmlFreeParserCtxt+0x19)[0x3f020322e9] /home/cleartrip/rails-libs/ct-gems/gems/libxml-ruby-0.5.2.0/lib/xml/libxml_so.so(ruby_xml_parser_context_free+0x11)[0x2aaab4b17721] /usr/local/bin/ruby[0x42d1b2] /usr/local/bin/ruby(ruby_xmalloc+0x67)[0x42d5c7] /usr/local/bin/ruby[0x40e14d] /usr/local/bin/ruby[0x4114fe] /usr/local/bin/ruby[0x417a21] /usr/local/bin/ruby[0x41aba1] /usr/local/bin/ruby[0x41b058] /usr/local/bin/ruby[0x416c26] /usr/local/bin/ruby[0x417eba] /usr/local/bin/ruby[0x41aba1] /usr/local/bin/ruby[0x41b058] /usr/local/bin/ruby[0x416c26] /usr/local/bin/ruby[0x41aba1] /usr/local/bin/ruby[0x41b058] /usr/local/bin/ruby[0x416c26] /usr/local/bin/ruby[0x41918d] /usr/local/bin/ruby(rb_ary_each+0x23)[0x4808f3] /usr/local/bin/ruby[0x41a33d] /usr/local/bin/ruby[0x41b058] /usr/local/bin/ruby[0x416c26] /usr/local/bin/ruby[0x417eba] /usr/local/bin/ruby[0x41918d] /usr/local/bin/ruby[0x419e52] /usr/local/bin/ruby[0x41a33d] /usr/local/bin/ruby[0x41b058] /usr/local/bin/ruby[0x416c26] /usr/local/bin/ruby[0x4177e2] /usr/local/bin/ruby[0x41aba1] /usr/local/bin/ruby[0x41b058] /usr/local/bin/ruby[0x416d5e] /usr/local/bin/ruby[0x415cb3] /usr/local/bin/ruby[0x41aba1] /usr/local/bin/ruby[0x41b058] /usr/local/bin/ruby(rb_funcall2+0x32)[0x41b272] /usr/local/bin/ruby[0x41cf58] /usr/local/bin/ruby[0x41b136] /usr/local/bin/ruby[0x4234b1] /usr/local/bin/ruby[0x41a33d] /usr/local/bin/ruby[0x41b058] /usr/local/bin/ruby[0x416c26] /usr/local/bin/ruby[0x420104] /usr/local/bin/ruby[0x4161fb] /usr/local/bin/ruby[0x41aba1] /usr/local/bin/ruby[0x41b058] /usr/local/bin/ruby[0x416c26] /usr/local/bin/ruby[0x417eba] /usr/local/bin/ruby[0x41918d] /usr/local/bin/ruby(rb_ary_each+0x23)[0x4808f3] /usr/local/bin/ruby[0x41a33d] /usr/local/bin/ruby[0x41b058] /usr/local/bin/ruby[0x4171c7] /usr/local/bin/ruby[0x41aba1] /usr/local/bin/ruby[0x41b058] /usr/local/bin/ruby[0x4166ce] /usr/local/bin/ruby[0x41918d] /usr/local/bin/ruby[0x419e52] ======= Memory map: ======== 00400000-004c2000 r-xp 00000000 08:05 12025858 /usr/local/bin/ruby 006c2000-006c4000 rw-p 000c2000 08:05 12025858 /usr/local/bin/ruby 006c4000-006e1000 rw-p 006c4000 00:00 0 106ab000-133f4000 rw-p 106ab000 00:00 0 3ef4600000-3ef461a000 r-xp 00000000 08:01 7972263 /lib64/ld-2.5.so 3ef4819000-3ef481a000 r--p 00019000 08:01 7972263 /lib64/ld-2.5.so 3ef481a000-3ef481b000 rw-p 0001a000 08:01 7972263 /lib64/ld-2.5.so 3ef4a00000-3ef4a14000 r-xp 00000000 08:01 6175180 /usr/lib64/libz.so.1.2.3 3ef4a14000-3ef4c13000 ---p 00014000 08:01 6175180 /usr/lib64/libz.so.1.2.3 3ef4c13000-3ef4c14000 rw-p 00013000 08:01 6175180 /usr/lib64/libz.so.1.2.3 3ef4e00000-3ef4f44000 r-xp 00000000 08:01 7972264 /lib64/libc-2.5.so 3ef4f44000-3ef5144000 ---p 00144000 08:01 7972264 /lib64/libc-2.5.so 3ef5144000-3ef5148000 r--p 00144000 08:01 7972264 /lib64/libc-2.5.so 3ef5148000-3ef5149000 rw-p 00148000 08:01 7972264 /lib64/libc-2.5.so 3ef5149000-3ef514e000 rw-p 3ef5149000 00:00 0 3ef5200000-3ef5282000 r-xp 00000000 08:01 7972270 /lib64/libm-2.5.so 3ef5282000-3ef5481000 ---p 00082000 08:01 7972270 /lib64/libm-2.5.so 3ef5481000-3ef5482000 r--p 00081000 08:01 7972270 /lib64/libm-2.5.so 3ef5482000-3ef5483000 rw-p 00082000 08:01 7972270 /lib64/libm-2.5.so 3ef5600000-3ef5602000 r-xp 00000000 08:01 7972269 /lib64/libdl-2.5.so 3ef5602000-3ef5802000 ---p 00002000 08:01 7972269 /lib64/libdl-2.5.so 3ef5802000-3ef5803000 r--p 00002000 08:01 7972269 /lib64/libdl-2.5.so 3ef5803000-3ef5804000 rw-p 00003000 08:01 7972269 /lib64/libdl-2.5.so 3ef5a00000-3ef5a15000 r-xp 00000000 08:01 7972265 /lib64/libpthread-2.5.so 3ef5a15000-3ef5c14000 ---p 00015000 08:01 7972265 /lib64/libpthread-2.5.so 3ef5c14000-3ef5c15000 r--p 00014000 08:01 7972265 /lib64/libpthread-2.5.so 3ef5c15000-3ef5c16000 rw-p 00015000 08:01 7972265 /lib64/libpthread-2.5.so 3ef5c16000-3ef5c1a000 rw-p 3ef5c16000 00:00 0 3ef5e00000-3ef5e35000 r-xp 00000000 08:01 9365090 /usr/lib64/libreadline.so.5.1 3ef5e35000-3ef6034000 ---p 00035000 08:01 9365090 /usr/lib64/libreadline.so.5.1 3ef6034000-3ef603c000 rw-p 00034000 08:01 9365090 /usr/lib64/libreadline.so.5.1 3ef603c000-3ef603d000 rw-p 3ef603c000 00:00 0 3ef9a00000-3ef9a0d000 r-xp 00000000 08:01 7972150 /lib64/libgcc_s-4.1.1-20070105.so.1 3ef9a0d000-3ef9c0c000 ---p 0000d000 08:01 7972150 /lib64/libgcc_s-4.1.1-20070105.so.1 3ef9c0c000-3ef9c0d000 rw-p 0000c000 08:01 7972150 /lib64/libgcc_s-4.1.1-20070105.so.1 3efb600000-3efb614000 r-xp 00000000 08:01 7972283 /lib64/libnsl-2.5.so 3efb614000-3efb813000 ---p 00014000 08:01 7972283 /lib64/libnsl-2.5.so 3efb813000-3efb814000 r--p 00013000 08:01 7972283 /lib64/libnsl-2.5.so 3efb814000-3efb815000 rw-p 00014000 08:01 7972283 /lib64/libnsl-2.5.so 3efb815000-3efb817000 rw-p 3efb815000 00:00 0 3efe400000-3efe525000 r-xp 00000000 08:01 7972274 /lib64/libcrypto.so.0.9.8b 3efe525000-3efe724000 ---p 00125000 08:01 7972274 /lib64/libcrypto.so.0.9.8b 3efe724000-3efe743000 rw-p 00124000 08:01 7972274 /lib64/libcrypto.so.0.9.8b 3efe743000-3efe747000 rw-p 3efe743000 00:00 0 3efe800000-3efe811000 r-xp 00000000 08:01 7972272 /lib64/libresolv-2.5.so 3efe811000-3efea11000 ---p 00011000 08:01 7972272 /lib64/libresolv-2.5.so 3efea11000-3efea12000 r--p 00011000 08:01 7972272 /lib64/libresolv-2.5.so 3efea12000-3efea13000 rw-p 00012000 08:01 7972272 /lib64/libresolv-2.5.so 3efea13000-3efea15000 rw-p 3efea13000 00:00 0 3efec00000-3efec07000 r-xp 00000000 08:01 9352632 /usr/lib64/libkrb5support.so.0.1 3efec07000-3efee06000 ---p 00007000 08:01 9352632 /usr/lib64/libkrb5support.so.0.1 3efee06000-3efee07000 rw-p 00006000 08:01 9352632 /usr/lib64/libkrb5support.so.0.1 3eff400000-3eff402000 r-xp 00000000 08:01 7972273 /lib64/libcom_err.so.2.1 3eff402000-3eff601000 ---p 00002000 08:01 7972273 /lib64/libcom_err.so.2.1 3eff601000-3eff602000 rw-p 00001000 08:01 7972273 /lib64/libcom_err.so.2.1 3eff800000-3eff884000 r-xp 00000000 08:01 6175186 /usr/lib64/libkrb5.so.3.2 3eff884000-3effa84000 ---p 00084000 08:01 6175186 /usr/lib64/libkrb5.so.3.2 3effa84000-3effa88000 rw-p 00084000 08:01 6175186 /usr/lib64/libkrb5.so.3.2 3effc00000-3effc23000 r-xp 00000000 08:01 6175185 /usr/lib64/libk5crypto.so.3.0 3effc23000-3effe23000 ---p 00023000 08:01 6175185 /usr/lib64/libk5crypto.so.3.0 3effe23000-3effe25000 rw-p 00023000 08:01 6175185 /usr/lib64/libk5crypto.so.3.0 3f00400000-3f00429000 r-xp 00000000 08:01 6175187 /usr/lib64/libgssapi_krb5.so.2.2 3f00429000-3f00628000 ---p 00029000 08:01 6175187 /usr/lib64/libgssapi_krb5.so.2.2 3f00628000-3f0062a000 rw-p 00028000 08:01 6175187 /usr/lib64/libgssapi_krb5.so.2.2 3f00800000-3f00843000 r-xp 00000000 08:01 7972275 /lib64/libssl.so.0.9.8b 3f00843000-3f00a43000 ---p 00043000 08:01 7972275 /lib64/libssl.so.0.9.8b 3f00a43000-3f00a49000 rw-p 00043000 08:01 7972275 /lib64/libssl.so.0.9.8b 3f02000000-3f02133000 r-xp 00000000 08:01 6175181 /usr/lib64/libxml2.so.2.6.26 3f02133000-3f02333000 ---p 00133000 08:01 6175181 /usr/lib64/libxml2.so.2.6.26 3f02333000-3f0233c000 rw-p 00133000 08:01 6175181 /usr/lib64/libxml2.so.2.6.26 3f0233c000-3f0233d000 rw-p 3f0233c000 00:00 0 3f02800000-3f02805000 r-xp 00000000 08:01 7972280 /lib64/libcrypt-2.5.so 3f02805000-3f02a04000 ---p 00005000 08:01 7972280 /lib64/libcrypt-2.5.so 3f02a04000-3f02a05000 r--p 00004000 08:01 7972280 /lib64/libcrypt-2.5.so 3f02a05000-3f02a06000 rw-p 00005000 08:01 7972280 /lib64/libcrypt-2.5.so 3f02a06000-3f02a34000 rw-p 3f02a06000 00:00 0 3f07800000-3f0784f000 r-xp 00000000 08:01 9352576 /usr/lib64/libncurses.so.5.5 3f0784f000-3f07a4e000 ---p 0004f000 08:01 9352576 /usr/lib64/libncurses.so.5.5 3f07a4e000-3f07a5c000 rw-p 0004e000 08:01 9352576 /usr/lib64/libncurses.so.5.5 3f07a5c000-3f07a5d000 rw-p 3f07a5c000 00:00 0 2aaaaaaab000-2aaaaaaaf000 rw-p 2aaaaaaab000 00:00 0 2aaaaaad6000-2aaaaab3b000 rw-p 2aaaaaad6000 00:00 0 2aaaaab3c000-2aaaaabec000 rw-p 2aaaaab3c000 00:00 0 2aaaaabec000-2aaaaabf6000 r-xp 00000000 08:05 12649070 /usr/local/lib/ruby/1.8/x86_64-linux/socket.so 2aaaaabf6000-2aaaaadf6000 ---p 0000a000 08:05 12649070 /usr/local/lib/ruby/1.8/x86_64-linux/socket.so 2aaaaadf6000-2aaaaadf7000 rw-p 0000a000 08:05 12649070 /usr/local/lib/ruby/1.8/x86_64-linux/socket.so 2aaaaadf7000-2aaaaadfb000 r-xp 00000000 08:05 12649051 /usr/local/lib/ruby/1.8/x86_64-linux/stringio.so 2aaaaadfb000-2aaaaaffb000 ---p 00004000 08:05 12649051 /usr/local/lib/ruby/1.8/x86_64-linux/stringio.so 2aaaaaffb000-2aaaaaffc000 rw-p 00004000 08:05 12649051 /usr/local/lib/ruby/1.8/x86_64-linux/stringio.so 2aaaaaffc000-2aaaab018000 r-xp 00000000 08:05 12649067 /usr/local/lib/ruby/1.8/x86_64-linux/syck.so 2aaaab018000-2aaaab217000 ---p 0001c000 08:05 12649067 /usr/local/lib/ruby/1.8/x86_64-linux/syck.so 2aaaab217000-2aaaab218000 rw-p 0001b000 08:05 12649067 /usr/local/lib/ruby/1.8/x86_64-linux/syck.so 2aaaab218000-2aaaab219000 rw-p 2aaaab218000 00:00 0 2aaaab21a000-2aaaab357000 rw-p 2aaaab21a000 00:00 0 2aaaab357000-2aaaab35f000 r-xp 00000000 08:05 12649048 /usr/local/lib/ruby/1.8/x86_64-linux/zlib.so 2aaaab35f000-2aaaab55f000 ---p 00008000 08:05 12649048 /usr/local/lib/ruby/1.8/x86_64-linux/zlib.so 2aaaab55f000-2aaaab560000 rw-p 00008000 08:05 12649048 /usr/local/lib/ruby/1.8/x86_64-linux/zlib.so 2aaaab560000-2aaaab563000 r-xp 00000000 08:05 12649046 /usr/local/lib/ruby/1.8/x86_64-linux/digest.so 2aaaab563000-2aaaab762000 ---p 00003000 08:05 12649046 /usr/local/lib/ruby/1.8/x86_64-linux/digest.so 2aaaab762000-2aaaab763000 rw-p 00002000 08:05 12649046 /usr/local/lib/ruby/1.8/x86_64-linux/digest.so 2aaaab763000-2aaaab766000 r-xp 00000000 08:05 12649054 /usr/local/lib/ruby/1.8/x86_64-linux/digest/sha2.so 2aaaab766000-2aaaab965000 ---p 00003000 08:05 12649054 /usr/local/lib/ruby/1.8/x86_64-linux/digest/sha2.so 2aaaab965000-2aaaab966000 rw-p 00002000 08:05 12649054 /usr/local/lib/ruby/1.8/x86_64-linux/digest/sha2.so 2aaaab966000-2aaaab99f000 r-xp 00000000 08:05 12649058 /usr/local/lib/ruby/1.8/x86_64-linux/openssl.so 2aaaab99f000-2aaaabb9f000 ---p 00039000 08:05 12649058 /usr/local/lib/ruby/1.8/x86_64-linux/openssl.so 2aaaabb9f000-2aaaabba2000 rw-p 00039000 08:05 12649058 /usr/local/lib/ruby/1.8/x86_64-linux/openssl.so 2aaaabba2000-2aaaabba3000 r-xp 00000000 08:05 12649059 /usr/local/lib/ruby/1.8/x86_64-linux/fcntl.so 2aaaabba3000-2aaaabda2000 ---p 00001000 08:05 12649059 /usr/local/lib/ruby/1.8/x86_64-linux/fcntl.so 2aaaabda2000-2aaaabda3000 rw-p 00000000 08:05 12649059 /usr/local/lib/ruby/1.8/x86_64-linux/fcntl.so 2aaaabda3000-2aaaabfdd000 rw-p 2aaaabda3000 00:00 0 2aaaabfdd000-2aaaabfdf000 r-xp 00000000 08:05 12649064 /usr/local/lib/ruby/1.8/x86_64-linux/etc.so 2aaaabfdf000-2aaaac1de000 ---p 00002000 08:05 12649064 /usr/local/lib/ruby/1.8/x86_64-linux/etc.so 2aaaac1de000-2aaaac1df000 rw-p 00001000 08:05 12649064 /usr/local/lib/ruby/1.8/x86_64-linux/etc.so 2aaaac1df000-2aaaac1e4000 r-xp 00000000 08:01 6469194 /home/cleartrip/rails-libs/ct-gems/gems/mongrel-1.1.3/lib/http11.so 2aaaac1e4000-2aaaac3e4000 ---p 00005000 08:01 6469194 /home/cleartrip/rails-libs/ct-gems/gems/mongrel-1.1.3/lib/http11.so 2aaaac3e4000-2aaaac3e5000 rw-p 00005000 08:01 6469194 /home/cleartrip/rails-libs/ct-gems/gems/mongrel-1.1.3/lib/http11.so 2aaaac3e5000-2aaaac3e9000 r-xp 00000000 08:01 6469105 /home/cleartrip/rails-libs/ct-gems/gems/fastthread-1.0.1/lib/fastthread.so 2aaaac3e9000-2aaaac5e8000 ---p 00004000 08:01 6469105 /home/cleartrip/rails-libs/ct-gems/gems/fastthread-1.0.1/lib/fastthread.so 2aaaac5e8000-2aaaac5e9000 rw-p 00003000 08:01 6469105 /home/cleartrip/rails-libs/ct-gems/gems/fastthread-1.0.1/lib/fastthread.so 2aaaac5e9000-2aaaac9eb000 rw-p 2aaaac5e9000 00:00 0 2aaaac9eb000-2aaaac9ef000 r-xp 00000000 08:05 12649045 /usr/local/lib/ruby/1.8/x86_64-linux/strscan.so 2aaaac9ef000-2aaaacbee000 ---p 00004000 08:05 12649045 /usr/local/lib/ruby/1.8/x86_64-linux/strscan.so 2aaaacbee000-2aaaacbef000 rw-p 00003000 08:05 12649045 /usr/local/lib/ruby/1.8/x86_64-linux/strscan.so 2aaaacbef000-2aaaacbf9000 r-xp 00000000 08:05 12649063 /usr/local/lib/ruby/1.8/x86_64-linux/bigdecimal.so 2aaaacbf9000-2aaaacdf9000 ---p 0000a000 08:05 12649063 /usr/local/lib/ruby/1.8/x86_64-linux/bigdecimal.so 2aaaacdf9000-2aaaacdfa000 rw-p 0000a000 08:05 12649063 /usr/local/lib/ruby/1.8/x86_64-linux/bigdecimal.so 2aaaacdfa000-2aaaace36000 r-xp 00000000 08:05 12649050 /usr/local/lib/ruby/1.8/x86_64-linux/nkf.so 2aaaace36000-2aaaad036000 ---p 0003c000 08:05 12649050 /usr/local/lib/ruby/1.8/x86_64-linux/nkf.so 2aaaad036000-2aaaad03a000 rw-p 0003c000 08:05 12649050 /usr/local/lib/ruby/1.8/x86_64-linux/nkf.so 2aaaad03a000-2aaaad03b000 rw-p 2aaaad03a000 00:00 0 2aaaad03c000-2aaaad772000 rw-p 2aaaad03c000 00:00 0 2aaaad772000-2aaaad783000 r-xp 00000000 08:05 12651841 /usr/local/lib/ruby/site_ruby/1.8/x86_64-linux/oci8lib.so 2aaaad783000-2aaaad882000 ---p 00011000 08:05 12651841 /usr/local/lib/ruby/site_ruby/1.8/x86_64-linux/oci8lib.so 2aaaad882000-2aaaad884000 rw-p 00010000 08:05 12651841 /usr/local/lib/ruby/site_ruby/1.8/x86_64-linux/oci8lib.so 2aaaad884000-2aaaad8a7000 rw-p 2aaaad884000 00:00 0 2aaaad8ae000-2aaaad986000 r-xp 00000000 08:01 9374704 /usr/lib64/libruby.so.1.8.5 2aaaad986000-2aaaadb86000 ---p 000d8000 08:01 9374704 /usr/lib64/libruby.so.1.8.5 2aaaadb86000-2aaaadb8b000 rw-p 000d8000 08:01 9374704 /usr/lib64/libruby.so.1.8.5 2aaaadb8b000-2aaaadba9000 rw-p 2aaaadb8b000 00:00 0 2aaaadba9000-2aaaaed60000 r-xp 00000000 08:05 5701727 /usr/local/oracle/libclntsh.so.10.1 2aaaaed60000-2aaaaee60000 ---p 011b7000 08:05 5701727 /usr/local/oracle/libclntsh.so.10.1 2aaaaee60000-2aaaaef01000 rw-p 011b7000 08:05 5701727 /usr/local/oracle/libclntsh.so.10.1 2aaaaef01000-2aaaaef15000 rw-p 2aaaaef01000 00:00 0 2aaaaef15000-2aaaaf206000 r-xp 00000000 08:05 5701635 /usr/local/oracle/libnnz10.so 2aaaaf206000-2aaaaf305000 ---p 002f1000 08:05 5701635 /usr/local/oracle/libnnz10.so 2aaaaf305000-2aaaaf3b5000 rw-p 002f0000 08:05 5701635 /usr/local/oracle/libnnz10.so 2aaaaf3b5000-2aaaaf3b7000 rw-p 2aaaaf3b5000 00:00 0 2aaaaf3b7000-2aaab369a000 r-xp 00000000 08:05 5701724 /usr/local/oracle/libociei.so 2aaab369a000-2aaab379a000 ---p 042e3000 08:05 5701724 /usr/local/oracle/libociei.so 2aaab379a000-2aaab379c000 rw-p 042e3000 08:05 5701724 /usr/local/oracle/libociei.so 2aaab379c000-2aaab37fb000 rw-p 2aaab379c000 00:00 0 2aaab37fb000-2aaab37fc000 r-xp 00000000 08:05 12649053 /usr/local/lib/ruby/1.8/x86_64-linux/digest/md5.so 2aaab37fc000-2aaab39fb000 ---p 00001000 08:05 12649053 /usr/local/lib/ruby/1.8/x86_64-linux/digest/md5.so 2aaab39fb000-2aaab39fc000 rw-p 00000000 08:05 12649053 /usr/local/lib/ruby/1.8/x86_64-linux/digest/md5.so 2aaab39fc000-2aaab39ff000 r-xp 00000000 08:05 12649072 /usr/local/lib/ruby/1.8/x86_64-linux/racc/cparse.so 2aaab39ff000-2aaab3bff000 ---p 00003000 08:05 12649072 /usr/local/lib/ruby/1.8/x86_64-linux/racc/cparse.so 2aaab3bff000-2aaab3c00000 rw-p 00003000 08:05 12649072 /usr/local/lib/ruby/1.8/x86_64-linux/racc/cparse.so 2aaab3c00000-2aaab3c04000 r-xp 00000000 08:05 12649068 /usr/local/lib/ruby/1.8/x86_64-linux/iconv.so 2aaab3c04000-2aaab3e03000 ---p 00004000 08:05 12649068 /usr/local/lib/ruby/1.8/x86_64-linux/iconv.so 2aaab3e03000-2aaab3e04000 rw-p 00003000 08:05 12649068 /usr/local/lib/ruby/1.8/x86_64-linux/iconv.so 2aaab3e04000-2aaab4aff000 rw-p 2aaab3e04000 00:00 0 2aaab4aff000-2aaab4b20000 r-xp 00000000 08:01 6470109 /home/cleartrip/rails-libs/ct-gems/gems/libxml-ruby-0.5.2.0/lib/xml/libxml_so.so 2aaab4b20000-2aaab4d20000 ---p 00021000 08:01 6470109 /home/cleartrip/rails-libs/ct-gems/gems/libxml-ruby-0.5.2.0/lib/xml/libxml_so.so 2aaab4d20000-2aaab4d22000 rw-p 00021000 08:01 6470109 /home/cleartrip/rails-libs/ct-gems/gems/libxml-ruby-0.5.2.0/lib/xml/libxml_so.so 2aaab4d4c000-2aaab4d56000 r-xp 00000000 08:01 7971996 /lib64/libnss_files-2.5.so 2aaab4d56000-2aaab4f55000 ---p 0000a000 08:01 7971996 /lib64/libnss_files-2.5.so 2aaab4f55000-2aaab4f56000 r--p 00009000 08:01 7971996 /lib64/libnss_files-2.5.so 2aaab4f56000-2aaab4f57000 rw-p 0000a000 08:01 7971996 /lib64/libnss_files-2.5.so 2aaab4f57000-2aaab5027000 rw-p 2aaab4f57000 00:00 0 2aaab5027000-2aaab502b000 r-xp 00000000 08:05 12649060 /usr/local/lib/ruby/1.8/x86_64-linux/readline.so 2aaab502b000-2aaab522b000 ---p 00004000 08:05 12649060 /usr/local/lib/ruby/1.8/x86_64-linux/readline.so 2aaab522b000-2aaab522c000 rw-p 00004000 08:05 12649060 /usr/local/lib/ruby/1.8/x86_64-linux/readline.so 2aaab522e000-2aaab5235000 r--s 00000000 08:01 9409795 /usr/lib64/gconv/gconv-modules.cache 2aaab5235000-2aaab5236000 r-xp 00000000 08:01 9409978 /usr/lib64/gconv/ISO8859-1.so 2aaab5236000-2aaab5436000 ---p 00001000 08:01 9409978 /usr/lib64/gconv/ISO8859-1.so 2aaab5436000-2aaab5438000 rw-p 00001000 08:01 9409978 /usr/lib64/gconv/ISO8859-1.so 2aaab8000000-2aaab8021000 rw-p 2aaab8000000 00:00 0 2aaab8021000-2aaabc000000 ---p 2aaab8021000 00:00 0 7fff7ca80000-7fff7cad2000 rwxp 7fff7ca80000 00:00 0 [stack] 7fff7cad2000-7fff7cad4000 rw-p 7fff7cad2000 00:00 0 ffffffffff600000-ffffffffffe00000 ---p 00000000 00:00 0 [vdso] ---------------------------------------------------------------------- Comment By: Saurabh Nanda (saurabhnanda) Date: 2008-02-05 07:17 Message: I think I'm also facing a similar issue. I'm on a 64 bit Intel machine with libxml-ruby-0.5.2. I'm trying to write a long running RESTful service in Rails. After the first few XML POSTs to the Rails server, it suddenly segfaults. I can attach the error log. How do I attach a file? ---------------------------------------------------------------------- Comment By: Dan Janowski (danj) Date: 2007-08-30 07:16 Message: There is a new memory model released but I do not have this system combo to test. Please take a few minutes and go to the project page and download the MEM2 release 0.5.0 and run the rwtest/doc_file.rb from the 'ext' directory (to use the local build instead of a system installed libxml). Please follow up. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=8337&group_id=494 _______________________________________________ libxml-devel mailing list libxml-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/libxml-devel