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

Qt tries to load invalid library from CWD

    XMLWordPrintable

    Details

    • Platform/s:
      Linux/X11
    • Commits:
      e6f1fde24f77f63fb16b2df239f82a89d2bf05dd (qt/qtbase/5.14.1) eb192256e74ba46e719fcadcb962592d19612f6e (qt/qtbase/5.12.7)

      Description

      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.

        Attachments

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

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes