-
Notifications
You must be signed in to change notification settings - Fork 3.1k
SIGBUS/pagein crash recurs on v0.10.2 despite #314 fixes, under shared-daemon multi-session model #1569
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workingeditor/integrationEditor compatibility and CLI integrationEditor compatibility and CLI integrationparsing/qualityGraph extraction bugs, false positives, missing edgesGraph extraction bugs, false positives, missing edgespriority/highNeeds near-term maintainer attention; high-impact bug, regression, safety issue, or release blocker.Needs near-term maintainer attention; high-impact bug, regression, safety issue, or release blocker.stability/performanceServer crashes, OOM, hangs, high CPU/memoryServer crashes, OOM, hangs, high CPU/memoryux/behaviorDisplay bugs, docs, adoption UXDisplay bugs, docs, adoption UX
Description
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingeditor/integrationEditor compatibility and CLI integrationEditor compatibility and CLI integrationparsing/qualityGraph extraction bugs, false positives, missing edgesGraph extraction bugs, false positives, missing edgespriority/highNeeds near-term maintainer attention; high-impact bug, regression, safety issue, or release blocker.Needs near-term maintainer attention; high-impact bug, regression, safety issue, or release blocker.stability/performanceServer crashes, OOM, hangs, high CPU/memoryServer crashes, OOM, hangs, high CPU/memoryux/behaviorDisplay bugs, docs, adoption UXDisplay bugs, docs, adoption UX
Summary
Recurrence of #314 (SIGBUS on macOS arm64 when 2+ sessions share the same cache dir) observed on a version that postdates both landed fixes (#315
CBM_SQLITE_MMAP_SIZEknob, #316PASSIVEcheckpoint).Crash signature (identical to #314)
Faulting thread stack:
Environment
516e587c13e8)--cbm-daemon-internal) + up to 10 concurrent thin client processes (multiple Claude Code / Cursor sessions/windows) attached to the same project cache dir, consistent with the daemon coordination work from feat: coordinate concurrent CBM sessions #1139What happened
42 separate
.ipscrash reports forcodebase-memory-mcpaccumulated between 2026-08-10 11:22 and 2026-08-11 12:25, all with the identical SIGBUS/pagein-22/cluster_pagein past EOFsignature, all faulting insidehandle_index_repository→run_post_extraction→sqlite3_exec. Daemon log (~/.cache/codebase-memory-mcp/logs/cbm-daemon.log) shows indexing is supervised as a subprocess (index.supervisor.reap) that is repeatedly re-spawned bywatcher.changedevents firing on every file change with 10 clients attached to the same project — i.e. exactly the multi-session-sharing scenario #314 describes.From a client's perspective this surfaces as
Transport closedon any in-flight tool call (e.g.query_graph) made while the supervised worker was mid-crash.No new crash reports since 2026-08-11 12:25 (before the v0.10.2 auto-update at 17:08 that day) — so it's possible v0.10.2 already narrowed the window, but given the fixes from #314 predate v0.9.0 and this still reproduced on a build that includes them, filing separately rather than assuming it's closed.
Mitigation applied
Set
CBM_SQLITE_MMAP_SIZE=0per the workaround noted in the #314 thread. Have not yet been able to fully verify recurrence is prevented, since the existing daemon (already running before the env var was set) won't restart while other sessions are still attached to it (daemon: NOT stopped — 7 committed client(s) still use it) — will confirm once it cycles naturally.Ask
.ipsfile if useful.