Repository navigation
Share dual-SONAME nix preload and fail rewrite-only browser crashes - #3
Merged
Merged
Conversation
Move preload helpers into nixpreload.rs (both libmimalloc.so and libmimalloc-secure.so.3, both ld-nix.so.preload paths) for browsers, world and projects. Only excuse a rewrite failure when the C oracle ran and failed the same way, save maps/backtraces on failure, make browsers.nix fail rewrite-only crashes, unwrap firejail firefox, and turn the KWin/plasmashell probes into real workloads.
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.
Summary
nixpreload.rsused by browsers, world and projects: lists bothlibmimalloc.soandlibmimalloc-secure.so.3, binds/etc/ld-nix.so.preloadand/etc/static/ld-nix.so.preload.judge: a rewrite failure is excused only if the C oracle ran and failed the same way; C mimalloc mapped beside the rewrite fails. Failures writediag.txt(maps, exit/signal, stderr tail, backtrace).browsers.nixfails rewrite-only crashes; Firefox profile dirs, Electron headless ozone.firefoxis unwrapped (it blocked the preload file, so Firefox never loaded the rewrite).--lock(rejected by KWin 6.8.2);plasmashell:scripted-panelbuilds a real panel in a nested KWin session; non-native (32-bit) binaries skipped.Testing
Verified locally (Rust 1.99.1): cargo test -p elymalloc-core --release (117/117) and -p elymalloc-harness pass on this branch alone. Firefox, Chromium, Electron pass under libc, rewrite and C mimalloc (12-run loop, normal and secure). World 40/40. A crashing fake DSO fails both the harness and the derivation.