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

Linux/QML: Qt.openUrlExternally terminates process in Qt 6.6.0 (with address sanitizer)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 6.6.0
    • Quick: Other
    • None
    • Linux
    • Linux/Wayland

    Description

      In my QML code I open URL in an external browser like this:

      Qt.openUrlExternally(link) 
      

      {{}}

      When I compile with Qt 6.5.3 it works fine.

      When I compile with Qt 6.6.0 the external web browser opens the link, but my application terminates with exit code 1.

      This only happens when I enable the address sanitizer of gcc in CMakeLists.txt like this:

      add_compile_options(-fsanitize=address)
      add_link_options(-fsanitize=address)

      Without the address sanitizer it works fine in Qt 6.6.0

      It seems that Qt 6.6.0 causes some conflict with the address sanitizer.

      My gcc version is: gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0

      I create this bug report as follow up from:

      https://forum.qt.io/topic/152088/upgrade-to-qt-6-6-0-breaks-qt-openurlexternally

       

      Attachments

        1. qbug119210.zip
          1 kB
          Friedemann Kleint

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              michel_de_boer Michel de Boer
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes