Bugs item #29140, was opened at 2011-04-21 07:46 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=29140&group_id=494
Category: memory Group: None >Status: Closed Resolution: Accepted Priority: 3 Submitted By: James Pharaoh (jamespharaoh) Assigned to: Charlie Savage (cfis) Summary: segfaults randomly Initial Comment: I am getting segfaults pretty regularly in my ruby 1.9.1 webrick application. They are always in a block which is accessing libxml nodes. Here's an example, I can add more as I get them, or provide any other help solving this. I don't really know where to start. /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/home.rb:15: [BUG] Segmentation fault ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux] -- control frame ---------- c:0019 p:---- s:0088 b:0088 l:000087 d:000087 CFUNC :[] c:0018 p:0015 s:0084 b:0084 l:000074 d:000083 BLOCK /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/home.rb:15 c:0017 p:---- s:0080 b:0080 l:000079 d:000079 FINISH c:0016 p:---- s:0078 b:0078 l:000077 d:000077 CFUNC :sort! c:0015 p:0063 s:0075 b:0075 l:000074 d:000074 METHOD /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/home.rb:15 c:0014 p:0188 s:0069 b:0069 l:000068 d:000068 METHOD /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/consolehandler.rb:10 c:0013 p:0078 s:0062 b:0062 l:000620 d:000061 BLOCK /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/server.rb:92 c:0012 p:---- s:0059 b:0059 l:000058 d:000058 FINISH c:0011 p:---- s:0057 b:0057 l:000056 d:000056 CFUNC :catch c:0010 p:0148 s:0053 b:0053 l:000620 d:002360 BLOCK /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/server.rb:86 c:0009 p:---- s:0048 b:0048 l:000047 d:000047 FINISH c:0008 p:---- s:0046 b:0046 l:000045 d:000045 CFUNC :call c:0007 p:0017 s:0041 b:0041 l:000040 d:000040 METHOD /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/server.rb:16 c:0006 p:0056 s:0036 b:0036 l:000035 d:000035 METHOD /usr/lib/ruby/1.9.1/webrick/httpservlet/abstract.rb:35 c:0005 p:0257 s:0030 b:0030 l:000029 d:000029 METHOD /usr/lib/ruby/1.9.1/webrick/httpserver.rb:111 c:0004 p:0393 s:0020 b:0020 l:000019 d:000019 METHOD /usr/lib/ruby/1.9.1/webrick/httpserver.rb:70 c:0003 p:0126 s:0009 b:0009 l:000c18 d:000008 BLOCK /usr/lib/ruby/1.9.1/webrick/server.rb:183 c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH c:0001 p:---- s:0002 b:0002 l:000001 d:000001 TOP --------------------------- -- Ruby level backtrace information ---------------------------------------- /usr/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread' /usr/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run' /usr/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service' /usr/lib/ruby/1.9.1/webrick/httpservlet/abstract.rb:35:in `service' /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/server.rb:16:in `do_GET' /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/server.rb:16:in `call' /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/server.rb:86:in `block in run' /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/server.rb:86:in `catch' /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/server.rb:92:in `block (2 levels) in run' /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/consolehandler.rb:10:in `handle' /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/home.rb:15:in `handle' /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/home.rb:15:in `sort!' /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/home.rb:15:in `block in handle' /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/home.rb:15:in `[]' *** glibc detected *** ruby1.9.1: malloc(): memory corruption: 0x000000000325bc00 *** ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2011-05-02 00:30 Message: Hi James, I am going to close this issue since I believe it is fixed. Please reopen on Github if needed. See https://github.com/xml4r/libxml-ruby Thanks - Charlie ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2011-04-22 21:23 Message: Have you updated to the latest libxml version? What is the ruby code you are using? And what data is it trying to parse? Thanks - Charlie ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=29140&group_id=494 _______________________________________________ libxml-devel mailing list libxml-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/libxml-devel