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

QODBC - Crash when QSqlDatabase is removed when QSqlQuery is still active

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 5.12.0
    • SQL Support
    • None
    • All
    • ed7dd9a6edd7afd8798751c8b1d3ee7802ae253f (qt/qtbase/5.13)

    Description

      This is a similar crash in QODBC like the one fixed in QTBUG-43889 for QPSQL - when a QSqlQuery is destroyed but the QSQlDatabase was already removed, the app crashes. It was first reported here: https://forum.qt.io/topic/107464/qsql-database-segment-fault.

      Here the backtrace for reference:

      1  QODBCResultPrivate::isStmtHandleValid                            qsql_odbc.cpp                  229  0x678c1df1 
      2  QODBCResult::~QODBCResult                                        qsql_odbc.cpp                  975  0x678c6239 
      3  QODBCResult::~QODBCResult                                        qsql_odbc.cpp                  981  0x678c6309 
      4  QSqlQueryPrivate::~QSqlQueryPrivate                              qsqlquery.cpp                  94   0x67b42ee3 
      5  QSqlQuery::~QSqlQuery                                            qsqlquery.cpp                  245  0x67b42f2f 

      Attachments

        Issue Links

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

          Activity

            People

              chehrlic Christian Ehrlicher
              chehrlic Christian Ehrlicher
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes