Skip to content

i#7962: Fix elfutils crash#7963

Merged
derekbruening merged 3 commits into
masterfrom
i7962-elfutils-crash
Jun 23, 2026
Merged

i#7962: Fix elfutils crash#7963
derekbruening merged 3 commits into
masterfrom
i7962-elfutils-crash

Conversation

@derekbruening

@derekbruening derekbruening commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Fixes a crash where elfutils (since its update in PR #7938) tries to un-compress in-place onto read-only memory by changing drsyms for UNIX to mmap as copy-on-write. This should have no extra cost when the mapping is never written.

Tested on a local Linux distro where 16 tests crash without the fix (since the local libc requires un-compression) and work with the fix.

Fixes #7962

Fixes a crash where elfutils tries to un-compress in-place onto
read-only memory by changing drsyms for UNIX to mmap as
copy-on-write. This should have no extra cost when the mapping are
never written.

Tested on a local Linux distro where 16 tests crash without the fix
and work with the fix.

Fixes #7962
@derekbruening derekbruening requested a review from edeiana June 23, 2026 01:28
Comment thread ext/drsyms/drsyms_unix_common.c Outdated
@philramsey-arm philramsey-arm self-requested a review June 23, 2026 10:52

@philramsey-arm philramsey-arm left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Checked that this fixes the failing tests in our CI

@derekbruening derekbruening merged commit 3dfb2f9 into master Jun 23, 2026
23 checks passed
@derekbruening derekbruening deleted the i7962-elfutils-crash branch June 23, 2026 15:00
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.

CRASH drsyms elf_compress called from drsyms on glibc 2.42

3 participants