Skip to content

Uninterruptible loop #2256

Closed
Closed
@fingolfin

Description

This code snippet cannot be interrupted with ctrl-c:

repeat continue; until false;

This is present in master but also in GAP 4.8 and older. The problem also affects for loops and while loops.

One way to fix this would be to move T_CONTINUE out of the FIRST_NON_INTERRUPT_STAT .. LAST_NON_INTERRUPT_STAT range. Another would be to leave it in there, but add additional interrupt checks to all loop constructs. If we do that, we could then also move T_EMPTY into the range of non-interruptible stats.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    kind: bugIssues describing general bugs, and PRs fixing themtopic: kernel

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions