regex tests that hang [PLACEHOLDER]

Bug #1070533 reported by Sorin Marian Nasoi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Triaged
Critical
Paul J. Lucas

Bug Description

The following test cases hang:

"re00975"
matches('22a3', '^(\d*){2,}?a\1$')
Should return false

"re00976"
 matches('22a22z', '^(\d*){2,}?a\1z$')
Should return a xs:boolean

"re00976a"
matches('22a22', '^(\d*){2,}?a\1z$')
Should return false

tags: added: fots-seg-fault
removed: fots
Changed in zorba:
importance: Undecided → Critical
milestone: none → 2.8
Revision history for this message
Paul J. Lucas (paul-lucas) wrote :

This is a bug in ICU. For example, this function hangs for the same reason:

    bool f() {
      UnicodeString p( "(2*){2,}?a2\\z" );
      UErrorCode status = U_ZERO_ERROR;
      RegexMatcher m( p, 0, status );
      assert( U_SUCCESS( status ) );

      UnicodeString s( "2a3" );
      m.reset( s );
      return m.find() != 0;
    }

Changed in zorba:
status: New → In Progress
Revision history for this message
Paul J. Lucas (paul-lucas) wrote :
Revision history for this message
Chris Hillery (ceejatec) wrote :

For now I've removed the Zorba 2.8 tag to remove it from the planning spreadsheet. We still need to decide how to handle our inability to run these tests.

Changed in zorba:
milestone: 2.8 → none
Changed in zorba:
milestone: none → 2.9
summary: - FOTS: regex tests that hang
+ regex tests that hang
tags: added: fots
Chris Hillery (ceejatec)
tags: added: segfault
removed: fots-seg-fault
Revision history for this message
Paul J. Lucas (paul-lucas) wrote : Re: regex tests that hang

Short of either using some other regex engine other than ICU or writing our own, this simply can't be fixed. It's an ICU bug. Marking it as a 2.9 milestone won't get it fixed any faster.

Changed in zorba:
milestone: 2.9 → none
Changed in zorba:
status: In Progress → Triaged
Chris Hillery (ceejatec)
summary: - regex tests that hang
+ regex tests that hang [PLACEHOLDER]
tags: added: placeholder
removed: segfault
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.