[Bug]: Linux service SIGSEGV crash loop after update; transient binary differences disappear after cache eviction
Before submitting
- [x] Searched existing issues for SIGSEGV, segmentation fault, and the affected nightly.
- [x] Included observed behavior, recovery, and binary checks below.
Area
apps/server / background service. This is an incident report with an unresolved cause, not a confirmed defect in the published release. A clean download works, and the final checks suggest a host/page-cache problem. Filing the observations in case they help investigate similar service failures.
Version and environment
Updated from 0.0.46-nightly.20261013.3080 to 0.1.1-nightly.20261016.3218.
Ubuntu 26.04.1 LTS, Linux 7.0.0-38-generic, x86_64, Intel Core i7-8750H. Installed standalone Linux x64 CLI, systemd user service. Version files are on XFS over an LVM VDO volume. The web app is accessed through Tailscale Serve.
What happened
On October 16, 2026 (Pacific time), the in-app update handed off to the launcher at 13:58:35. The update was recorded as committed. At 14:15:20, the service exited; each automatic restart also failed. At 14:16:03, systemd stopped retrying with Start request repeated too quickly. The web app remained unavailable because nothing was listening on port 3773. Tailscale itself remained healthy.
The launcher log ended with six instances of:
[service-launcher] Active child exited unexpectedly (SIGSEGV).
Running the installed affected binary with --version also produced a segmentation fault. The previous nightly's --version succeeded. There was no native stack trace in the service log.
Investigation and important qualification
Downloaded the published Linux x64 archive again. Its SHA256 matched the published checksums:
2031a23a6994e09138e36a93a688ca9131d5ea8fb82d3b3eeb50a2817bc80850
Extracted the complete archive and ran its binary with --version and an empty temporary T3CODE_HOME. It succeeded. Compared the fresh and installed binaries: both were 166,485,188 bytes, but initially differed at four offsets (zero-based):
offset installed fresh
65679955 0x04 0x00
65683475 0x08 0x00
65685523 0x08 0x00
65690451 0x04 0x00
Installed SHA256 before cache eviction:
5b51df9625da054a3429daedd77b1dced5c8c617e87b089ed0755c5a09bc7872
Fresh binary SHA256:
71bd6016848e2616cefc5341f61f3820f32ec036f93e848364d0436b67cda887
Then opened the installed binary read-only and called Python's os.posix_fadvise(fd, 0, 0, os.POSIX_FADV_DONTNEED). After that cache-eviction request, the installed binary's hash matched the fresh binary, and the original installed binary's --version succeeded. No binary contents were written or replaced during that step.
This is evidence against a deterministic release regression. I cannot yet explain the transient byte differences, reproduce their origin, or attribute them to T3. No relevant hardware/I/O errors appeared in the kernel journal query, but that does not rule out a host problem.
Steps to investigate
There is no deterministic reproduction of the original corruption. The failure was observable by invoking the affected installed binary with --version; after the cache-eviction step above, it stopped reproducing. A fresh release with an empty T3 home does not reproduce it.
Expected behavior
The installed CLI should start and the background service should remain reachable. If a native crash occurs, diagnostics should make its cause investigable.
Impact and workaround
The service outage blocked access to the app. Before the cache investigation, backed up the SQLite database files (including WAL/SHM), settings, service state, unit, and log while the server was down. Used the previous nightly executable to run:
t3 update 0.0.46-nightly.20261013.3080 --allow-downgrade --yes
The rollback started successfully against the existing data, without restoring an old database. Both local HTTP and the Tailscale HTTPS endpoint returned the app HTML with HTTP 200. The systemd service stayed active with zero restarts during verification. It remains on the previous nightly for now.
Further investigation supports local corruption rather than a release regression.
I copied the freshly downloaded binary into an isolated directory on the root filesystem, with its release dependencies and an empty temporary T3 home. The following controlled sequence reproduced and removed the fault:
- Unmodified copy:
--versionexited 0 and printed the expected version. - Changed only the four bytes listed above to their observed corrupted values:
--versionexited from SIGSEGV (subprocess return code -11), with no output. - Restored those four bytes to zero:
--versionexited 0 again.
These changes were sufficient to produce a native crash without the user's database, running service, Tailscale, or storage volume containing the installed releases.
Three independent O_DIRECT reads of the original installed binary, bypassing Linux's file page cache, now all hash to the clean published binary. Buffered reads match as well. Combined with the earlier cache-eviction recovery, this strongly points to transient local corruption of the cached executable. It does not explain what originally changed those bytes. The four changes were individual 0-to-1 bit flips in the ELF read-only data section.
Kernel logs show no contemporaneous OOM kill, hardware-error report, or filesystem I/O error. No EDAC memory controller is exposed, so absence of a report does not establish healthy RAM. There is a VDO allocation-flags warning at boot three days earlier; there is no evidence tying it to this incident. SMART and deeper VDO checks were unavailable without administrator authentication.
The rollback remains healthy. This report currently provides no demonstrated T3 code defect; the clean published release works. I am preserving the findings rather than attributing the corruption to the release.
[!NOTE] Grok responding on behalf of Julius.
Closing this as not planned: your own checks point to the host, not the release. The published archive matches its checksum, a fresh extract runs, and the installed file went back to matching the release after a page-cache eviction, with no bytes rewritten. Four single-bit flips (0x00 → 0x04/0x08) in a cached file usually mean memory or storage-stack trouble (VDO/LVM, RAM). Running memtest86+ and checking the VDO stats would be the next step.
For context on main: t3 update checks the archive against the published SHA256 and runs the new binary with --version before switching to it. The launcher rolls back if the new version crashes during its trial start. Your crash came about 17 minutes after the update was committed, so the launcher treated it as an ordinary child crash and systemd's restart limit stopped it.
Thanks for the careful write-up and the rollback steps. If this happens again on a different machine or filesystem, comment and we'll reopen.