http://nagoya.apache.org/bugzilla/show_bug.cgi?id=764 *** shadow/764 Sun May 20 17:22:06 2001 --- shadow/764.tmp.5523 Tue Jun 12 10:09:09 2001 *************** *** 1,19 **** ! Bug#: 764 ! Product: Regexp ! Version: unspecified ! Platform: PC ! OS/Version: Windows NT/2K ! Status: NEW ! Resolution: ! Severity: Critical ! Priority: High ! Component: Other ! AssignedTo: [EMAIL PROTECTED] ! ReportedBy: [EMAIL PROTECTED] ! URL: ! Cc: ! Summary: java.lang.StackOverflowError ! this case produces Stack OverFlow Error //contents is my string to parse --- 1,19 ---- ! +============================================================================+ ! | java.lang.StackOverflowError | ! +----------------------------------------------------------------------------+ ! | Bug #: 764 Product: Regexp | ! | Status: NEW Version: unspecified | ! | Resolution: Platform: PC | ! | Severity: Critical OS/Version: Windows NT/2K | ! | Priority: High Component: Other | ! +----------------------------------------------------------------------------+ ! | Assigned To: [EMAIL PROTECTED] | ! | Reported By: [EMAIL PROTECTED] | ! | CC list: Cc: | ! +----------------------------------------------------------------------------+ ! | URL: | ! +============================================================================+ ! | DESCRIPTION | this case produces Stack OverFlow Error //contents is my string to parse *************** *** 175,177 **** --- 175,190 ---- at org.apache.regexp.RE.matchNodes(RE.java:927) ... + + ------- Additional Comments From [EMAIL PROTECTED] 2001-06-12 10:09 ------- + I'm having similiar problems too. It looks like for longer matches the RE class + is getting problems when you have wildcards (like .*) in the regular expression + you are trying to match against. Especially in a case like Isabelle's example + where the ending pattern is included repeatedly. + I.g. if you have "a.*c" and match "abbcbbcbbcbbc" against it, the match() + method produces a stack overflow (not for strings this short, but starting for + sizes of about some k already). + + I also had a second version of this problem where the match() method just + crashes. The debugger steps in and never comes out again, but no exception is + thrown. This happened with Visual Cafe 4.0 on an NT4 workstation. \ No newline at end of file