Skip to content

publish-cvcpkg: the CUDA lane runs cvcpkg without the job's LD_LIBRARY_PATH - #1457

Merged
transfix merged 1 commit into
masterfrom
fix/cuda-lane-cvcpkg-ld-path
Nov 22, 2026
Merged

transfix merged 1 commit into
masterfrom
fix/cuda-lane-cvcpkg-ld-path

Conversation

@transfix

Copy link
Copy Markdown
Owner

publish-cvcpkg's build-cuda (release) has failed on v4.0.3 (run 44925109933, both attempts) and on v4.0.4 (run 44962885110). The step "Install this release's cvcgl" errors out with "cvcgl (linux/x86_64/release) did not reach the catalog within 120 min". cvcgl had been on the catalog the whole time. pycvc-gl-cp311-cuda hasn't been published since 4.0.0.

What happens. Every cvcpkg install "cvcgl==$VER" in that step installs all 104 components, prints cvcpkg: done -- 104 component(s) installed, and then dies with Segmentation fault (core dumped). That's 40 of 40 tries in 4.0.3's second attempt. The wait takes the non-zero exit for "not there yet", retries every 2 minutes, and gives up after 120.

Why. The step "Install CUDA family deps" puts $PY/lib first on LD_LIBRARY_PATH for the rest of the job through GITHUB_ENV, so numpy can load its openblas. cvcpkg on that runner is the frozen 2.5.14 binary, which carries its own libraries. Once cvcgl's closure is in $PY/lib, it loads those instead and crashes on exit.

Reproduced on prettyhatemachine, the runner's host, in nvidia/cuda:12.9.1-devel-ubuntu22.04, with that binary and setup-python's tool dir:

LD_LIBRARY_PATH cvcpkg install cvcgl==4.0.3 (prefix already full)
/__w/_tool/Python/3.12.13/x64/lib:/usr/local/cuda/lib64 exit 0
the same with the prefix's lib first, as in the job done -- 104 component(s) installed, then exit 139 (SIGSEGV)

A fresh install into an empty prefix without the prefix's lib on the path also exits 0. The pycvc-cp311-cuda pack and publish ran before cvcgl's closure was in $PY, which is why that package published.

The fix (.github/workflows/publish-cvcpkg.yml, the build-cuda job only):

  • Every cvcpkg call after the family deps step runs as env -u LD_LIBRARY_PATH cvcpkg ..., as ci.yml already does elsewhere. That covers the cvcgl install (and its dry-run fallback), and the pack and publish of pycvc-cp311-cuda and pycvc-gl-cp311-cuda. The builds keep the variable; numpy needs it.
  • The wait treats exit 128 + N as a crash. It stops at once with ::error::cvcpkg install cvcgl==<ver> died on signal N (exit 128+N); that is a crash, not a cvcgl missing from the catalog, instead of waiting out the 120 minutes.

Checked. I ran the step's script, extracted from the workflow, with a stub cvcpkg:

stub step
succeeds exit 0 after 1 call
exits 139 exit 1 after 1 call, with the crash error
fails twice, then succeeds retries, exit 0 after 3 calls

The stub saw LD_LIBRARY_PATH unset every time. The workflow still parses as YAML.

Not run: the workflow itself. A dispatch with dry_run=true and publish_cuda=true would exercise this lane without publishing, but it also builds every CPU lane, macOS included. A publishing dispatch would republish every package at the next revision (next-revision: 4.0.4+cvc.2 for everything already up). So the missing pycvc-gl-cp311-cuda is left for the next tag.

…Y_PATH

The family deps step puts $PY/lib first on LD_LIBRARY_PATH for the rest of the job (numpy's
openblas). cvcpkg is a frozen binary with its own libraries: once cvcgl's closure is in $PY/lib it
loads those instead and segfaults on exit. v4.0.3's and v4.0.4's cvcgl install did on every try,
after a complete install, and the wait read it as "not on the catalog yet" until its 120 minutes
ran out, so pycvc-gl-cp311-cuda has not been published since 4.0.0.

Every cvcpkg call after that step drops the variable (env -u LD_LIBRARY_PATH, as ci.yml does), and
the wait stops on a crash (exit 128 + N) with an error that says so.
@transfix
transfix merged commit f310173 into master Nov 22, 2026
31 checks passed
@transfix
transfix deleted the fix/cuda-lane-cvcpkg-ld-path branch November 22, 2026 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant