Skip to content

[JSC] JSArray::setLength / shiftCountWithAnyIndexingType clear live butterfly slots through libc memset, racing the concurrent marker - #564

Merged
dylan-conway merged 3 commits into
mainfrom
claude/gc-safe-butterfly-clears
Sep 4, 2026
Merged

dylan-conway merged 3 commits into
mainfrom
claude/gc-safe-butterfly-clears

Conversation

@dylan-conway

@dylan-conway dylan-conway commented Sep 4, 2026 •

Copy link
Copy Markdown
Member

Problem

JSArray::setLength and JSArray::shiftCountWithAnyIndexingType — the Int32/Contiguous paths behind array.length = n, Array.prototype.splice and shift — move elements with gcSafeMemmove() and then clear the vacated slots with a loop of WriteBarrier<Unknown>::clear(). Clang's loop-idiom pass compiles that loop to a call to libc memset() (release libJavaScriptCore: memset@plt with WriteBarrier.h clear() inlined at JSArray.cpp:1309 and :1734; an unmodified upstream JSCOnly build has the same calls at the same loops).

Nothing serializes these two clears with the collector: the butterfly is live, and JSObject::visitButterfly scans Contiguous butterflies on a marker thread without taking cellLock() (it only does that for ArrayStorage shapes, whose shift/unshift paths hold the lock). libc makes no promise about store width. musl's x86_64 memset writes the head and tail of the range with 1-, 2- and 4-byte and unaligned 8-byte stores for n ≤ 126, and its generic C memset (used on aarch64) starts with byte stores too. So the marker can load a torn JSValue out of a slot that is being cleared — for the last slot of the range musl zeroes byte 7, then bytes 5–6, then bytes 1–4, so the marker sees the low five bytes (0x0000008f6c954020) or the low byte (0x20) of the pointer that was there; for the first slot it sees that pointer with its low one or three bytes zeroed — and treats it as a JSCell*.

On an x86_64-musl build this reproduces in seconds with ordinary code and default options:

const N = 3000, K = 3;
function fill(a) { for (let i = a.length; i < N; i++) a.push({ i }); }
const arrays = Array.from({ length: 64 }, () => { const a = []; fill(a); return a; });
for (;;) {
    for (const a of arrays) {
        a.splice(N - 2 * K, K); // shiftCountWithAnyIndexingType: gcSafeMemmove, then memset of 24 bytes
        fill(a);
    }
}

Depending on the torn value the outcome is a SIGSEGV in SlotVisitor::appendHiddenSlow / JSObject::visitChildren reading the MarkedBlock header of a garbage block address, MarkedBlock::aboutToMarkSlow → analyzeInvalidHandleAndCrash, a SIGSEGV at 0xd0 in SlotVisitor::drain after the torn pointer was marked and pushed, a mark bit and cell-state byte written at a non-cell offset in an unrelated block, or a marker parked forever in MarkedBlock::aboutToMarkSlow → CountingLock::lockSlow while the mutator waits in Heap::runFixpointPhase. glibc's memset happens to use 8-byte-or-wider stores for these shapes, so glibc builds don't show it, but that is not something to rely on.

Fix

Clear those slots with gcSafeZeroMemory(), the primitive JSC already uses for stores the concurrent marker can observe (unshiftCountSlowCase uses it a few lines away, next to the same gcSafeMemmove() calls). No other change.

Verification

  • objdump of a JSCOnly release build (clang 21): memset@plt in JSArray::setLength and JSArray::shiftCountWithAnyIndexingType before, no libc calls in either after. Every other WriteBarrier clear loop that the compiler turns into memset/memcpy in this tree (creation paths in JSArray, JSObject, JSCellButterfly, JSOrderedHashTable, JSPropertyNameEnumerator, …, and the cellLock()-protected ArrayStorage shift/unshift) writes storage the marker cannot be scanning, so they are left alone.
  • On glibc with an LD_PRELOAD memset that reproduces musl's store sequence (checked byte-for-byte against libc memset for all offsets < 40 and sizes < 500), the loop above with 2048 arrays under jsc --useGenerationalGC=false --collectContinuously=true: before 14/14 runs crash within 4 s, after 0/16; with default options before 4/6, after 0/14. A mixed splice/length/front-splice/unshift variant: before 1/4, after 0/4. glibc memset: 0/9 before and after.
  • A randomized differential test of push/pop/shift/unshift/splice/length/fill/reverse/slice/delete sequences gives identical digests before and after, also under continuous GC; splice, shift, unshift, length truncation and new Array(n) microbenchmarks are unchanged.

