From: "Mauricio Fernández" Date: 2003-03-03T03:33:11+09:00 Subject: Re: [BUG] gc_sweep(): unknown data type 48 On Sun, Mar 02, 2003 at 12:55:48AM +0900, Yukihiro Matsumoto wrote: > Hi, > > In message "Re: [BUG] gc_sweep(): unknown data type 48" > on 03/03/01, Mauricio Fern�ndez writes: > > |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): > > Thank you. It seems a bug that Nobu already fixed recently. Try the > latest stable-snapshot (or ruby_1_6 branch in the CVS), and see how it > goes. > > Wed Feb 26 00:02:41 2003 Nobuyoshi Nakada > > * string.c (rb_str_dup): set FL_EXIVAR when copied generic ivar. > (ruby-bugs-ja:PR#400) > I finally found a way to reproduce the bug with some predictability (it only happens when Ruby is compiled with gcc 3.2; could it be that the compiler is broken?). If it is a bug, it is a new one. Converting /tmp/tst1.html ./dict.rb:316: [BUG] gc_sweep(): unknown data type 28 ruby 1.6.8 (2003-02-28) [i386-linux] This time I got a core dump with all the info: #0 0x40094c01 in kill () from /lib/libc.so.6 #1 0x40094a12 in raise () from /lib/libc.so.6 #2 0x40095c3e in abort () from /lib/libc.so.6 #3 0x080ad77a in rb_bug (fmt=0x80b1300 "gc_sweep(): unknown data type %d") at error.c:180 #4 0x08066fbf in obj_free (obj=1075318916) at gc.c:949 #5 0x08066d61 in gc_sweep () at gc.c:767 #6 0x080671d2 in rb_gc () at gc.c:1076 #7 0x08065fad in ruby_xmalloc (size=1024) at gc.c:94 #8 0x08088d69 in ruby_re_compile_pattern (pattern=0x84d4168 "^250", size=4, bufp=0x84d4178) at regex.c:2416 #9 0x08085f6a in make_regexp (s=0x84d4168 "^250", len=4, flag=0) at re.c:400 #10 0x08086b74 in rb_reg_initialize (obj=1075579232, s=0x84d4168 "^250", len=4, options=0) at re.c:866 #11 0x08086c94 in rb_reg_new (s=0x84d4168 "^250", len=4, options=0) at re.c:886 ..... What more info can I give you? -- _ _ | |__ __ _| |_ ___ _ __ ___ __ _ _ __ | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ | |_) | (_| | |_\__ \ | | | | | (_| | | | | |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_| Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com We come to bury DOS, not to praise it. -- Paul Vojta, vojta@math.berkeley.edu