Benchmarks: disable jemalloc trait to fix SIGSEGV on macOS 26#1040
Open
pblazej wants to merge 1 commit into
Open
Benchmarks: disable jemalloc trait to fix SIGSEGV on macOS 26#1040pblazej wants to merge 1 commit into
pblazej wants to merge 1 commit into
Conversation
The nightly benchmark workflow started failing on Jun 10: the benchmark binary segfaults during the first benchmark (BM-CONN-001), reported by package-benchmark as WaitPIDError / error code [11]. Bisected to the webrtc-xcframework 144.7559.07 -> 144.7559.08 bump (0e6fde4): the last-good SDK commit passes with .07 and crashes with only the pin flipped to .08. With the .08 binary loaded, jemalloc's malloc-zone hooks (linked by package-benchmark for malloc stats) free a pointer they don't own during CoreFoundation's one-time NSLocale._preferredLanguages init on the NSURLSession work thread: je_free_default -> zone_free -> __CFBasicHashRehash -> CFNotificationCenterAddObserver -> ... -> CFNetwork Accept-Language Disabling the Jemalloc package trait (its only default trait) removes the malloc-zone interposition entirely, which fixes the crash class regardless of what shifts early CF allocations. Malloc metrics read 0 without it; all other metrics are unaffected. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
|
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.
The nightly benchmark crash (SIGSEGV in the first benchmark since Jun 10) is jemalloc's malloc-zone hooks freeing a foreign pointer during CoreFoundation's one-time locale init, triggered by the webrtc-xcframework 144.7559.08 bump (bisected: last-good SDK commit +
.07passes, same commit with only the pin flipped to.08crashes). Disabling package-benchmark's Jemalloc trait removes the malloc-zone interposition entirely — malloc metrics read 0, all other metrics unaffected; full suite verified locally at main +.08.🤖 Generated with Claude Code