Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-522

Investigate possibility of not using libpython shared libraries on debian based distros

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.6, 5.9
    • 5.6
    • PySide
    • None
    • Ubuntu / Debian
    • 11dbdfc351d70f556790d6ff5b5eac488b8eca0c

    Description

      Debian and Ubuntu ship a Python 2 interpreter that is linked to a static libpython2.7.a file, instead of a libpython2.7.so dynamic shared library.
      They also ship a separate package that provides the dynamic shared library, but it is not used by any of the std extensions or other packages (except for packages that embed the python interpreter in their application).

      PySide though, links to the dynamic shared library, which means that two sets of Python symbols are loaded when PySide extensions are loaded: the ones in the interpreter itself, and the ones from the dynamic library.

      This causes duplicate symbols, which so far have been resolved by the dynamic loader in a way that made everything work (the shared library symbols were ignored, and the ones in the interpreter were picked up). This seems like depending on implementation behavior, and will lead to crashes if that were ever changed.

      There is no need for PySide to link the shared libraries if the Python interpreter does not.
      Investigate / implement a way of checking how was the Python interpreter built, and make the proper decision when linking to the shared library is actually necessary.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            alexandru.croitor Alexandru Croitor
            alexandru.croitor Alexandru Croitor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes