[#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: nobu.nokada@...
Date: 2003-08-16 12:54:10 UTC
List: ruby-core #1430
Hi,

At Sat, 16 Aug 2003 20:08:44 +0900,
ts wrote:
> n> Ryan is correct.
> 
>  not for me. There is a difference between protecting ruby againt coredump
>  and writing stupid code.

I agree that the protection should work.

> n>   $ ruby -e 'x = ""; eval("x"); y = ""; x = [x.id, y.id]; x.min.step(x.max, 10){|i| p ObjectSpace._id2ref(i)}'
> 
>  I'll never trust a module which have such code, and I hope that *no*
>  modules in the standard distribution do something like this.

I know nothing about his code, and this is pure ruby code.  It
means that the protection doesn't work enough correctly now.

-- 
Nobu Nakada

In This Thread

Prev Next