[Bug 1995362] Re: ldd / ld-linux-x86-64.so.2 crashes with SIGSEGV when ran against certain shared libraries
Brian Murray
1995362 at bugs.launchpad.net
Fri Jul 28 18:36:29 UTC 2023
Hello Rok, or anyone else affected,
Accepted glibc into jammy-proposed. The package will build now and be
available at https://launchpad.net/ubuntu/+source/glibc/2.35-0ubuntu3.3
in a few hours, and then in the -proposed repository.
Please help us by testing this new package. See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed. Your feedback will aid us getting this
update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
jammy to verification-done-jammy. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-jammy. In either case, without details of your testing we will
not be able to proceed.
Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in
advance for helping!
N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.
** Tags removed: verification-done verification-done-jammy
** Tags added: verification-needed verification-needed-jammy
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glibc in Ubuntu.
https://bugs.launchpad.net/bugs/1995362
Title:
ldd / ld-linux-x86-64.so.2 crashes with SIGSEGV when ran against
certain shared libraries
Status in glibc package in Ubuntu:
Fix Released
Status in glibc source package in Jammy:
Fix Committed
Status in glibc source package in Kinetic:
Fix Released
Bug description:
[Impact]
On Ubuntu 22.04.1 LTS, `ldd` (or rather, the underlying `/lib64/ld-
linux-x86-64.so.2`) crashes when ran against some of the python
extension modules from PySide6 PyPI wheels for linux. This does not
happen under 20.04 nor 22.10, and neither does it happen under Fedora
36 (which nominally uses the glibc of same version, 2.35).
When running jammy docker container, the crash does not happen as long
as glib2 libraries are not installed (are unresolvable).
The problem was encountered when freezing a PySide6-based python
application using pyinstaller, which uses `ldd` to perform binary
analysis (and in cases like this, comes up empty, resulting in missing
libraries).
Original bug report:
https://github.com/pyinstaller/pyinstaller/issues/7197
The problem (at least in PyInstaller + PySide6 context) might become
more widespread as `ubuntu-22.04` CI runners become more prevalent on
the GitHub actions.
It has been fixed upstream in the following patch:
https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=10fe3cd309b32c003a6b98e08928e7d6007caecf
[Test Plan]
The patch includes tests for this. However, it's fairly easy to test
on an installed system:
$ sudo apt install -y python3 python3-venv libglib2.0-0
$ python3 -m venv venv
$ . venv/bin/activate
$ pip install pyside6
$ LD_TRACE_LOADED_OBJECTS=1 /lib64/ld-linux-x86-64.so.2 venv/lib64/python3.10/site-packages/PySide6/QtQml.abi3.so
That last command should *NOT* segfault.
[Regression potential]
We're touching a fairly sensible part of the system here. Besides "ldd
is totally broken"-type scenarios, there could be more subtle breakage
due to changes in the load order of dynamic libraries (unlikely given
the nature of the patch, though)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1995362/+subscriptions
More information about the foundations-bugs
mailing list