ELSEIF
Your brief EB
364 stories from 110 feeds 382 clusters Refreshed 2 minutes ago next pull 00:07

TECH Signal 399

Self-extracting shell scripts fail with segmentation faults for files over 2GiB

A common method for embedding large tar files in shell scripts breaks when the embedded data exceeds 2GiB due to a segmentation fault in Bash here-documents

WHY IT MATTERS

Engineers who rely on self-extracting shell scripts for deployment or distribution may encounter silent failures when handling large files. The workaround avoids the crash but introduces new edge cases that could corrupt data. This limitation is undocumented and may affect automation pipelines that assume the technique is robust

Written by elseif from the cluster below · every claim links back to a source

The three things worth knowing

01

Base64-encoded self-extracting tar scripts crash when embedded data exceeds 2GiB due to Bash here-document limits

02

A workaround using sed with a marker avoids the crash but risks false positives if the marker appears in the data

03

A revised approach skips fixed header lines instead of searching for a marker, eliminating the edge case at the cost of rigid script structure

THE CLUSTER

Same story, 1 feed.

ORDERED BY FIRST SEEN
vinnie.work via Lobsters Self Extracting Tar Files Open ↗