…rough libc memset

JSArray::shiftCountWithAnyIndexingType, shiftCountWithArrayStorage,
unshiftCountWithArrayStorage, unshiftCountSlowCase and setLength move
elements with gcSafeMemmove() and then clear the vacated slots with a
loop of WriteBarrier<Unknown>::clear(). Clang's loop-idiom recognition
compiles that loop to a call to memset(). The butterfly is live and a
marker thread may be scanning it at the same time, and libc makes no
promise about store width: musl's x86_64 memset writes the head and tail
of the range with 1-, 2-, 4-byte and unaligned 8-byte stores. A marker
that loads the slot mid-sequence sees, for example, only the low byte or
the low five bytes of the pointer being cleared, treats it as a JSCell*
and crashes in SlotVisitor::appendHiddenSlow / JSObject::visitChildren,
or marks a bogus address and crashes later in SlotVisitor::drain, or
parks forever in MarkedBlock::aboutToMarkSlow on a lock word derived
from the torn value. On a musl build this reproduces within seconds with
Array.prototype.splice on arrays of objects while the collector is
marking; glibc's memset happens to use 8-byte-or-wider stores for these
shapes, which is why glibc builds do not show it.

Make updateEncodedJSValueConcurrent() a relaxed atomic store and route
WriteBarrier's unbarriered stores (setWithoutWriteBarrier, clear,
setUndefined, setStartingValue, copyFrom, setEarlyValue) through it. On
64-bit targets that is the same single store instruction as before, but
the compiler can neither split it nor fuse a loop of them into memset()
or memcpy(), so a slot the marker can observe is always written with one
word-sized store regardless of the libc underneath. The bulk clears in
JSArray.cpp use gcSafeZeroMemory(), matching the gcSafeMemmove() calls
next to them, so large clears stay vectorized.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beyond the inline finding, I checked that each gcSafeZeroMemory() call covers exactly the same slots as the loop it replaces — end/count in shiftCountWithAnyIndexingType (end = oldLength - count), lengthToClear in setLength, startOfEmptyVectorTail/count in shiftCountWithArrayStorage, and startIndex/count in unshiftCountWithArrayStorage all match the old bounds. I also confirmed gcSafeZeroMemory() itself is hand-written asm using only 8- and 16-byte stores at 8-byte-aligned offsets, so it does not reintroduce sub-word torn writes, and that WriteBarrierBase<T>::set() reaches storeConcurrently() via setEarlyValue().

Extended reasoning...

This change rewires every unbarriered WriteBarrier store and several bulk butterfly clears to guarantee word-atomic visibility to the concurrent marker — core GC/mutator-race territory. The inline finding covers the test-duration convention issue; separately I verified that the loop→gcSafeZeroMemory conversions preserve the exact slot ranges (the arithmetic differs in form but is equivalent in each of the five sites), that gcSafeZeroMemory in GCMemoryOperations.h uses only 8/16-byte asm stores so it cannot itself tear a JSValue, and that the barriered set() path flows through the new storeConcurrently() via setEarlyValue(). Given the sensitivity of concurrent-GC store ordering and that at least one further verified finding is being withheld from this review, human sign-off is still appropriate.

@coderabbitai

coderabbitai Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Essentials

Run ID: 3d8da149-6002-4aff-b272-175ceb251041

📥 Commits

Reviewing files that changed from the base of the PR and between b237eae and c1463c6.

📒 Files selected for processing (2)
  • Source/JavaScriptCore/runtime/JSArray.cpp
  • Source/JavaScriptCore/runtime/JSObject.cpp

Included review availability: 1 review is currently available. Your included PR review attempts over the past 7 days set your current allowance at 2 reviews per hour.


Walkthrough

JavaScriptCore replaces per-slot clearing with GC-safe bulk zeroing for contiguous array truncation, shifted tails, and newly exposed vector slots. Double-array truncation still clears slots individually with PNaN.

