[#413] Should we check alloca ret val? — Michal Rokos <m.rokos@...>
Hi,
7 messages
2002/09/03
[#441] Patch to add a Module#const_missing method — JanArne.Petersen@... (Jan Arne Petersen)
Hi,
11 messages
2002/09/05
[#443] Re: Patch to add a Module#const_missing method
— matz@... (Yukihiro Matsumoto)
2002/09/06
Hi,
[#444] io_write()/fwrite() and EINTR on Solaris — Jos Backus <jos@...>
I am encountering a problem similar to the one mentioned here,
19 messages
2002/09/06
[#453] Re: io_write()/fwrite() and EINTR on Solaris
— nobu.nokada@...
2002/09/08
Hi,
[#454] Re: io_write()/fwrite() and EINTR on Solaris
— matz@... (Yukihiro Matsumoto)
2002/09/09
Hi
[#469] Re: io_write()/fwrite() and EINTR on Solaris
— Jos Backus <jos@...>
2002/09/09
On Mon, Sep 09, 2002 at 03:55:13PM +0900, Yukihiro Matsumoto wrote:
[#479] Re: io_write()/fwrite() and EINTR on Solaris
— Jos Backus <jos@...>
2002/09/10
On Tue, Sep 10, 2002 at 01:04:10AM +0900, Jos Backus wrote:
[#492] Re: io_write()/fwrite() and EINTR on Solaris
— Jos Backus <jos@...>
2002/09/21
On Wed, Sep 11, 2002 at 02:23:33AM +0900, Jos Backus wrote:
[#495] Re: io_write()/fwrite() and EINTR on Solaris
— nobu.nokada@...
2002/09/21
Hi,
[#496] Re: io_write()/fwrite() and EINTR on Solaris
— Jos Backus <jos@...>
2002/09/21
Hello,
[#564] Re: io_write()/fwrite() and EINTR on Solaris
— Jos Backus <jos@...>
2002/11/06
On Sun, Sep 22, 2002 at 04:24:31AM +0900, Jos Backus wrote:
[#566] Re: io_write()/fwrite() and EINTR on Solaris
— nobu.nokada@...
2002/11/07
Hi,
[#567] Re: io_write()/fwrite() and EINTR on Solaris
— Jos Backus <jos@...>
2002/11/07
On Thu, Nov 07, 2002 at 01:43:03PM +0900, nobu.nokada@softhome.net wrote:
[#568] Re: io_write()/fwrite() and EINTR on Solaris
— nobu.nokada@...
2002/11/07
Hi,
[#569] Re: io_write()/fwrite() and EINTR on Solaris
— Jos Backus <jos@...>
2002/11/07
On Thu, Nov 07, 2002 at 03:49:51PM +0900, nobu.nokada@softhome.net wrote:
[#449] ruby.h, string.c — Michal Rokos <m.rokos@...>
Hello,
7 messages
2002/09/06
[#459] Parse.y — Michal Rokos <m.rokos@...>
Hi,
6 messages
2002/09/09
[#461] Related to [Memleak] in sprintf.c — Michal Rokos <m.rokos@...>
Hi,
5 messages
2002/09/09
[#508] can java applications invoke ruby scripts?? — "John Davis" <javaccnews@...>
I want to know if Java applications can invoke ruby scripts?? In other
8 messages
2002/09/26
Allocate crash loop hole.
From:
"Christoph" <chr_news@...>
Date:
2002-09-03 17:58:49 UTC
List:
ruby-core #421
Hi,
Ruby's current (admittedly pointless) ability to instantiate
``higher order'' meta classes bunches a hole in the new
defenses around the allocate frame work. The following script
segfaults on ruby 1.7.3 (2002-08-29) [i386-mswin32]. (Also see
[ruby-talk: 38612]). Maybe this is a good enough reason to
to identify Class and Object.meta(1)?
---
class Object
def meta(n)
n.zero? ? self : \
class << self; self end.meta(n-1)
end
end
Odd = 19
Even = 12
CrashClass = Class.meta(Odd).allocate
Class.meta(Even).allocate rescue puts "bad" # bad
CrashClass.allocate rescue puts "bad" # bad
p CrashClass.type # Class
p CrashClass.superclass # nil
# CrashClass can instantiate working classes - weird!
A = CrashClass.new
B = CrashClass.new
class A
def okay; 'okay' end
end
p A.superclass == Object # true
p A == B # false
p A.new.okay # okay
def CrashClass.okay20; p 'fine' end
A.meta(18).okay20 rescue p 'bad' # bad
A.meta(21).okay20 rescue p 'bad' # bad
A.meta(30).okay20 # fine
begin
class CrashClass
end
rescue TypeError => mes
p mes #<TypeError: CrashClass is not a class>
end
# however this will crash
CrashClass.class_eval {
def crash; end
}
---
/Christoph