Skip to content

#issue #1382 Fix musl detection#1383

Open
doubcrick wants to merge 2 commits intoxerial:masterfrom
doubcrick:master
Open

#issue #1382 Fix musl detection#1383
doubcrick wants to merge 2 commits intoxerial:masterfrom
doubcrick:master

Conversation

@doubcrick
Copy link

when /proc/self/map_files exists but does not contain musl

Improve musl detection logic to avoid false negatives when /proc/self/map_files exists but lacks musl entriesIn some container environments, /proc/self/map_files exists but does not expose musl paths,causing isMusl() to incorrectly return false and load the glibc native library.This patch improves detection robustness by checking musl loader files and /proc/self/maps.

…s but does not contain musl

Improve musl detection logic to avoid false negatives when /proc/self/map_files exists but lacks musl entriesIn some container environments, /proc/self/map_files exists but does not expose musl paths,causing isMusl() to incorrectly return false and load the glibc native library.This patch improves detection robustness by checking musl loader files and /proc/self/maps.
@gotson
Copy link
Collaborator

gotson commented Feb 26, 2026

thanks for the PR. Can you fix the code formatting with mvn spotless:apply ?

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.

2 participants