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

Javascript code causes segfault in iOS when using Qt debug library

    XMLWordPrintable

Details

    • iOS/tvOS/watchOS

    Description

      I am getting a crash when using the Qt debug library and testing in iOS devices. It does not happen in simulators, it does not happen on the release Qt library.

      Essentially, my application segfaults while executing my Javascript code. I was not able to create a minimum case scenario for this as I don't really understand which code path is triggering it. However, I can reproduce it 100% of the time in the sample app I created for the library I work on, the code is available here. If you execute the linked sample on an iOS device and click the "Submit ping" button on the app, you will be able to see the crash. It happens immediatelly.

      I am currently using Qt 5.15.2, but I checked and the same crash occurs in Qt 6.3.

      From the investigation I have done, the crash seems to be caused by a null reference created on this line. I am eager to hear your assesment on this though, and curious to know if there is any workaround I can apply on the Javascript code temporarily so as not to hit this crash.

      Attachments

        1. trace.txt
          38 kB
        2. trace6.1.3
          37 kB
        For Gerrit Dashboard: QTBUG-96788
        # Subject Branch Project Status CR V

        Activity

          People

            qtqmlteam Qt Qml Team User
            brizental Beatriz Rizental
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes