Skip to content

flatpak-coredumpctl: Guard against unexpected coredumpctl output - #6680

Merged
swick merged 1 commit into
flatpak:mainfrom
razzeee:fix/coredump-error-msg
Jun 8, 2026
Merged

swick merged 1 commit into
flatpak:mainfrom
razzeee:fix/coredump-error-msg

Conversation

@razzeee

@razzeee razzeee commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

The bare tuple unpack 'executable, = re.findall(...)' raises a cryptic ValueError if the pattern matches zero or more than one line. Replace it with an explicit length check and a clear error message.

Also pass count=1 to str.replace() so a /newroot prefix is only stripped once and /app/ paths are passed through unchanged.

The bare tuple unpack 'executable, = re.findall(...)' raises a cryptic
ValueError if the pattern matches zero or more than one line. Replace it
with an explicit length check and a clear error message.

Also pass count=1 to str.replace() so a /newroot prefix is only stripped
once and /app/ paths are passed through unchanged.
@swick
swick added this pull request to the merge queue Jun 8, 2026
Merged via the queue into flatpak:main with commit 6b6fdda Jun 8, 2026
11 checks passed
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.

2 participants