[Mono-bugs] [Bug 443841] New: String Matching using Regular Expressions Pattern containing nested grouping produces System .NotSupportedException

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Nov 11 13:08:07 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=443841


           Summary: String Matching using Regular Expressions Pattern
                    containing nested grouping produces
                    System.NotSupportedException
           Product: Mono: Runtime
           Version: SVN
          Platform: 64bit
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: cbutor at gmail.com
         QAContact: mono-bugs at lists.ximian.com
                CC: billholmes54 at gmail.com
          Found By: Community User


Created an attachment (id=251386)
 --> (https://bugzilla.novell.com/attachment.cgi?id=251386)
Test Program to reproduce Regular Expressions bug

When performing a string match based on a regular expression pattern containing
nested grouping (1 or more), a System.NotSupportedException is thrown.

With a pattern containing one grouping the error is not produced.  But when
nested at least once, the NotSupported exception is thrown.

The bug is a regression from the 2.0 release as confirmed by running the test
on 2.0.

Here's the stacktrace using the attached test program, "RegExpTest.cs":

To reproduce:
1)Compile the attached RegExpTest.cs
2)Run the exe

evaluating: Info at pc: 321, strpos: 1

Unhandled Exception: System.NotSupportedException: Operation is not supported.

  at System.Text.RegularExpressions.RxInterpreter.EvalByteCode (Int32 pc, Int32
strpos, System.Int32& strpos_result) [0x00000]
  at System.Text.RegularExpressions.RxInterpreter.EvalByteCode (Int32 pc, Int32
strpos, System.Int32& strpos_result) [0x00000]
  at System.Text.RegularExpressions.RxInterpreter.EvalByteCode (Int32 pc, Int32
strpos, System.Int32& strpos_result) [0x00000]
  at System.Text.RegularExpressions.RxInterpreter.EvalByteCode (Int32 pc, Int32
strpos, System.Int32& strpos_result) [0x00000]
  at System.Text.RegularExpressions.RxInterpreter.EvalByteCode (Int32 pc, Int32
strpos, System.Int32& strpos_result) [0x00000]
  at System.Text.RegularExpressions.RxInterpreter.EvalByteCode (Int32 pc, Int32
strpos, System.Int32& strpos_result) [0x00000]
  at System.Text.RegularExpressions.RxInterpreter.EvalByteCode (Int32 pc, Int32
strpos, System.Int32& strpos_result) [0x00000]
  at System.Text.RegularExpressions.RxInterpreter.EvalByteCode (Int32 pc, Int32
strpos, System.Int32& strpos_result) [0x00000]
  at System.Text.RegularExpressions.RxInterpreter.EvalByteCode (Int32 pc, Int32
strpos, System.Int32& strpos_result) [0x00000]
  at System.Text.RegularExpressions.RxInterpreter.EvalByteCode (Int32 pc, Int32
strpos, System.Int32& strpos_result) [0x00000]
  at System.Text.RegularExpressions.RxInterpreter.EvalByteCode (Int32 pc, Int32
strpos, System.Int32& strpos_result) [0x00000]
  at System.Text.RegularExpressions.RxInterpreter.EvalByteCode (Int32 pc, Int32
strpos, System.Int32& strpos_result) [0x00000]
  at System.Text.RegularExpressions.RxInterpreter.Scan
(System.Text.RegularExpressions.Regex regex, System.String text, Int32 start,
Int32 end) [0x00000]
  at System.Text.RegularExpressions.Regex.Match (System.String input, Int32
startat) [0x00000]
  at System.Text.RegularExpressions.Regex.IsMatch (System.String input, Int32
startat) [0x00000]
  at System.Text.RegularExpressions.Regex.IsMatch (System.String input)
[0x00000]
  at RegExpTest.Main (System.String[] args) [0x00000]


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list