[#1378] differences between Module and Class ? — Mathieu Bouchard <matju@...>

25 messages 2003/08/11
[#1387] Re: differences between Module and Class ? — matz@... (Yukihiro Matsumoto) 2003/08/12

Hi,

[#1442] Re: differences between Module and Class ? — Mathieu Bouchard <matju@...> 2003/08/21

[#1406] _id2ref bug? — Ryan Pavlik <rpav@...>

While debugging some caching code, I've come across a segfault related

22 messages 2003/08/14
[#1407] Re: _id2ref bug? — matz@... (Yukihiro Matsumoto) 2003/08/14

Hi,

[#1413] Re: _id2ref bug? (REPRODUCED, short) — Ryan Pavlik <rpav@...> 2003/08/14

On Fri, 15 Aug 2003 01:57:18 +0900

Re: _id2ref bug? (another break)

From: Ryan Pavlik <rpav@...>
Date: 2003-08-15 02:37:42 UTC
List: ruby-core #1416
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 <rpav@users.sf.net> 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, <something>" or "0, <something>".

-- 
Ryan Pavlik <rpav@users.sf.net>

"I distinctly remember dancing on your grave." - 8BT

In This Thread