Oh, yeah. Sorry about that. :) Here's what happens when I run it: # ./test.rb ./test.rb:6: [BUG] Segmentation fault ruby 1.8.4 (2005-12-24) [i486-linux]
Aborted When I use gdb, alas I have no debug symbols, but here's what "where" gets me: (gdb) run ./test.rb Starting program: /usr/bin/ruby ./test.rb (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread -1210898752 (LWP 15413)] (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1210898752 (LWP 15413)] 0xb7cf48d2 in ruby_xml_attr_name_get () from /usr/lib/ruby/1.8/i486-linux/xml/libxml.so (gdb) where #0 0xb7cf48d2 in ruby_xml_attr_name_get () from /usr/lib/ruby/1.8/i486-linux/xml/libxml.so #1 0xb7ee85bb in rb_iterator_p () from /usr/lib/libruby1.8.so.1.8 #2 0xb7ef3089 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8 #3 0xb7ef3aef in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8 #4 0xb7ef075b in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8 #5 0xb7ef056b in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8 #6 0xb7efd6ca in rb_eval_string () from /usr/lib/libruby1.8.so.1.8 #7 0xb7efd71a in ruby_exec () from /usr/lib/libruby1.8.so.1.8 #8 0xb7eff82e in ruby_run () from /usr/lib/libruby1.8.so.1.8 #9 0x080485dc in main () (gdb) So, it looks like a bug in libxml, not in ruby proper. Since it is easy to reproduce, you may get more info from a debug build. -- Ruby crash with libxml https://launchpad.net/bugs/76659 -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
