Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
5.12.0
-
None
-
-
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
- relates to
-
QTBUG-43889 App crash when using QSqlQueryModel with QSqlQuery as prepared statement
- Closed
For Gerrit Dashboard: QTBUG-79019 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
276419,2 | QODBC: Fix crash when a prepared statement is deleted after the db was removed | 5.13 | qt/qtbase | Status: MERGED | +2 | 0 |