Changes

Concurrent array clearing

Layer / File(s) Summary
Array slot bulk clearing
Source/JavaScriptCore/runtime/JSArray.cpp
setLength and shiftCountWithAnyIndexingType use gcSafeZeroMemory for contiguous array storage. Double-array clearing remains unchanged.
Vector slot initialization
Source/JavaScriptCore/runtime/JSObject.cpp
increaseVectorLength bulk-clears newly exposed slots and issues a store-store fence when existing capacity is sufficient.

Merge Risk: ⚪ Minimal · up to c1463

This change uses GC-safe clearing for affected array and vector storage, preventing concurrent marking from observing torn slot updates. The reviewed changes are ready to merge with no active risk identified.

🚥 Pre-merge checks | ✅ 3 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description provides a detailed problem statement, fix, and verification results. It does not follow the repository template because it omits the Bugzilla URL, reviewer line, and changed-file/func… Add the required Bugzilla issue link and reviewer line. Include the affected file paths and functions in the template format. Preserve the existing problem, fix, and verification details.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the affected JSC methods and the concurrent marker race caused by unsafe libc memset operations. It is longer than necessary and describes the defect rather than the fix, …
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description provides a detailed problem statement, fix, and verification results. It does not follow the repository template because it omits the Bugzilla URL, reviewer line, and changed-file/function summary.

  • Fix all pre-merge checks with AI

Warning

Git: CodeRabbit could not clone the repository, so clone-backed analysis was skipped and this review may be incomplete. Verify repository clone access, such as SSH credentials, before requesting another full review. If clone access is intentionally unavailable, use path_filters to narrow the review scope.


Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

Preview Builds

Commit Release Date
c1463c68 autobuild-preview-pr-564-c1463c68 2026-09-04 22:29:47 UTC
b237eae8 autobuild-preview-pr-564-b237eae8 2026-09-04 21:24:48 UTC

@Jarred-Sumner

Copy link
Copy Markdown
Collaborator

