[#2529] concerns about Proc,lambda,block — "David A. Black" <dblack@...>

Hi --

39 messages 2004/03/01
[#2531] Re: concerns about Proc,lambda,block — ts <decoux@...> 2004/03/01

>>>>> "D" == David A Black <dblack@wobblini.net> writes:

[#2533] Re: concerns about Proc,lambda,block — "David A. Black" <dblack@...> 2004/03/01

Hi --

[#2537] Re: concerns about Proc,lambda,block — matz@... (Yukihiro Matsumoto) 2004/03/01

Hi,

[#2542] Re: concerns about Proc,lambda,block — Mathieu Bouchard <matju@...> 2004/03/02

[#2545] Re: concerns about Proc,lambda,block — matz@... (Yukihiro Matsumoto) 2004/03/02

Hi,

[#2550] Re: concerns about Proc,lambda,block — Mauricio Fern疣dez <batsman.geo@...> 2004/03/03

On Wed, Mar 03, 2004 at 07:51:10AM +0900, Yukihiro Matsumoto wrote:

[#2703] Proposed patch to add SSL support to net/pop.rb — Daniel Hobe <daniel@...>

This patch adds support to Net::POP for doing POP over SSL. Modeled on how

19 messages 2004/03/27
[#2704] Re: Proposed patch to add SSL support to net/pop.rb — Daniel Hobe <daniel@...> 2004/03/27

This is v2 of the patch. Cleaned up a bit and added some more docs.

[#2707] Re: Proposed patch to add SSL support to net/pop.rb — Daniel Hobe <daniel@...> 2004/03/28

v3 of the patch:

[#2721] Re: Proposed patch to add SSL support to net/pop.rb — Minero Aoki <aamine@...> 2004/03/30

Hi,

Re: bus error in eval.c

From: Ryan Davis <ryand@...>
Date: 2004-03-10 04:59:09 UTC
List: ruby-core #2621
On Mar 9, 2004, at 8:44 PM, Ryan Davis wrote:

> I found a bus error while debugging a pathological case between 1.6 
> and 1.8 that makes my code run 100x slower in 1.8. I think I have the 
> proper patch for it. WOOT. I just found the minimally reproducible 
> test case:
>
> 	class Hash
> 	  alias :old_inspect :inspect
> 	  def inspect
> 	    raise "no"
> 	  end
> 	end
>
> 	eval "{}.blah"
>
> I've gotten this to work on ruby 1.8.1 (from cvs) on both 
> macosx/darwin and freebsd.

I messed up my fix. Correct version is most likely:

diff -d -u -r1.616.2.14 eval.c
--- eval.c      25 Feb 2004 00:38:35 -0000      1.616.2.14
+++ eval.c      10 Mar 2004 04:57:47 -0000
@@ -6047,11 +6047,13 @@

                 errat = get_backtrace(ruby_errinfo);
                 mesg  = rb_attr_get(ruby_errinfo, rb_intern("mesg"));
-               if (!NIL_P(mesg) && TYPE(mesg) == T_STRING) {
+               if (!NIL_P(errat) && TYPE(errat) == T_ARRAY) {
+                 if (!NIL_P(mesg) && TYPE(mesg) == T_STRING) {
                     rb_str_update(mesg, 0, 0, rb_str_new2(": "));
                     rb_str_update(mesg, 0, 0, RARRAY(errat)->ptr[0]);
+                 }
+                 RARRAY(errat)->ptr[0] = RARRAY(backtrace(-2))->ptr[0];
                 }
-               RARRAY(errat)->ptr[0] = RARRAY(backtrace(-2))->ptr[0];
             }
             rb_exc_raise(ruby_errinfo);
         }


In This Thread