Skip to content

fix(wasm): Match engine-named wasm frames to the single buffer module - #23662

Draft
andreiborza wants to merge 1 commit into
ab/wasm-nonstreaming-registrationfrom
ab/wasm-firefox-fallback
Draft

fix(wasm): Match engine-named wasm frames to the single buffer module#23662
andreiborza wants to merge 1 commit into
ab/wasm-nonstreaming-registrationfrom
ab/wasm-firefox-fallback

Conversation

@andreiborza

@andreiborza andreiborza commented Aug 26, 2026

Copy link
Copy Markdown
Member

What

Frames of buffer-compiled modules can carry a name the SDK cannot predict: Firefox derives it from the compile call site, and V8 hashes the content of modules at or below 16383 bytes. Such frames now resolve to the registered module when exactly one distinct module was compiled from raw bytes.

Why

Without this, non-streaming symbolication misses Firefox entirely and small modules on V8.

Related: #19564

@github-actions

github-actions Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

⚠️ Warning: Base artifact is not the latest one, because the latest workflow run is not done yet. This may lead to incorrect results. Try to re-run all tests to get up to date results.

Path Size % Change Change
@sentry/browser 28.57 kB -0.02% -4 B 🔽
@sentry/browser - with treeshaking flags 26.92 kB -0.04% -9 B 🔽
@sentry/browser - with treeshaking flags tracing without tracing 26.82 kB -0.03% -7 B 🔽
@sentry/browser (incl. Tracing) 48.63 kB -0.01% -2 B 🔽
@sentry/browser (incl. Tracing + Span Streaming) 48.65 kB -0.01% -2 B 🔽
@sentry/browser (incl. Tracing, Profiling) 51.56 kB -0.01% -5 B 🔽
@sentry/browser (incl. Tracing, Replay) 88.11 kB -0.01% -2 B 🔽
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 77.51 kB -0.02% -8 B 🔽
@sentry/browser (incl. Tracing, Replay with Canvas) 92.82 kB -0.01% -2 B 🔽
@sentry/browser (incl. Tracing, Replay, Feedback) 105.51 kB -0.01% -1 B 🔽
@sentry/browser (incl. Feedback) 45.79 kB -0.02% -5 B 🔽
@sentry/browser (incl. sendFeedback) 33.35 kB -0.02% -6 B 🔽
@sentry/browser (incl. FeedbackAsync) 38.46 kB -0.01% -3 B 🔽
@sentry/browser (incl. Metrics) 29.51 kB -0.02% -3 B 🔽
@sentry/browser (incl. Logs) 29.8 kB -0.01% -1 B 🔽
@sentry/browser (incl. Metrics & Logs) 30.43 kB -0.01% -1 B 🔽
@sentry/react 30.31 kB -0.02% -5 B 🔽
@sentry/react (incl. Tracing) 50.84 kB -0.02% -6 B 🔽
@sentry/vue 35.69 kB - -
@sentry/vue (incl. Tracing) 50.88 kB -0.01% -4 B 🔽
@sentry/svelte 28.59 kB -0.01% -2 B 🔽
CDN Bundle 30.36 kB +0.05% +15 B 🔺
CDN Bundle (incl. Tracing) 49.12 kB -0.01% -2 B 🔽
CDN Bundle (incl. Logs, Metrics) 32.56 kB +0.03% +7 B 🔺
CDN Bundle (incl. Tracing, Logs, Metrics) 51.01 kB +0.01% +1 B 🔺
CDN Bundle (incl. Replay, Logs, Metrics) 73 kB -0.03% -18 B 🔽
CDN Bundle (incl. Tracing, Replay) 86.62 kB -0.01% -6 B 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 88.52 kB -0.01% -2 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) 92.4 kB -0.01% -5 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 94.33 kB -0.01% -4 B 🔽
CDN Bundle - uncompressed 89.97 kB +0.02% +15 B 🔺
CDN Bundle (incl. Tracing) - uncompressed 146.82 kB +0.01% +1 B 🔺
CDN Bundle (incl. Logs, Metrics) - uncompressed 96.26 kB +0.02% +15 B 🔺
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 152.51 kB +0.01% +1 B 🔺
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 225.42 kB +0.01% +15 B 🔺
CDN Bundle (incl. Tracing, Replay) - uncompressed 266.32 kB +0.01% +1 B 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 272 kB +0.01% +1 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 280.01 kB +0.01% +1 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 285.68 kB +0.01% +1 B 🔺
@sentry/nextjs (client) 53.41 kB -0.01% -4 B 🔽
@sentry/sveltekit (client) 49.08 kB -0.01% -4 B 🔽
@sentry/core/server 65.15 kB - -
@sentry/core/browser 52.37 kB +0.89% +460 B 🔺
@sentry/node 122.69 kB +0.02% +17 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 85.22 kB - -
@sentry/node - without tracing 87.73 kB +0.03% +25 B 🔺
@sentry/node - without channel injection 102.36 kB +0.02% +18 B 🔺
@sentry/aws-serverless 95.88 kB +0.03% +26 B 🔺
@sentry/cloudflare (withSentry) - minified 199.61 kB -0.04% -79 B 🔽
@sentry/cloudflare (withSentry) 495.94 kB -0.06% -249 B 🔽

View base workflow run

@andreiborza
andreiborza force-pushed the ab/wasm-firefox-fallback branch from cf3c40e to 3eb5ff5 Compare August 27, 2026 12:19
@andreiborza
andreiborza force-pushed the ab/wasm-firefox-fallback branch from 3eb5ff5 to 38529d5 Compare August 27, 2026 14:01
@andreiborza andreiborza changed the title fix(wasm): Match Firefox call-site-derived wasm frames to the single buffer module fix(wasm): Match engine-named wasm frames to the single buffer module Aug 27, 2026
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@andreiborza
andreiborza force-pushed the ab/wasm-firefox-fallback branch from 38529d5 to ae9e41a Compare August 28, 2026 09:05

@cursor cursor 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.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit ae9e41a. Configure here.

mainImages.forEach((image, i) => collect(image, i));
workerImages.forEach((image, i) => collect(image, mainImages.length + i));
return buildIds.size === 1 ? index : -1;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fallback mis-attributes overwritten modules

Low Severity

The single-buffer fallback treats the registry as a complete set of buffer-compiled modules, but unnamed modules at or below V8's hashing cutoff all register under the same placeholder code_file (wasm://wasm/unknown), so a later compile replaces an earlier one. getSingleBufferImageIndex then sees one image and attributes every unmatched wasm:// frame to it, including frames from the overwritten module.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit ae9e41a. Configure here.

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.

1 participant