Claude wrote this comment (posted from Jarred's account at his request).

I reviewed this and then went looking for other instances of the same pattern. Summary: the fix is right, I'd keep the WriteBarrier-wide relaxed-atomic approach over the alternatives, and the sweep found no additional live bugs — but there are two small things worth folding into this PR and one musl detail worth stating in the description.

Review

  • The JSArray.cpp hunks are unambiguously correct. All five sites are on a butterfly that is already published (or may be, in unshiftCountSlowCase), each sits next to a gcSafeMemmove on the same storage, and gcSafeZeroMemory keeps them vectorized with 8-byte-granular stores.
  • Making the unbarriered WriteBarrier stores relaxed atomics is effectively giving every marker-visible slot WRITE_ONCE semantics, which is the contract the concurrent marker has always silently assumed. Same single mov/str per store; the compiler just can't split it or fuse a loop of them into a libcall. The only cost is lost auto-vectorization of init loops over unpublished storage that go through clear()/setStartingValue(); those ranges are small and the big fills already use clearArray/raw memset.

Why not a clang attribute instead

I tried [[clang::no_builtin("memset","memcpy","memmove")]] (clang 22, x86_64/aarch64-linux-musl) on a minimal WriteBarrier-style clear loop:

plain loop                                  -> jmp memset@PLT
no_builtin on the function with the loop    -> no memset, still vectorized (movups)
no_builtin on clear() itself                -> clear() is NOT inlined; call per element
no_builtin on an inline helper w/ the loop  -> helper NOT inlined into its caller
relaxed atomic store in clear()             -> unrolled 8-byte stores, inlines fine

It does suppress loop-idiom, but LLVM treats the no-builtin set as an inline-compatibility constraint, so it can't go on WriteBarrier::clear() / setWithoutWriteBarrier() (they'd stop inlining). You'd have to tag every outermost function that ends up containing such a loop after inlining, which is the same enumerate-every-site problem gcSafeZeroMemory has, and it's name-based (Apple clang still emitted bzero from a tagged function; memset_pattern16 isn't covered). -fno-builtin-memset / -mllvm -disable-loop-idiom-memset are per-TU and kill the idiom on non-GC memory too. So the relaxed atomic is the right tool: it attaches to the slot type, survives inlining, and is guaranteed by the language rather than an optimizer flag.

Sweep for other instances

I took the bun-webkit-linux-amd64-musl jsc from the current main autobuild (it has full DWARF), disassembled it, collected every memset/memcpy/memmove PLT call (2,437), symbolized each with its inline chain, and triaged the ones landing on JSValue/cell storage that the marker scans concurrently.

Compiler-fused memset from WriteBarrier loops on live, marker-scanned storage:

Site Status
JSArray::setLength (contiguous branch) fused to memset@plt; fixed here
JSArray::shiftCountWithArrayStorage fused; fixed here
JSArray::shiftCountWithAnyIndexingType fused; fixed here
JSArray::unshiftCountWithArrayStorage, unshiftCountSlowCase not fused in this particular build, same idiom; fixed here
JSObject::increaseVectorLength, first branch ("cell was already big enough") fused to memset@plt on a live ArrayStorage butterfly. Not observable on x86 today because it clears slots past the old vectorLength and only then raises vectorLength (marker bounds its scan by vectorLength, TSO orders the stores). But it's the same shape as the JSArray sites, and unlike ensureLengthSlow right below it there is no storeStoreFence() before setVectorLength. Suggest gcSafeZeroMemory + fence here so the two match.
JSObject::ensureLengthSlow in-place branch same pattern, already has the fence; the atomic change de-fuses it

Every other fused memset/memcpy involving WriteBarrier/JSValue is on storage the marker can't reach yet (fresh butterflies before setButterfly/createWithButterfly in tryCreateUninitializedRestricted, createInitialInt32/Contiguous, createArrayStorageButterfly, concat/splice/slice/flat/toSpliced/with result butterflies, tryCreateContiguousArrayWithPattern, JSCellButterfly ctor, JSBoundFunction::create, JSPropertyNameEnumerator, JSGlobalObject/VM init), or on Undecided/Int32/Double shapes that visitButterfly doesn't scan.

Explicit mem-ops on live storage: every move on live Contiguous/ArrayStorage already goes through gcSafeMemmove/gcSafeMemcpy (shiftCount*, unshiftCount*, fastShift, appendMemcpy, JSWebAssemblyArray::copy for ref types). The plain memcpy/memmove calls adjacent to them are the Int32/Double branches. copyArrayElements<..., NeedsGCSafeOps::No> instantiations all target fresh butterflies. Butterfly::clearRange is only called on fresh butterflies. MarkedVector::fill's zeroSpan is fine per its own comment (mark lists are visited with the mutator stopped). WeakMapBuffer::reset is create-only.

One place outside the invariant this PR establishes: JSWebAssemblyArray ref-typed elements are written as raw uint64_t span stores (setWithoutWriteBarrier(index, value) and the ref-type fill loop over it), not through WriteBarrier / updateEncodedJSValueConcurrent, and visitChildren scans them concurrently. It doesn't fuse today because a ref-null fill value isn't a byte splat, so there's no live bug, but it's the one marker-visible slot type that won't get the relaxed-atomic guarantee. Routing the ref-type branch through updateEncodedJSValueConcurrent would close it for free.

musl detail worth putting in the description

From musl's src/string/x86_64/:

  • memset for n ≤ 126 is the overlapping head/tail sequence (byte at 0 and n-1, word at 1 and n-3, dword at 3 and n-7, misaligned qword at 7 and n-15, ...), which is where the torn values come from. Above 126 it's two qword head stores then rep stosq.
  • memcpy and forward memmove are rep movsq for an 8-aligned dst with n % 8 == 0 — safe in practice, not by contract.
  • Backward memmove (overlapping, dst > src) is std; rep movsb — byte-at-a-time for any length (DF=1 also disables fast-string). So on musl it's not only small fused memsets that tear: any plain rightward memmove of live JSValues would tear at every size. Nothing does that today because unshift uses gcSafeMemmove, but it's worth stating so nobody later "simplifies" a gcSafeMemmove back to memmove.

musl aarch64 memset (ARM optimized-routines) and glibc x86_64 happen to use 8-byte-or-wider stores that land on whole slots for these shapes, which is why only the x86_64-musl builds reproduce; that's implementation luck on both.

Nits

  • The comments are heavier than needed. The one in JSCJSValue.h earns a one-liner; the WriteBarrier.h / JSArray.cpp comments and the test's header block could move to the commit message.
  • The test is wall-clock based and can only actually reproduce on musl, so on glibc/macOS CI it's a smoke test. A fixed iteration count and a smaller array count would make it cheaper and deterministic.
  • The JSArray.cpp hunk is self-contained and upstreamable to WebKit as-is.

Only JSArray::setLength and JSArray::shiftCountWithAnyIndexingType
clear slots of a live Contiguous butterfly that the marker scans without
a lock. The ArrayStorage variants run under cellLock(), which the marker
also takes for that shape, and every other WriteBarrier clear loop in
the tree fills storage that is not published yet. Keep the fix to those
two sites, using the existing gcSafeZeroMemory(), and drop the
WriteBarrier/EncodedJSValue store changes and the stress test.
@dylan-conway dylan-conway changed the title [JSC] Concurrent marker can read a torn JSValue from array slots cleared through libc memset [JSC] JSArray::setLength / shiftCountWithAnyIndexingType clear live butterfly slots through libc memset, racing the concurrent marker Sep 4, 2026
Unlike shift/unshiftCountWithArrayStorage, this path is reached from
putByIndexBeyondVectorLengthWithArrayStorage without cellLock(), so the
marker's ArrayStorage lock does not exclude it. It cleared the new tail
with a WriteBarrier::clear() loop (fused into memset) and then raised
vectorLength with no storeStoreFence, so a marker that reads the new
vectorLength is not guaranteed to see the cleared slots. Use
gcSafeZeroMemory and fence before publishing the length, matching
ensureLengthSlow.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks — the stress test I flagged is gone, and I reviewed the two new commits without finding bugs. Given this sits in the concurrent-marker path, a human sign-off is still worthwhile.

What was reviewed:

  • Range arithmetic at all three sites matches the removed loops exactly (lengthToClear = publicLength - newLength; oldLength - end = count; availableVectorLength - vectorLength).
  • contiguous().data() and m_vector are WriteBarrier<Unknown>*, satisfying gcSafeZeroMemory's sizeof(T) == sizeof(JSValue) static_assert; byte counts are always n * 8 so the bytes % 8 == 0 RELEASE_ASSERT holds.
  • The new storeStoreFence() before setVectorLength in increaseVectorLength is strictly more conservative — though the PR description says ArrayStorage scanning is cellLock()-serialized, so a reviewer familiar with visitButterfly should confirm this hunk is wanted.
Extended reasoning...

Overview

Three WriteBarrier<Unknown>::clear() loops over live butterfly slots are replaced with gcSafeZeroMemory(), the primitive JSC already uses alongside gcSafeMemmove() so the concurrent marker never observes a torn JSValue. Two sites are the Int32/Contiguous branches of JSArray::setLength and JSArray::shiftCountWithAnyIndexingType; the third (added after my previous review) is the in-place branch of JSObject::increaseVectorLength, which also gains a WTF::storeStoreFence() before setVectorLength. The stress test I previously commented on was dropped, so the diff is now three hunks across two files.

Security risks

The bug being fixed is a concurrent-GC torn read that produces a garbage JSCell*, which is memory-corruption-adjacent. The fix itself introduces no new attack surface: it swaps a compiler-lowered memset for an 8-byte-atomic zeroing primitive over the identical range, and the added fence only strengthens ordering. No auth, crypto, or input-parsing surface is touched.

Level of scrutiny

High. This is core JavaScriptCore GC-visible mutation — an off-by-one in the pointer or byte count, or a mismatch with gcSafeZeroMemory's alignment/size assertions, would either crash immediately or corrupt adjacent slots under GC. I checked each range against the removed loop bounds and against the template's static_assert(sizeof(T) == sizeof(JSValue)) and RELEASE_ASSERT(bytes % 8 == 0); all hold. Because correctness here depends on the concurrent-marker protocol (which butterflies are scanned under cellLock(), which are not), a reviewer with visitButterfly context should still confirm — particularly the increaseVectorLength hunk, since the PR description states ArrayStorage marking is lock-serialized, which would make that clear loop already safe and the fence unnecessary (though harmless).

Other factors

My earlier inline comment concerned only the stress test's runtime; that file was removed in 86265bc, so nothing from my prior review remains open. Jarred-Sumner (a maintainer) authored the third hunk, and Jarred also commented on the thread, so there is active human engagement. No regression test ships with the fix now, but the change is a straight substitution of an existing primitive that unshiftCountSlowCase already uses in the same file.

@dylan-conway
dylan-conway merged commit 2e2aa22 into main Sep 4, 2026
48 checks passed
dylan-conway added a commit to oven-sh/bun that referenced this pull request Sep 5, 2026
…erfly slots through libc memset (oven-sh/WebKit#564) (#41407)

### What

Bumps WebKit from `fbd894680a6c` to
[`2e2aa2290fac`](oven-sh/WebKit@2e2aa22),
the oven-sh/WebKit#564 merge commit on `main`. The range contains two
changes:

**oven-sh/WebKit#564 — concurrent marker could read a torn JSValue on
musl builds.** `JSArray::setLength` and
`JSArray::shiftCountWithAnyIndexingType` — the Int32/Contiguous paths
behind `array.length = n`, `Array.prototype.splice` and `shift` — move
elements with `gcSafeMemmove()` and then cleared the vacated butterfly
slots with a `WriteBarrier::clear()` loop, which clang compiles to a
call to libc `memset()`. The GC's parallel marker scans that same
butterfly on a helper thread without a lock, and libc makes no promise
about store width: musl's `memset` writes the head and tail of the range
with 1-, 2- and 4-byte and unaligned 8-byte stores (glibc happens to use
8-byte-or-wider stores for these sizes). So on `*-musl` builds (Alpine
images, musl `--compile` targets) a marker thread could load a
half-cleared slot — the low byte, or the low five bytes, of the pointer
that was there — treat it as a `JSCell*`, and:

- SIGSEGV on a `HeapHelper` thread in `JSObject::visitChildren` /
`SlotVisitor::appendHiddenSlow` at `<garbage & ~0x3fff> + 0x20` (e.g.
`0x20`, `0x8f6c954020`), or
- SIGSEGV at `0xd0` in `SlotVisitor::drain` after the torn pointer was
marked and pushed, or
- a mark bit / cell-state byte written at a non-cell offset in an
unrelated block (later crashes anywhere), or
- a hung process with a marker parked in `MarkedBlock::aboutToMarkSlow`
→ `CountingLock::lockSlow` while the mutator waits in
`Heap::runFixpointPhase`.

A 25-line script (64 arrays of 3000 objects, `a.splice(N - 6, 3)` +
refill in a loop) crashes `oven/bun:1.4.1-alpine` within seconds with
default options, 6/6 runs; the glibc image and the same musl image with
an `LD_PRELOAD` memset that only does 8-byte stores both run clean. The
clears now use `gcSafeZeroMemory()`, and the unlocked in-place
ArrayStorage grow path in `JSObject::increaseVectorLength` fences before
publishing the larger vector length.

**oven-sh/WebKit#560 — CodeBlock aging** drops the per-allocation byte
counter added in oven-sh/WebKit#557 and ages idle optimized code against
the last collection that saw allocation instead.

### Related reports

- Fixes #19895 — musl x64, `HeapHelper` thread in
`JSObject::visitChildren` → `visitButterfly` under `SlotVisitor::drain`;
the fault address `0x7623000020` is a butterfly pointer with bytes 0–2
and 5–6 zeroed, which is exactly musl `memset`'s intermediate state when
clearing a single 8-byte slot.
- Fixes #17792 — musl x64-baseline, long-running `next start`, parallel
marker `SlotVisitor::drain` → `visitChildren` faulting at `0xd0`, i.e. a
torn pointer that was marked and then visited.
- Not this bug, deliberately not marked: the glibc reports with
marker-thread stacks (#32109, #30205, #30191, #34476, #26678, #28990) —
glibc's `memset` does not tear these slots, and their fault addresses
(`0x703b1a408020`, `0x800000020`, `0xe00000020`, …) point at a stale
block or an `IndexingHeader` read rather than a torn pointer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants