Hi,
In message "[ruby-talk:6238] Regular expression puzzle: user error or bug?"
on 00/11/10, "Conrad Schneiker/Austin/Contr/IBM" <schneik / us.ibm.com> writes:
|==== Case 3 ====
|./parse_path.rb:18:in `match': Stack overflow in regexp matcher:
|/^(.*\/)*(((?:[^.\/]|[.](?=[^.\/]*[.]))*)([.][^.\/]*)*)$/ (RegexpError)
| from ./parse_path.rb:18
|==========================================
|
|using ruby 1.6.2 (2000-10-12) [rs6000-aix4.3.2.0].
|
|However this doesn't fail for ruby 1.6.1 (2000-10-05) [i386-cygwin].
This worked fine for ruby 1.6.2 (2000-11-08) [i586-linux].
Case 3 consumes stack little bit further (294 against 224), but far
smaller than stack max (32767).
I don't know what is happening there.
matz.