Segfault on OpaqueClosure MethodInstance registration #56833
Open
Description
opened on Dec 14, 2024
Tested on 1.10 locally.
Compiling and running an opaque closure eventually calls registerJITObject
Line 224 in 4976d05
This maps the JIT address to the methodinstance globally in the JIT:
Line 377 in 4976d05
Later on, this will be looked up, e.g., but lookupLInfo for stacktraces.
However, it appears that the OpaqueClosure's MI is not globally rooted. Which means that it gets garbage collected. But garbage collection does not remove things from the jit registration. And thus when the stack trace mechanism tries to find it.....it segfaults
Activity