Skip to content

Delaying error handlers #20018

Open
Open

Description

@arnaud-lb

Description

Due to error handlers, some operations may have unsuspected effects. This is the cause of bugs and workarounds. Quoting GH-6903:

[...] long-standing source of interrupt
vulnerabilities: A notice is emitted during execution of an opcode,
resulting in an error handling being run. The error handler modifies
some data structure the opcode is working on, resulting in UAF or
other memory corruption.

These bugs and workarounds could be avoided by delaying error handlers until a safepoint. Existing/Previous work:

I'm creating this ticket to aggregate issues that would not exist with delayed error handlers:

Activity

  1. ndossche commented on Oct 1, 2025

    @ndossche
    Member

    Another interesting, potentially less invasive fix, is to detect clobbering: #7735

  2. arnaud-lb commented on Oct 1, 2025

    @arnaud-lb
    MemberAuthor

    I like this approach, but is has the following drawbacks:

  3. added a commit that references this issue on Jul 15, 2026
    c7265d4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions