Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-5425

Rule crashes RUTA execution

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.3.1ruta
    • None
    • Ruta
    • None

    Description

      I've created a rule that's able to crash the rule execution

      TYPESYSTEM BasicTypeSystem;
      
      DECLARE Test;
      DECLARE Cap;
      
      (CW) {-> Cap};
      
      (Cap{-IS(SW)})*? CW {-> Test};
      

      That looks for me like an endless loop:

      	at org.apache.uima.ruta.rule.RutaRuleElement.stepbackMatch(RutaRuleElement.java:283)
      	at org.apache.uima.ruta.rule.RutaRuleElement.continueMatch(RutaRuleElement.java:214)
      	at org.apache.uima.ruta.rule.ComposedRuleElement.continueMatch(ComposedRuleElement.java:193)
      	at org.apache.uima.ruta.rule.ComposedRuleElement.continueOwnMatch(ComposedRuleElement.java:366)
      	at org.apache.uima.ruta.rule.ComposedRuleElement.fallbackContinue(ComposedRuleElement.java:442)
      	at org.apache.uima.ruta.rule.RutaRuleElement.stepbackMatch(RutaRuleElement.java:283)
      	at org.apache.uima.ruta.rule.RutaRuleElement.continueMatch(RutaRuleElement.java:214)
      	at org.apache.uima.ruta.rule.ComposedRuleElement.continueMatch(ComposedRuleElement.java:193)
      	at org.apache.uima.ruta.rule.ComposedRuleElement.continueOwnMatch(ComposedRuleElement.java:366)
      	at org.apache.uima.ruta.rule.ComposedRuleElement.fallbackContinue(ComposedRuleElement.java:442)
      	at org.apache.uima.ruta.rule.RutaRuleElement.stepbackMatch(RutaRuleElement.java:283)
      	at org.apache.uima.ruta.rule.RutaRuleElement.continueMatch(RutaRuleElement.java:214)
      	at org.apache.uima.ruta.rule.ComposedRuleElement.continueMatch(ComposedRuleElement.java:193)
      	at org.apache.uima.ruta.rule.ComposedRuleElement.continueOwnMatch(ComposedRuleElement.java:366)
      	at org.apache.uima.ruta.rule.ComposedRuleElement.fallbackContinue(ComposedRuleElement.java:442)
      	at org.apache.uima.ruta.rule.RutaRuleElement.stepbackMatch(RutaRuleElement.java:283)
      	at org.apache.uima.ruta.rule.RutaRuleElement.continueMatch(RutaRuleElement.java:214)
      	at org.apache.uima.ruta.rule.ComposedRuleElement.continueMatch(ComposedRuleElement.java:193)
      	at org.apache.uima.ruta.rule.ComposedRuleElement.continueOwnMatch(ComposedRuleElement.java:366)
      	at org.apache.uima.ruta.rule.ComposedRuleElement.fallbackContinue(ComposedRuleElement.java:442)
      	at org.apache.uima.ruta.rule.RutaRuleElement.stepbackMatch(RutaRuleElement.java:283)
      	at org.apache.uima.ruta.rule.RutaRuleElement.continueMatch(RutaRuleElement.java:214)
      	at org.apache.uima.ruta.rule.ComposedRuleElement.continueMatch(ComposedRuleElement.java:193)
      	at org.apache.uima.ruta.rule.ComposedRuleElement.continueOwnMatch(ComposedRuleElement.java:366)
      	at org.apache.uima.ruta.rule.ComposedRuleElement.fallbackContinue(ComposedRuleElement.java:442)
      	at org.apache.uima.ruta.rule.RutaRuleElement.stepbackMatch(RutaRuleElement.java:283)
      	at org.apache.uima.ruta.rule.RutaRuleElement.continueMatch(RutaRuleElement.java:214)
      	at org.apache.uima.ruta.rule.ComposedRuleElement.continueMatch(ComposedRuleElement.java:193)
      	at org.apache.uima.ruta.rule.ComposedRuleElement.continueOwnMatch(ComposedRuleElement.java:366)
      	at org.apache.uima.ruta.rule.ComposedRuleElement.fallbackContinue(ComposedRuleElement.java:442)
      	at org.apache.uima.ruta.rule.RutaRuleElement.stepbackMatch(RutaRuleElement.java:283)
      

      Attachments

        Activity

          People

            pkluegl Peter Klügl
            PascalTurbo Christian
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: