Skip to content

gh-155454: Fix platform.libc_ver() crash on threaded libc without version - #155455

Open
tonghuaroot wants to merge 1 commit into
python:mainfrom
tonghuaroot:fix-platform-libc-ver
Open

gh-155454: Fix platform.libc_ver() crash on threaded libc without version#155455
tonghuaroot wants to merge 1 commit into
python:mainfrom
tonghuaroot:fix-platform-libc-ver

Conversation

@tonghuaroot

@tonghuaroot tonghuaroot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

In the so branch of platform.libc_ver(), a match with a thread suffix
(libc_r, libc_pthread) but no version number left ver as None, which was
then subscripted, raising TypeError. Guard the thread-suffix check with
ver is not None. Regression from gh-90548.

…ut version

A libc.so match with a thread suffix but no version left ver as None, which was
then subscripted. Guard the check with ver is not None.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant