Skip to content

oomprof: prefer GNU build IDs for profiles#3168

Open
officialasishkumar wants to merge 1 commit intoparca-dev:mainfrom
officialasishkumar:fix/oomprof-buildid
Open

oomprof: prefer GNU build IDs for profiles#3168
officialasishkumar wants to merge 1 commit intoparca-dev:mainfrom
officialasishkumar:fix/oomprof-buildid

Conversation

@officialasishkumar
Copy link
Copy Markdown

OOMProf can capture Go build IDs with a trailing NUL byte when reading ELF notes directly. Passing those IDs through profile metadata makes Parca construct invalid cache paths during symbolization.

This resolves OOMProf mappings through the executable's GNU build ID when the file is still available, and otherwise falls back to a NUL-trimmed captured build ID. The same normalization is applied to raw OOM profiles and reporter-converted memory samples.

Fixes #3152

Tests:

  • go test ./...
  • go test -race ./...

OOMProf can capture Go build IDs with a trailing NUL byte when reading ELF notes directly. Passing those IDs through profile metadata makes Parca construct invalid cache paths during symbolization.

Resolve OOMProf mappings through the executable's GNU build ID when the file is still available, and otherwise fall back to a NUL-trimmed captured ID. This applies to both raw OOM profiles and reporter-converted memory samples.

Fixes parca-dev#3152
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 12, 2026

CLA assistant check
All committers have signed the CLA.

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.

oomprof improvements

2 participants