From: "Mauricio Fernández" Date: 2003-03-01T22:32:50+09:00 Subject: Re: [BUG] gc_sweep(): unknown data type 48 On Sat, Mar 01, 2003 at 07:26:58PM +0900, nobu.nokada@softhome.net wrote: > Hi, > > At Sat, 1 Mar 2003 19:12:40 +0900, > Mauricio Fern�ndez wrote: > > Just wanted to know if the above error indicates for sure (1) a bug in Ruby > > or (2) if I could be causing it by having something wrong in my code (say, > > wrt. to threading and synchronization issues). > > I guess it should be (1), a bug around GC. > > > If it is (1) I could try to isolate the error, but it won't be easy for > > the fore mentioned reasons. The source code as it stands now wouldn't be > > very helpful as it isn't really small enough (~ 900 locs). > > Do you have core at the crash? Finally got one. It's 8MB, but I'm using the following script to try to make Ruby dump a smaller core: loop do `cp /tmp/SPIEGEL\ ONLINE.html /tmp/tst1.html` `ruby wwwhints.rb /tmp/tst1.html` if $? != 0 # have a core, yuppie `mv core co/core.#{Time.new.to_i}` end end [please tell me if this can affect in any undesirable way the generated core] I will try to get a core from a binary with debug information. Here's some info from gdb (sorry, have no debug info yet, will work on it): (gdb) where #0 0x4012fc01 in kill () from /lib/libc.so.6 #1 0x4012fa12 in raise () from /lib/libc.so.6 #2 0x40130c3e in abort () from /lib/libc.so.6 #3 0x4003389d in rb_bug () from /usr/lib/libruby.so.1.6 #4 0x400810b7 in ruby_posix_signal () from /usr/lib/libruby.so.1.6 #5 0x4012fb88 in sigaction () from /lib/libc.so.6 #6 0x4008f9ba in rb_free_generic_ivar () from /usr/lib/libruby.so.1.6 #7 0x4004e02d in rb_gc_force_recycle () from /usr/lib/libruby.so.1.6 #8 0x4004dc05 in rb_gc_mark () from /usr/lib/libruby.so.1.6 #9 0x4004e1dc in rb_gc () from /usr/lib/libruby.so.1.6 #10 0x4004cc65 in ruby_xmalloc () from /usr/lib/libruby.so.1.6 #11 0x40073a11 in ruby_re_compile_pattern () from /usr/lib/libruby.so.1.6 #12 0x40070761 in rb_reg_mbclen2 () from /usr/lib/libruby.so.1.6 #13 0x400714d5 in rb_reg_match_last () from /usr/lib/libruby.so.1.6 #14 0x4007160c in rb_reg_new () from /usr/lib/libruby.so.1.6 #15 0x4003ac2b in rb_alias () from /usr/lib/libruby.so.1.6 #16 0x4003aa2b in rb_alias () from /usr/lib/libruby.so.1.6 #17 0x400389ab in rb_alias () from /usr/lib/libruby.so.1.6 #18 0x4003865a in rb_alias () from /usr/lib/libruby.so.1.6 #19 0x40038edb in rb_alias () from /usr/lib/libruby.so.1.6 #20 0x4003ec4e in rb_stack_check () from /usr/lib/libruby.so.1.6 #21 0x4003f13c in rb_stack_check () from /usr/lib/libruby.so.1.6 #22 0x4003a012 in rb_alias () from /usr/lib/libruby.so.1.6 #23 0x400399b8 in rb_alias () from /usr/lib/libruby.so.1.6 #24 0x400397b5 in rb_alias () from /usr/lib/libruby.so.1.6 #25 0x4003865a in rb_alias () from /usr/lib/libruby.so.1.6 #26 0x4003cccd in rb_iterator_p () from /usr/lib/libruby.so.1.6 #27 0x40047a13 in rb_thread_scope_shared_p () from /usr/lib/libruby.so.1.6 #28 0x400478f1 in rb_thread_stop_timer () from /usr/lib/libruby.so.1.6 #29 0x40047ac0 in rb_thread_scope_shared_p () from /usr/lib/libruby.so.1.6 #30 0x4003e58d in rb_stack_check () from /usr/lib/libruby.so.1.6 #31 0x4003e929 in rb_stack_check () from /usr/lib/libruby.so.1.6 #32 0x4003f13c in rb_stack_check () from /usr/lib/libruby.so.1.6 #33 0x4003f48d in rb_funcall2 () from /usr/lib/libruby.so.1.6 #34 0x400417e1 in rb_obj_call_init () from /usr/lib/libruby.so.1.6 #35 0x40047a4c in rb_thread_scope_shared_p () from /usr/lib/libruby.so.1.6 #36 0x4003e58d in rb_stack_check () from /usr/lib/libruby.so.1.6 ---Type to continue, or q to quit--- #37 0x4003e929 in rb_stack_check () from /usr/lib/libruby.so.1.6 #38 0x4003f13c in rb_stack_check () from /usr/lib/libruby.so.1.6 #39 0x4003a012 in rb_alias () from /usr/lib/libruby.so.1.6 #40 0x400393cd in rb_alias () from /usr/lib/libruby.so.1.6 -- _ _ | |__ __ _| |_ ___ _ __ ___ __ _ _ __ | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ | |_) | (_| | |_\__ \ | | | | | (_| | | | | |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_| Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com Not only Guinness - Linux is good for you, too. -- Banzai on IRC