Repository navigation
Conversation
Stock @datadog/pprof reads the AsyncContextFrame map in its signal handler with 8-byte tagged fields, so CPED sample labels segfault on our pointer-compressed Node 26. Read compressed fields when V8 is built with pointer compression, and fail the image build if labels don't work or a compaction-stress soak crashes. Co-authored-by: Cursor <cursoragent@cursor.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.
Summary
Agent notes (Claude Opus 5.5)
LunaServer can't label Datadog CPU profile samples per request today. Labels need pprof's AsyncContextFrame (CPED) mode, and stock
@datadog/pprofreads that map in its signal handler assuming 8-byte tagged fields, so it segfaults on our pointer-compressed V8 (DataDog/pprof-nodejs#428, still open). This patches pprof 5.15.1'smap-get.ccto read 4-byte compressed fields when V8 is built with pointer compression. Astatic_assertagainst V8's headers catches a width mismatch at compile time. A labeling smoke test and a--stress-compactionsoak fail the image build if the layout is wrong.Nothing changes in LunaServer until codez picks up the new packages tarball and profiled pods set
ASANA_PPROF_POINTER_COMPRESSION_SAFE=true(codez#473085 reads that flag).Rollout once reviewed
main). Note that running the packages workflow from a branch replaces thenode-v26.13.1-releaseasset in place.node_gyp_packages_{amd64,arm64}_node26in codez.Open questions
otel-thread-ctx.cc, which refuses to build with pointer compression, so moving past 5.15.1 needs that fixed as well.Asana tasks: https://app.asana.com/1/15793206719/dev/space/1220418525288093/ticket/1221036693006503
CC:
Test Plan
nodejs26pc): stock pprof segfaults with CPED; the patched build labels correctly, survives a 30 s soak with and without--stress-compaction, and the 14-case LunaServer census suite passes.