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

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

XMLWordPrintable

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

      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 

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes