mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 21:05:40 +07:00
[GH-ISSUE #4337] [Other] Linux AppImage: bundled ripgrep SIGSEGV and suspected static PIE relocation metadata corruption #1914
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1914
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @takanori-psc on GitHub (Oct 27, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4337
Summary
Strata Desktop's
globandgreptools were observed to fail when their bundled ripgrep (rg) process terminated with SIGSEGV.A read-only investigation identified repeated crashes at the same relative instruction offset and structural differences between bundled
rgbinaries from Strata 0.2.0.x and 0.2.6.These findings suggest a possible ELF post-processing issue involving static PIE relocation metadata.
The precise cause has not been confirmed.
Environment
@deepseek-ai/dsh0.2.1-alpha.3@vscode/ripgrep-linux-x641.18.0Observed crashes
According to the original investigation:
systemd-coredumprecorded 64 SIGSEGV events associated withrgbetween October 21 and October 25, 2026.rg + 0x3ffcf1.The crashed
rgbinaries were not independently compared with the binary examined from 0.2.6.Therefore, we have not confirmed that the crashing binaries contained the same ELF modifications identified in 0.2.6.
We also do not know whether the 0.2.0 bundled binary would crash under equivalent conditions.
No direct execution test of the 0.2.6 binary was performed.
Static ELF investigation
The original investigation compared packaged
rgbinaries from the 0.2.0 series and 0.2.6.It reported:
.text,.rodata,.eh_frame, and.datasections..rela.dynand.dynamicregions in the newer binary filled with0x5Abytes.DT_RUNPATHentry of$ORIGIN.The investigation used static tools including
readelf,objdump,cmp,od, andunsquashfs.Neither binary was verified against the upstream ripgrep package.
A complete SHA-256 digest is not available in the current review materials.
Technical hypothesis
The investigated
rgexecutable was identified as a statically linked PIE executable with self-relocating startup code.According to the original analysis, its startup code references the original
_DYNAMIClocation using RIP-relative addressing.If an ELF rewriting step moved or invalidated relocation metadata without preserving this reference, startup self-relocation might fail or be skipped.
A later operation could then encounter an invalid or unrelocated pointer.
The observed fault location was associated with a
memcpyimplementation containingrep movsq.However, register values were not examined, and there is no direct evidence that an unrelocated pointer caused the fault.
The identical relative crash offset indicates a consistent failure location, not proof of the proposed mechanism.
Furthermore, unchanged examined
.textcontents do not establish whether the crashing historical binaries were modified or unmodified.Possible packaging issue
The combination of:
0x5Abytes in former ELF metadata regions,$ORIGINRUNPATH,suggests a possible ELF rewriting or RPATH/RUNPATH adjustment step.
Tools such as
patchelfare possible candidates, but the responsible operation remains unidentified.The evidence does not establish that such post-processing was the cause of the observed crashes.
Suggested maintainer investigation
PT_DYNAMICinformation and startup code's_DYNAMICreference remain consistent.rg --versionand a basic search.Suggested regression tests
--versionand a basic search._DYNAMIClocation referenced by the startup code is still a valid dynamic section.rgis intended, compare its final packaged bytes with the verified upstream artifact.globandgrepfailures are reported as errors rather than silently treated as zero matches.Investigation limitations
This issue is intended to provide maintainers with actionable diagnostic findings and a falsifiable packaging-related hypothesis, rather than a definitive root-cause determination.
Thank you for looking into this issue.
@github-actions[bot] commented on GitHub (Oct 27, 2026):
Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:
Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment
/reopen.Details: CONTRIBUTING.md
@github-actions[bot] commented on GitHub (Oct 28, 2026):
Thanks, this follows the format now.
@abernicht commented on GitHub (Nov 1, 2026):
Adding another data point since the OP asked whether this shows up on
other setups. It does.
My machine:
Same thing here: glob and grep tools fail, and it's the bundled rg that
dies. On my box it crashes immediately, even a plain
rg --versionfromthe mounted AppImage segfaults, so no search ever runs. The kernel log
shows the same crash over and over.
Completely unrelated to my hardware/software otherwise: the ripgrep that
comes with Mint (14.1.0) works fine, and reinstalling the AppImage
changes nothing, which makes sense if the bad binary is baked into it.
Interesting that both of us are on a 7.0 kernel and AMD hardware, like
you. Would be good to know if it also happens on kernel 6.x, maybe the
maintainers can test that quickly. Hope the packaging info from your
analysis gets picked up, would love working grep in Strata again.
@61e7fe4d commented on GitHub (Nov 2, 2026):
Also experiencing "Error: grep search command was killed by signal SIGSEGV".
Same crash offset as reported here (
rg + 0x3ffcf1).Strata-0.2.9-linux-x86_64.AppImage
OS: CachyOS x86_64
Kernel: Linux 7.3.0-4-cachyos
CPU: AMD Ryzen 9 5900X
GPU: AMD Radeon RX 6800 XT