[#6363] Re: rescue clause affecting IO loop behavior — ts <decoux@...>

>>>>> "D" == David Alan Black <dblack@candle.superlink.net> writes:

17 messages 2000/11/14
[#6367] Re: rescue clause affecting IO loop behavior — David Alan Black <dblack@...> 2000/11/14

Hello again --

[#6582] best way to interleaf arrays? — David Alan Black <dblack@...>

Hello --

15 messages 2000/11/26

[#6646] RE: Array Intersect (&) question — Aleksi Niemel<aleksi.niemela@...>

Ross asked something about widely known and largely ignored language (on

23 messages 2000/11/29
[#6652] RE: Array Intersect (&) question — rpmohn@... (Ross Mohn) 2000/11/29

aleksi.niemela@cinnober.com (Aleksi Niemel) wrote in

[#6723] Re: Array Intersect (&) question — Mathieu Bouchard <matju@...> 2000/12/01

> >Use a hash. Here's code to do both and more. It assumes that

[#6656] printing/accessing arrays and hashes — raja@... (Raja S.)

I'm coming to Ruby with a Python & Common Lisp background.

24 messages 2000/11/30

[ruby-talk:6305] Re: Regular expression puzzle: user error or bug?

From: "Conrad Schneiker/Austin/Contr/IBM" <schneik@...>
Date: 2000-11-13 08:53:30 UTC
List: ruby-talk #6305
FWIW, I still get the same error when compiling with the added "-O 
-qmaxmen=8192" (optimization flags for the AIX vac and xlc C compilers), 
both under AIX 4.3 and AIX 5.0.

It looks like configure only tries to do optimized compiles when using 
gcc; can the above flags be added for the AIX cc compilers?

FWIW, I found a somewhat simpler case (#2 below) that produces the regexp 
stack overflow problem, and what seems to be an equivalent case (#1 below) 
that doesn't. (Am I missing some subtly of /x mode?)

=====================
#!/usr/bin/env ruby

puts "----case 1----"
p = Regexp.new(
  " 
    ^(.*/)*(((?:[^.]|[.](?=[^.]*[.]))*))$
  ",'x')
m = p.match("myfile.txt.sav")
m.to_a.each { |x| puts x }

puts "----case 2----"
p = Regexp.new("^(.*/)*(((?:[^.]|[.](?=[^.]*[.]))*))$",'x')
m = p.match("myfile.txt.sav")
m.to_a.each { |x| puts x }
=====================

ruby 1.6.2 (2000-11-10) [rs6000-aix4.3.2.0]

=====================
# ./re_bug.rb
----case 1----
----case 2----
./re_bug.rb:13:in `match': Stack overflow in regexp matcher: 
/^(.*\/)*(((?:[^.\/]|[.](?=[^.\/]*[.]))*))$/i (RegexpError)
        from ./re_bug.rb:13
=====================

Conrad Schneiker
(This note is unofficial and subject to improvement without notice.)

In This Thread

Prev Next