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

Crash on deinitialization of QSqlDatabase object created in a thread

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.4.0, 6.5.0, 6.6.0, 6.7.0, 6.8.0
    • Core: Threads, SQL Support
    • None
    • Windows 11
      MinGW 11.2
      Postgres 15
    • Windows

    Description

      The attached main.cpp file provides a minimal code example that reproduces the crash. When using SQLite instead of Postgres the problem doesn't happen.

      This issue can only be observed when executing the program within GDB. The backtrace.txt file contains a relevant segment of the stack trace for a reference.

      All Qt versions starting from 6.4.0 appear to be affected by this issue. 

      Bisecting qtbase narrowed it down to commit 4a93285 (https://github.com/qt/qtbase/commit/4a93285b166ceceaea2e10c8fc6a254d2f7093b9)

       

      Attachments

        1. backtrace.txt
          2 kB
        2. main.cpp
          0.5 kB

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              e.zhuk Egor Zhuk
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews