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

Crash on deinitialization of QSqlDatabase object created in a thread

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P1: Critical 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

      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)

       

        1. backtrace.txt
          2 kB
          Egor Zhuk
        2. main.cpp
          0.5 kB
          Egor Zhuk
        For Gerrit Dashboard: QTBUG-131476
        # Subject Branch Project Status CR V

            Unassigned Unassigned
            e.zhuk Egor Zhuk
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: