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

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

      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

       

        1. qbug119210.zip
          1 kB
          Friedemann Kleint
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes