Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions components/execd/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ if ! touch "$EXECD_ENVS" 2>/dev/null; then
fi
export EXECD_ENVS

# Fix for Docker 18.09 / old glibc compatibility (Issue #508)
export LD_ASSUME_KERNEL=2.33.0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve caller-provided LD_ASSUME_KERNEL

This change unconditionally sets LD_ASSUME_KERNEL=2.33.0, which overwrites any value a caller passes in CreateSandboxRequest.env; sandbox containers always execute this script because Docker provisioning uses entrypoint=[BOOTSTRAP_PATH] in server/src/services/docker.py. In workloads that intentionally set a different LD_ASSUME_KERNEL (or need to disable it), the requested environment is ignored, which can cause runtime incompatibilities for those images. Treat this as a default-only value (set it only when unset) so explicit user configuration remains authoritative.

Useful? React with 👍 / 👎.


echo "starting OpenSandbox Execd daemon at $EXECD."
$EXECD &

Expand Down
3 changes: 3 additions & 0 deletions server/src/services/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -1866,6 +1866,9 @@ def _build_labels_and_env(
if value is None:
continue
environment.append(f"{key}={value}")
# Fix for Docker 18.09 / old glibc compatibility (Issue #508)
# Force use of legacy clone() instead of clone3() for thread creation
environment.append("LD_ASSUME_KERNEL=2.33.0")
return labels, environment

def _resolve_image_auth(
Expand Down