Re:Multiversion Python Thoughts
by the_mitsuhiko on Tuesday October 01, 2024 @04:46AM
(#41706043)
They don’t show up in the global symbol namespace usually so it’s fine. It’s only an issue for some libraries that load globally so that one library can reference another c library.
Re:Multiversion Python Thoughts
by snatchpiesinger on Tuesday October 01, 2024 @05:17AM
(#41706223)
Python dlopens binary wheels with RTLD_LOCAL on Linux, and I assume it does the equivalent on Windows.
There were issues relatively recently with -ffast-math binary wheels in Python packages, as some versions of gcc generates a global constructor with that option that messes with the floating point environment, affecting the whole process regardless of symbol namespaces. It's mostly just an insanity of this option and gcc behavior though.
Re:Multiversion Python Thoughts
by dist-epoch on Tuesday October 01, 2024 @07:43AM
(#41707123)
Windows has a different design where the symbols are not merged, the .dll name is part of the resolution, so you can have 2 different .dll export the same symbol.
For e.g. I write “library” of which v1 depends on somelib.so.1.0.0 and v2 depends on somelib.so.2.0.0
If somelib has some symbols clashing in the names this can cause real problems!