Remove EnableLLVM to fix plt_entry AOT crash on Android startup - #203
Merged
Conversation
EnableLLVM=true causes the LLVM AOT backend to generate internally-inconsistent PLT (Procedure Linkage Table) entries when combined with AndroidEnableProfiledAot (partial method compilation). This produces 'plt_entry not met' assertions in aot-runtime.c:5341 causing SIGABRT on SDLThread within 2 seconds of startup. The default Mono AOT compiler handles partial-image PLT generation correctly and is used instead. Agent-Logs-Url: https://github.com/winnerspiros/osu/sessions/951d1b55-ea75-43fb-a97c-30faafa4a2f1 Co-authored-by: winnerspiros <1675249+winnerspiros@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
winnerspiros
April 19, 2026 00:19
View session
There was a problem hiding this comment.
Pull request overview
This PR updates the Android Release build configuration to avoid a startup crash caused by the LLVM AOT backend when used together with profiled AOT on .NET 10.
Changes:
- Removed
EnableLLVM=truefrom the ReleasePropertyGroupinosu.Android.props. - Added an explanatory comment documenting the profiled-AOT + LLVM PLT (
plt_entry) crash and rationale for using the default Mono AOT backend.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
App crashes with
SIGABRTwithin 2s of launch —plt_entry not metassertion inaot-runtime.c:5341on SDLThread.Root cause
EnableLLVM=truecombined withAndroidEnableProfiledAot=trueproduces an AOT image with internally-inconsistent PLT entries. Profiled AOT only compiles a subset of methods; the LLVM backend doesn't generate valid PLT stubs for cross-references into the non-AOT'd portion. This is distinct from the IL-stripping variant of this crash (already mitigated byAndroidStripILAfterAOT=falsein #202) — here the PLT table itself is corrupt, not the fallback path.Fix
EnableLLVM=truefrom the ReleasePropertyGroupinosu.Android.propsNo functional regression — LLVM produces marginally better codegen but the Mono AOT backend is sufficient for this workload and doesn't crash.