jitlayers: Handle objects without linker info in the debuginfo plugin #63486
All Vouch review confidence checks passed
Residual risk 0.13 = Change Risk (0.36) × (1 − Review Confidence (0.64)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 182 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 70%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.312
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #63486"
general
weight: 0.35
maleadt
With the GDB JIT listener enabled (
ENABLE_GDBLISTENER=1, or by default in debug builds), Julia crashes as soon as it materializes code that was added to its JIT from outside of codegen. LLVM.jl does exactly that, throughJLJITAddLLVMIRModuleandJLJITAddObjectFile, and so do packages built on it like Enzyme:For code that Julia generates itself,
linkOutputattaches linker info to each object, which the debuginfo plugin uses when registering the object. Code added through the C API never goes throughlinkOutput. When the GDB listener is enabled, the plugin still registers such code, just without linker info. Most of the plugin already handles that case, but the coverage counter support added in #62724 assumed that every object has linker info and dereferenced a null pointer.Code without linker info has no coverage counters to relocate either, so the fix is to skip that step for it. With this change, the reproducer from #63485 works with the GDB listener enabled, and so do LLVM.jl's tests for Julia's JIT.
This PR doesn't add a test: triggering the bug requires adding code to the JIT through the C API, which Julia's own test suite doesn't do.
Fixes #63485