CST hangs if scheduling block isn't complete

Create issue
Issue #825 closed
Ian Hinder created an issue

If a schedule.ccl file contains

schedule group A in A

the CST hangs at "Creating schedule bindings...". This error in the schedule.ccl file should be detected and a fatal error message should be generated.

Keyword:

Comments (9)

  1. Frank Löffler

    The problem isn't the recursion (alone), but the missing {}"" block after this. the following shows the same:

    schedule group A in B

    while this doesn't hang:

    schedule group A in A { } ""

    I believe cyclic dependencies are checked at runtime only, but I didn't check A->A

  2. Frank Löffler
    • changed status to open
    • changed milestone to ET_2012_05
    • removed comment

    Please review the attached patch which solves the problem for me. I request two 'yes' because of the sensitive place (CST).

  3. Erik Schnetter
    • removed comment

    Scheduling a group in itself is possible in Cactus. One has to disable printing the schedule, though. This does make sense if there is an IF or a WHILE modifier.

  4. Frank Löffler
    • removed comment

    This patch doesn't change the ability to schedule something within itself. It only fixes the hang, which is unrelated to this. The patch is really simple: it is a one-line change checking whether the end of the file has been reached before trying (an otherwise always) failing regexp. I still need to "yes".

  5. Log in to comment