Skip to content

[cpyrt] Drop the dead ROOT signal-longjmp guard - #111

Merged
aaronj0 merged 1 commit into
compiler-research:mainfrom
aaronj0:drop-signal-longjmp-guard
Sep 30, 2026
Merged

aaronj0 merged 1 commit into
compiler-research:mainfrom
aaronj0:drop-signal-longjmp-guard

Conversation

@aaronj0

@aaronj0 aaronj0 commented Sep 24, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@vgvassilev

Copy link
Copy Markdown
Contributor

We should not drop that but implement it properly.

@guitargeek

Copy link
Copy Markdown
Collaborator

We should not drop that but implement it properly.

I would not implement things just for the fun of it: if this was dead code before, it was not relevant to users so this is a strong signal that we should not implement it anymore, and only come back to this if there is an explicit user request.

@guitargeek guitargeek left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Consider opening an issue about crash isolation for C++ calls, potentially with out-of-process execution, as a possible feature.

In any case, the removal of the dead signal-longjmp guard is the first step that should be merged.

@vgvassilev

Copy link
Copy Markdown
Contributor

We should not drop that but implement it properly.

I would not implement things just for the fun of it: if this was dead code before, it was not relevant to users so this is a strong signal that we should not implement it anymore, and only come back to this if there is an explicit user request.

IIUC, this is dead code after the rework and not dead in cppyy. That means that it was used in standalone cppyy for recover from crashes.

@aaronj0

aaronj0 commented Sep 28, 2026

Copy link
Copy Markdown
Collaborator Author

I would not implement things just for the fun of it: if this was dead code before, it was not relevant to users so this is a strong signal that we should not implement it anymore, and only come back to this if there is an explicit user request.

IIUC, this is dead code after the rework and not dead in cppyy. That means that it was used in standalone cppyy for recover from crashes.

Yes in cppyy proper, CPyCppyy was supplied the jump target from cppyy-cling. This never worked since the start of the compiler-research forks so I meant dead code in that regard. I've taken a stab at having CppInterOp provide this for cppjit in the following branches:

https://github.com/aaronj0/CppInterOp/tree/signal-guard
https://github.com/aaronj0/cppjit-compres/tree/signal-guard

but they are a WIP. I can open an issue tracking this.

@aaronj0
aaronj0 force-pushed the drop-signal-longjmp-guard branch from 94f6365 to f420591 Compare September 30, 2026 08:33
@aaronj0
aaronj0 merged commit 2bb7b0f into compiler-research:main Sep 30, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants