bugDotGNU Portable.NET - Bugs: bug #11439, Regex produces assert

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #11439: Regex produces assert

Submitter:  None
Submitted:  Wed 29 Dec 2004 03:48:18 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Fri 19 Aug 2005 11:44:38 PM UTC, comment #3: 

Fixed by patch #4326.


Gopal.V <t3rmin4t0r>
Group administrator
Wed 13 Apr 2005 11:45:55 AM UTC, comment #2: 

The example above came through wrong due to muliple spaces being filtered out by this bug report system.  There need to be three spaces before the "123".

Anonymous
Wed 13 Apr 2005 11:44:00 AM UTC, comment #1: 

Here's another example that causes an assertion:
  Regex.Match("   123", @"\s+(\S+)\s+=\s+(.+)");

Anonymous
Wed 29 Dec 2004 03:48:18 PM UTC, original submission:  

The following code produces assert with ilrun but not with mono.

    Regex dname  = new Regex("fo.*b([^p]+)");
    Match start = dname.Match("foobp");

The assert is:
        at System.Diagnostics.DefaultTraceListener.Fail(String, String) in ./Diagnostics/DefaultTraceListener.cs:94
        at System.Diagnostics.Trace.Fail(String, String) in ./Diagnostics/Trace.cs:233
        at System.Diagnostics.Trace.Assert(Boolean, String, String) in ./Diagnostics/Trace.cs:208
        at System.Diagnostics.Debug.Assert(Boolean, String, String) in ./Diagnostics/Debug.cs:92
        at System.Text.RegularExpressions.Interpreter.Backtrack(Int32) in ./Text/RegularExpressions/interpreter.cs:860
        at System.Text.RegularExpressions.Interpreter.Eval(Mode, Int32&, Int32) in ./Text/RegularExpressions/interpreter.cs:599
        at System.Text.RegularExpressions.Interpreter.TryMatch(Int32&, Int32) in ./Text/RegularExpressions/interpreter.cs:744
        at System.Text.RegularExpressions.Interpreter.Eval(Mode, Int32&, Int32) in ./Text/RegularExpressions/interpreter.cs:166
        at System.Text.RegularExpressions.Interpreter.Scan(Regex, String, Int32, Int32) in ./Text/RegularExpressions/interpreter.cs:42
        at System.Text.RegularExpressions.Regex.Match(String, Int32) in ./Text/RegularExpressions/regex.cs:293
        at System.Text.RegularExpressions.Regex.Match(String) in ./Text/RegularExpressions/regex.cs:288

The version of cscc is:
cscc version 0.6.10
ILRUN 0.6.10 - IL Program Runtime

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-08-19 t3rmin4t0r StatusNone Fixed
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.13-0329.
Corresponding source code