Repository navigation
Pick the versioned libpython for idapyswitch - #19
Merged
Merged
Conversation
The GUI smoke step located Python's shared library with
find "$PYTHON_LIBDIR" -maxdepth 1 -name 'libpython3*.so*' -print -quit
and the hosted toolcache lib directory holds three matches:
libpython3.11.so.1.0, libpython3.11.so and libpython3.so. `-print -quit`
returns whichever comes first in directory order, and libpython3.so is the
stable-ABI forwarder, which carries no version. idapyswitch rejects it:
Cannot determine python library version for ".../libpython3.so":
Unsupported python version 0.0.0 ('') (3.8+ is required)
exit code 110. The step is unchanged since it last passed on 2026-08-04; the
hosted Python moved 3.11.15 -> 3.11.16 and the re-extracted directory now
yields the forwarder first. It was always a coin flip.
Ask sysconfig for INSTSONAME (the versioned soname), falling back to
LDLIBRARY, and never PY3LIBRARY. Echo the chosen path so the next failure
here says which library was used.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
IDA integrationfails at Configure IDAPython for GUI smoke with exit 110:Not caused by any plugin change. It also fails on
main(run 35063649418), whose only new commit is the README badge from #14.Cause
The step locates Python's shared library with:
PYTHON_LIBRARY="$(find "$PYTHON_LIBDIR" -maxdepth 1 -name 'libpython3*.so*' -print -quit)"That directory holds three matches —
libpython3.11.so.1.0,libpython3.11.soandlibpython3.so— and-print -quitreturns whichever comes first in directory order, not a sorted or preferred one.libpython3.sois the stable-ABI forwarder and carries no version, soidapyswitchcan't read one out of it.The step is byte-identical to the last run that passed, on 2026-08-04. What changed is the runner: hosted Python went 3.11.15 → 3.11.16, and the re-extracted toolcache directory now yields the forwarder first. The step was always a coin flip; the toolcache refresh flipped it.
Why it went unnoticed for six weeks
licensed-linuxis gated ongithub.event.pull_request.head.repo.full_name == github.repository, and every PR since 2026-08-12 has come from ther0ny123fork, so the job reportedskippedeach time. #18 is the first branch on the origin repo since then, which is why it surfaced there.Fix
Ask
sysconfigfor the library instead of globbing:INSTSONAME(the versioned soname), falling back toLDLIBRARY, and neverPY3LIBRARY(libpython3.so). The chosen path is echoed so the next failure here says which library was used.Verified
Ran the step as CI runs it — extracted from the YAML with
yaml.safe_load, executed underbash --noprofile --norc -e -o pipefail— against a stubidapyswitchthat reproduces the version probe, and a fakeLIBDIRcarrying all three filenames with asysconfigmatching the runner's:libpython3.11.so.1.0, exit 0yaml.safe_loadparses the workflow;pytest(82) andruffare unaffected and clean.Also affects #17
mcrit_plugin'sida-tests.ymlin #17 carries the identical line (.github/workflows/ida-tests.yml:370). It has only ever run as a fork PR, so it has always skipped — it will hit this the first time it runs for real. Worth porting there too.🤖 Generated with Claude Code