Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-81272

Qt tries to load invalid library from CWD

XMLWordPrintable

    • Linux/X11
    • e6f1fde24f77f63fb16b2df239f82a89d2bf05dd (qt/qtbase/5.14.1) eb192256e74ba46e719fcadcb962592d19612f6e (qt/qtbase/5.12.7)

      With strace, it is visible that Qt (installed in /usr/lib64) tries to load a plugin relative to the current directory:

      ~> strace -fefile qdbusviewer |& grep -i hasw
      [pid  3055] openat(AT_FDCWD, "haswell/libXcursor.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Datei oder Verzeichnis nicht gefunden)
      [pid  3055] openat(AT_FDCWD, "haswell/libXcursor", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Datei oder Verzeichnis nicht gefunden)
      

      This is undesirable as the CWD contents can be unknown, so it might be finding something which it's not supposed to.

        For Gerrit Dashboard: QTBUG-81272
        # Subject Branch Project Status CR V

            thiago Thiago Macieira
            vogtinator Fabian Vogt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes