https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111731
--- Comment #4 from Thomas Neumann <tneumann at users dot sourceforge.net> --- It looks like the code does not find an unwind frame when de-registering an exception handler. Are you sure that you do not de-register a dynamic frame twice? Otherwise I would need a way to reproduce the problem, ideally with a binary. I am also fine with remote access if that is easier for you. Or if that is not possible you might want to add printf calls to btree_insert and btree_remove, tracing their call arguments. Having such a tracer should allow us to reproduce the problem even without the host program. (And it would allow for detecting duplicate de-registrations, i.e., errors in the host program. I had that problem in the past myself with JITed code).