From: Akinori MUSHA Date: 2008-05-31T00:47:27+09:00 Subject: Re: unexpected return using define_method --pgp-sign-Multipart_Sat_May_31_00:47:44_2008-1 Content-Type: text/plain; charset=US-ASCII At Fri, 30 May 2008 22:49:31 +0900, ts wrote: > Akinori MUSHA wrote: > > You can always look into bootstraptest/test_knownbug.rb for known > > bugs. > > Well I don't think that all known bugs are in this file, some > are in ruby-bugs. True, and you can always ask ko1 to add a longstanding bug that's caused by the core engine. I'm planning to add a known bug list for each branch. 1.8 has some known bugs that I cannot take the time to fix. > > There is already a proposed patch for the latter issue, which is going > > to be committed soon. cf. [ruby-dev:34658] > > vgs% svn diff vm_insnhelper.c > Index: vm_insnhelper.c > =================================================================== > --- vm_insnhelper.c (revision 16703) > +++ vm_insnhelper.c (working copy) > @@ -1230,7 +1230,7 @@ > if (VM_FRAME_TYPE(cfp) == FRAME_MAGIC_LAMBDA) { > /* lambda{... break ...} */ > is_orphan = 0; > - pt = dfp; > + pt = GC_GUARDED_PTR_REF((VALUE *) *dfp); > } > else { > dfp = GC_GUARDED_PTR_REF((VALUE *) *dfp); > vgs% > > vgs% /usr/bin/ruby -e 'def b(a) a.call; p :ok; end; b(lambda{break})' > :ok > vgs% > > vgs% ./ruby -e 'def b(a) a.call; p :ok; end; b(lambda{break})' > vgs% It's time to update test_knownbug.rb... -- Akinori MUSHA / http://akinori.org/ --pgp-sign-Multipart_Sat_May_31_00:47:44_2008-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEABECAAYFAkhAIaAACgkQkgvvx5/Z4e7KJQCfRVBXSPsCEN8i0laByxtL1ira 0MYAmwWRJ7mI5f9LO+/5mcJ6ZRvL/wJw =5xNu -----END PGP SIGNATURE----- --pgp-sign-Multipart_Sat_May_31_00:47:44_2008-1--