Skip to content

feat: Parse ELF core notes as fallback for coredump data sources#101

Merged
basil merged 1 commit into
masterfrom
elf
Mar 1, 2026
Merged

feat: Parse ELF core notes as fallback for coredump data sources#101
basil merged 1 commit into
masterfrom
elf

Conversation

@basil

@basil basil commented Mar 1, 2026

Copy link
Copy Markdown
Owner

Parse NT_PRSTATUS, NT_PRPSINFO, and NT_AUXV notes from the core file ELF headers (both 32-bit and 64-bit layouts) and use them as fallbacks in CoredumpSource when the corresponding systemd journal fields are unavailable. This enables extracting process stat, status, comm, cmdline, auxv, word size, and byte order directly from minimal core dumps that lack journal metadata.

Also add ByteOrder::u16/u32/u64 endian-aware conversion helpers and extract signal_bitmask_to_set for reuse from raw u64 signal masks.

Fixes #97
Fixes #98

Parse NT_PRSTATUS, NT_PRPSINFO, and NT_AUXV notes from the core file
ELF headers (both 32-bit and 64-bit layouts) and use them as fallbacks
in CoredumpSource when the corresponding systemd journal fields are
unavailable. This enables extracting process stat, status, comm,
cmdline, auxv, word size, and byte order directly from minimal core
dumps that lack journal metadata.

Also add ByteOrder::u16/u32/u64 endian-aware conversion helpers and
extract signal_bitmask_to_set for reuse from raw u64 signal masks.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@basil basil added the Component: Process Source Issues related to process sources label Mar 1, 2026
@basil
basil merged commit 4580dc3 into master Mar 1, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Process Source Issues related to process sources

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parse NT_PRPSINFO from core dumps Parse NT_PRSTATUS from core dumps

1 participant