[#11073] segfault printing instruction sequence for iterator — <noreply@...>

Bugs item #10527, was opened at 2007-05-02 14:42

14 messages 2007/05/02
[#11142] Re: [ ruby-Bugs-10527 ] segfault printing instruction sequence for iterator — Nobuyoshi Nakada <nobu@...> 2007/05/10

Hi,

[#11188] Re: [ ruby-Bugs-10527 ] segfault printing instruction sequence for iterator — Paul Brannan <pbrannan@...> 2007/05/16

On Thu, May 10, 2007 at 04:51:18PM +0900, Nobuyoshi Nakada wrote:

[#11234] Planning to release 1.8.6 errata — Urabe Shyouhei <shyouhei@...>

Hi all.

17 messages 2007/05/25

rdoc patches

From: Joel VanderWerf <vjoel@...>
Date: 2007-05-13 20:15:34 UTC
List: ruby-core #11166
The two patches described here:

http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/7647
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/7651

were never applied (as far as 1.8.6, anyway). They fix multiline 
constants and "---" (hline) in plain text files. Is it possible to get 
them in?

The patches were for 1.8.4. The second one is still correct for 1.8.6. 
The first one should be corrected for 1.8.6 as follows:

--- parsers/parse_rb.rb.bck     2007-05-13 13:04:13.000000000 -0700
+++ parsers/parse_rb.rb 2007-05-13 13:04:13.000000000 -0700
@@ -1848,9 +1848,9 @@
          case tk
          when TkSEMICOLON
            break
-        when TkLPAREN, TkfLPAREN
+        when TkLPAREN, TkfLPAREN, TkLBRACE, TkLBRACK, TkDO
            nest += 1
-        when TkRPAREN
+        when TkRPAREN, TkRBRACE, TkRBRACK, TkEND
            nest -= 1
          when TkCOMMENT
            if nest <= 0 && @scanner.lex_state == EXPR_END
@@ -1858,7 +1858,7 @@
              break
            end
          when TkNL
-          if (@scanner.lex_state == EXPR_END and nest <= 0) || 
!@scanner.continue
+           if (nest <= 0) && ((@scanner.lex_state == EXPR_END) || 
(!@scanner.continue))
              unget_tk(tk)
              break
            end

-- 
       vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407

In This Thread

Prev Next