Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(ci): avoid uv exit segfault in backend ci (#110119)

Raúl Negrón-Oteroa992728d0dd1
diff --git a/.depot/workflows/ci-backend.yml b/.depot/workflows/ci-backend.yml
index 7725dbdeefd5..b9f7a7080ef4 100644
--- a/.depot/workflows/ci-backend.yml
+++ b/.depot/workflows/ci-backend.yml
@@ -213,6 +213,9 @@ env:
OBJECT_STORAGE_ACCESS_KEY_ID: 'object_storage_root_user'
OBJECT_STORAGE_SECRET_ACCESS_KEY: 'object_storage_root_password'
UV_HTTP_TIMEOUT: 120
+ # A 4 GiB thread stack cache avoids the uv exit segfault (code 139) on glibc before 2.43.
+ # Remove when uv ships the fix: https://github.com/astral-sh/uv/issues/21428
+ GLIBC_TUNABLES: glibc.pthread.stack_cache_size=0x100000000
# tests would intermittently fail in GH actions
# with exit code 134 _after passing_ all tests
# this appears to fix it
diff --git a/.github/workflows/ci-backend.yml b/.github/workflows/ci-backend.yml
index d1467834506a..8093cfaa7da8 100644
--- a/.github/workflows/ci-backend.yml
+++ b/.github/workflows/ci-backend.yml
@@ -97,6 +97,9 @@ env:
OBJECT_STORAGE_ACCESS_KEY_ID: 'object_storage_root_user'
OBJECT_STORAGE_SECRET_ACCESS_KEY: 'object_storage_root_password'
UV_HTTP_TIMEOUT: 120
+ # A 4 GiB thread stack cache avoids the uv exit segfault (code 139) on glibc before 2.43.
+ # Remove when uv ships the fix: https://github.com/astral-sh/uv/issues/21428
+ GLIBC_TUNABLES: glibc.pthread.stack_cache_size=0x100000000
# tests would intermittently fail in GH actions
# with exit code 134 _after passing_ all tests
# this appears to fix it