Skip to content

fix(svelte): bump tree-sitter-htmlx-svelte to 0.1.16 to stop SIGSEGV (#471) - #472

Merged
rs545837 merged 1 commit into
mainfrom
fix/svelte-sigsegv-471
Jul 16, 2026
Merged

fix(svelte): bump tree-sitter-htmlx-svelte to 0.1.16 to stop SIGSEGV (#471)#472
rs545837 merged 1 commit into
mainfrom
fix/svelte-sigsegv-471

Conversation

@rs545837

Copy link
Copy Markdown
Member

Fixes #471.

Problem

sem graph / context / orient over .svelte components deterministically crashed with SIGSEGV (exit 139) on Linux/glibc, an invalid free in the tree-sitter-htmlx-svelte 0.1.8 grammar's scanner, hit during parallel graph construction. macOS's allocator tolerated the bad free, so it only surfaced on Linux, which is why it never showed locally or in the Svelte unit test.

Fix

Bump the grammar to 0.1.16 (scanner cleanups / crash fixes after 0.1.8). The existing sem-core constraint "0.1.7" already permits it, so this is a lock-only dependency update, no source constraint change.

Verification

  • The exact issue reproducers now exit 0 and Svelte parsing is intact (handleLogoClick, count, script/fragment entities all extracted):
    • sem context handleLogoClick --file spa/src/routes/+page.svelte --no-cache --file-exts .svelte
    • sem graph spa/src --no-cache --file-exts .svelte --format json
  • Added graph_svelte_parallel_no_crash_issue_471: builds a graph over 12 .svelte components (the parallel path that crashed). Fails only on Linux/glibc CI with 0.1.8; passes with 0.1.16.
  • Full sem-core suite green (408 + integration tests).

Credit to @XF-FW for the exhaustive isolation (GDB backtrace, per-extension bisection) and the already-verified fix. Follow-up: cut a patch release once merged.

…471)

Building a graph over .svelte components deterministically crashed with
SIGSEGV (exit 139) on Linux/glibc: an invalid free in the
tree-sitter-htmlx-svelte 0.1.8 grammar's scanner, hit during parallel graph
construction. macOS's allocator tolerated the bad free, so it only surfaced on
Linux. 0.1.16 carries the scanner cleanups; the existing "0.1.7" constraint
already permitted it, so this is a lock-only update.

Adds a parallel-Svelte-graph regression test that builds a graph over multiple
.svelte components (the crashing path).

Thanks @XF-FW for the exhaustive isolation and the verified fix.

@inspect-review inspect-review 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.

inspect review

Triage: 1 entities analyzed | 0 critical, 0 high, 0 medium, 1 low
Verdict: standard_review

Findings (0)


Reviewed by inspect | Entity-level triage found 0 high-risk changes

@rs545837
rs545837 merged commit da0959c into main Jul 16, 2026
3 checks passed
@rs545837
rs545837 deleted the fix/svelte-sigsegv-471 branch July 16, 2026 16:22
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.

SIGSEGV in Svelte graph builds with tree-sitter-htmlx-svelte 0.1.8

1 participant