[#15707] Schedule for the 1.8.7 release — "Akinori MUSHA" <knu@...>

Hi, developers,

21 messages 2008/03/01

[#15740] Copy-on-write friendly garbage collector — Hongli Lai <hongli@...99.net>

Hi.

31 messages 2008/03/03
[#15742] Re: Copy-on-write friendly garbage collector — Yukihiro Matsumoto <matz@...> 2008/03/03

Hi,

[#15829] Re: Copy-on-write friendly garbage collector — Daniel DeLorme <dan-ml@...42.com> 2008/03/08

Yukihiro Matsumoto wrote:

[#15756] embedding Ruby 1.9.0 inside pthread — "Suraj Kurapati" <sunaku@...>

Hello,

18 messages 2008/03/03
[#15759] Re: embedding Ruby 1.9.0 inside pthread — Nobuyoshi Nakada <nobu@...> 2008/03/04

Hi,

[#15760] Re: embedding Ruby 1.9.0 inside pthread — Yukihiro Matsumoto <matz@...> 2008/03/04

Hi,

[#15762] Re: embedding Ruby 1.9.0 inside pthread — "Suraj N. Kurapati" <sunaku@...> 2008/03/04

Yukihiro Matsumoto wrote:

[#15783] Adding startup and shutdown to Test::Unit — Daniel Berger <Daniel.Berger@...>

Hi all,

15 messages 2008/03/04

[#15835] TimeoutError in core, timeouts for ConditionVariable#wait — MenTaLguY <mental@...>

I've been reworking JRuby's stdlib to improve performance and fix

10 messages 2008/03/09

[#15990] Recent changes in Range#step behavior — "Vladimir Sizikov" <vsizikov@...>

Hi,

35 messages 2008/03/23
[#15991] Re: Recent changes in Range#step behavior — Dave Thomas <dave@...> 2008/03/23

[#15993] Re: Recent changes in Range#step behavior — "Vladimir Sizikov" <vsizikov@...> 2008/03/23

Hi Dave,

[#15997] Re: Recent changes in Range#step behavior — Dave Thomas <dave@...> 2008/03/23

[#16024] Re: Recent changes in Range#step behavior — "Vladimir Sizikov" <vsizikov@...> 2008/03/26

Hi Dave,

[#16025] Re: Recent changes in Range#step behavior — Yukihiro Matsumoto <matz@...> 2008/03/26

Hi,

[#16026] Re: Recent changes in Range#step behavior — Dave Thomas <dave@...> 2008/03/26

[#16027] Re: Recent changes in Range#step behavior — Yukihiro Matsumoto <matz@...> 2008/03/26

Hi,

[#16029] Re: Recent changes in Range#step behavior — Dave Thomas <dave@...> 2008/03/26

[#16030] Re: Recent changes in Range#step behavior — Yukihiro Matsumoto <matz@...> 2008/03/26

Hi,

[#16031] Re: Recent changes in Range#step behavior — Dave Thomas <dave@...> 2008/03/26

[#16032] Re: Recent changes in Range#step behavior — "Vladimir Sizikov" <vsizikov@...> 2008/03/26

On Wed, Mar 26, 2008 at 7:01 PM, Dave Thomas <dave@pragprog.com> wrote:

[#16033] Re: Recent changes in Range#step behavior — Dave Thomas <dave@...> 2008/03/26

[#16041] Re: Recent changes in Range#step behavior — David Flanagan <david@...> 2008/03/26

Dave Thomas wrote:

bootstrap/test_knownbug.rb

From: ts <decoux@...>
Date: 2008-03-01 13:59:46 UTC
List: ruby-core #15711
 I think that it's useless to add [ruby-core:15551] in test_knownbug.rb
 because this is a similar problem to [ruby-core:14813], i.e the fix for
 14813 will resolve 15551 if I'm right

 Perhaps best to add [ruby-bug:16493] which can be written like this


vgs% cat b.rb
def a
   Module.new do
      def foo
         super
      end
   end
end

M = a
N = a

class C
  include M
end
C.new.foo
vgs%
 
vgs% ./ruby -v b.rb
ruby 1.9.0 (2008-03-01 revision 15664) [i686-linux]
b.rb:4:in `foo': stack level too deep (SystemStackError)
	from b.rb:4:in `foo'
	from b.rb:4:in `foo'
	from b.rb:4:in `foo'
	from b.rb:4:in `foo'
	from b.rb:4:in `foo'
	from b.rb:4:in `foo'
	from b.rb:4:in `foo'
	from b.rb:4:in `foo'
	 ... 7692 levels...
	from b.rb:4:in `foo'
	from b.rb:4:in `foo'
	from b.rb:4:in `foo'
	from b.rb:15:in `<main>'
vgs% 

 Change 'M = a; N =a' with 'N = a; M = a' and it will work.

 Perhaps best, also, to add [ruby-bug:16625] (#class_eval is useless)
 it can be written

vgs% cat b.rb
class Foo
  def call_it
    p = Proc.new
    p.call
  end
end

def give_it
  lambda { puts 'bar' }
end

f = Foo.new
a_proc = give_it
f.call_it(&a_proc)
vgs% 

vgs% ./ruby b.rb
b.rb:3: [BUG] Segmentation fault
ruby 1.9.0 (2008-03-01 revision 15664) [i686-linux]

-- control frame ----------
c:0005 p:---- s:0015 b:0015 l:000014 d:000014 CFUNC  :new
c:0004 p:0013 s:0012 b:0012 l:000011 d:000011 METHOD b.rb:3
c:0003 p:0046 s:0008 b:0008 l:000007 d:000007 TOP    b.rb:14
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH :inherited
c:0001 p:0000 s:0002 b:0002 l:000001 d:000001 TOP    <dummy toplevel>:17
---------------------------
DBG> : "b.rb:3:in `call_it'"
DBG> : "b.rb:14:in `<main>'"
-- backtrace of native function call (Use addr2line) --
0x80f58ea
0x8114ffc
0x811506b
0x80c4550
0xffffe440
0x8063361
0x80ebf66
0x80f417b
0x80efd70
0x80f3459
0x80f377d
0x805d2e8
0x806132a
0x805ad80
0xb7e12050
0x805acb1
-------------------------------------------------------
Aborted (core dumped)
vgs% 


Guy Decoux


In This Thread

Prev Next