[Interest] QTBUG-39124 - sqlite3_enable_load_extension crash

BOUCARD Olivier boucard_olivier at yahoo.fr
Wed May 28 09:32:26 CEST 2014

Hi guys,

I have open a bug report one week ago concerning a crash which prevent me to use Qt 5.3 with my application.
I am on Linux x64 and I use the precompiled Qt SDK.

In order to user Spatialite in my software I have to enable extension loading in SQLite.
To do so I use this code:
QVariant v = db.driver()->handle();
if(v.isValid() && qstrcmp(v.typeName(), "sqlite3*") == 0)
{ sqlite3 *handle = *static_cast<sqlite3 **>(v.data()); if(handle != 0) sqlite3_enable_load_extension(handle, 1); }

With Qt 5.2 this works perfectly.
With Qt 5.3 this crashes on the first line of sqlite3_enable_load_extension, which locks the mutex.

Is someone experienced the same issue?

What could have changed in Qt 5.3 that could explain this?

Link to the bug report: https://bugreports.qt-project.org/browse/QTBUG-39124


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140528/7eafcd62/attachment.html>

More information about the Interest mailing list