From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (8.12.3+3.5Wbeta/8.12.6/Debian-8) with ESMTP id h7F2W4Gc031423; Fri, 15 Aug 2003 11:32:04 +0900 Received: from funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [133.44.2.201]) by kankan.nagaokaut.ac.jp (Postfix) with SMTP id A5B8058BC; Fri, 15 Aug 2003 11:37:45 +0900 (JST) Received: from helium.ruby-lang.org (helium.ruby-lang.org [210.251.121.214]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id 7B56463002D; Fri, 15 Aug 2003 11:37:43 +0900 (JST) Received: from helium.ruby-lang.org (localhost [127.0.0.1]) by helium.ruby-lang.org (Postfix) with ESMTP id 046D5ACC; Fri, 15 Aug 2003 11:37:43 +0900 (JST) Received: from users.sf.net (12-212-88-204.client.attbi.com [12.212.88.204]) by helium.ruby-lang.org (Postfix) with ESMTP id 39074AAF for ; Fri, 15 Aug 2003 11:37:42 +0900 (JST) Received: from central.localdomain (localhost [127.0.0.1]) by users.sf.net (Postfix) with SMTP id 51387207724 for ; Thu, 14 Aug 2003 22:37:40 -0400 (EDT) Date: Fri, 15 Aug 2003 11:37:42 +0900 Posted: Thu, 14 Aug 2003 19:37:40 -0700 From: Ryan Pavlik Reply-To: ruby-core@ruby-lang.org Subject: Re: _id2ref bug? (another break) To: ruby-core@ruby-lang.org Message-Id: <20030814193740.3a5948e1.rpav@users.sf.net> In-Reply-To: <1060906889.631559.29136.nullmailer@picachu.netlab.jp> References: <20030814094459.1c21fa19.rpav@users.sf.net> <1060880235.666474.27392.nullmailer@picachu.netlab.jp> <20030814110915.31f8f04d.rpav@users.sf.net> <1060906889.631559.29136.nullmailer@picachu.netlab.jp> X-ML-Name: ruby-core X-Mail-Count: 01416 X-MLServer: fml [fml 4.0.3 release (20011202/4.0.3)]; post only (only members can post) X-ML-Info: If you have a question, send e-mail with the body "help" (without quotes) to the address ruby-core-ctl@ruby-lang.org; help= X-Mailer: Sylpheed version 0.9.3 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-Id: ruby-core.ruby-lang.org List-Software: fml [fml 4.0.3 release (20011202/4.0.3)] List-Post: List-Owner: List-Help: List-Unsubscribe: X-Virus-Scanned: by AMaViS perl-10 On Fri, 15 Aug 2003 09:21:39 +0900 matz@ruby-lang.org (Yukihiro Matsumoto) wrote: > Hi, > > In message "Re: _id2ref bug? (REPRODUCED, short)" > on 03/08/15, Ryan Pavlik writes: > > |I was wrong, here's a short example that reproduces the problem exactly. > > Thank you. This is what I need. The following patch should fix the > problem. > > matz. Thanks... fixes my example great. Unfortunately it's still a problem in the full code, but maybe this will help. In gc.c right above the patch: printf("id2ref - %d, %d\n", BUILTIN_TYPE(ptr), RBASIC(ptr)->klass); When running: id2ref - 63, 135382017 /usr/local/encap/mephle-0.8.0/share/mephle/Driver/Storage_cache.rb:36: [BUG] Segmentation fault All of the others result in "2, " or "0, ". -- Ryan Pavlik "I distinctly remember dancing on your grave." - 8BT