Repository navigation
fix(deps): akarin 1.5.0 — 1.4.1 segfaulted every job under SELinux (#101) - #110
Merged
Merged
Conversation
The 1.4.1 Linux wheel allocated JIT code with new[] and mprotect()ed it executable. A page-sized buffer lands on the brk heap, where SELinux denies PROT_EXEC (execheap is off by default on Fedora/RHEL); the result was only ASSERTed, so a release build jumped into non-executable memory and every job died with SIGSEGV on the first akarin.Expr frame. Upstream fixed it in 1.5.0 by building with the anonymous-mmap allocator. The pin moves on all three platforms so output stays identical per OS. No hosted runner enforces SELinux, so download-deps-linux.sh now fails if libakarin.so lacks the mmap allocator's mapping name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014GLXdGLfPwgYjW1AkonGqN
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014GLXdGLfPwgYjW1AkonGqN
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.
Fixes #101.
Cause
Every job crashed in
vspipe-binwithSIGSEGVon Fedora from app 0.9.12, the first release on deps 1.8.0, where akarin was added. The reporter'sprobe-plugin-compatrun passed 22 plugins and crashed onlylibakarin.so.The akarin 1.4.1 Linux wheel allocates JIT code with
new[]and thenmprotects it executable. A page-sized buffer comes off thebrkheap, where SELinux deniesPROT_EXEC(execheap, off by default on Fedora/RHEL). The result is onlyASSERTed, so the release build jumps into non-executable memory. That matches the report's single frame at0x55aa…with no module. Upstream: akarin #38, fixed in 1.5.0 by building with the anonymous-mmapallocator. macOS and Windows never took the heap path.Changes
download-deps-*scripts (wheel layouts are unchanged).download-deps-linux.shfails the build iflibakarin.solacks theakarin_jitmapping name. No hosted runner enforces SELinux, so CI cannot see a regression any other way.NOTICES.txt: statically linked LLVM is now 22.1.8.docs/ENGINEERING_NOTES.md; version-history row inCLAUDE.md.Verification
akarin_expr_parity_test.dartpasses against 1.5.0 on macos-arm64 (local deps clone with the new dylib swapped in).akarin_jit; 1.4.1 does not.Deps
Needs deps 1.12.0. A follow-up commit on this branch points
deps-version.jsonat it once the bundles are built.🤖 Generated with Claude Code
https://claude.ai/code/session_014GLXdGLfPwgYjW1AkonGqN