[Development] QString, QVariant and QSQLite

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Wed May 26 22:31:10 CEST 2021


Am 26.05.2021 um 21:39 schrieb Alberto Mardegan:
> Hi there!
>    I'm encountering some sort of memory corruption issue in a library I'm
> using, which does not cause a crash, but rather a QSQLite query to
> sometimes simply return no results, without errors or warnings.
>
> You can find the valgrind trace here:
> https://git.sailfishos.org/mer-core/qtcontacts-sqlite/issues/7#note_90394
>
> What is happening is that we bind a couple of SQLite parameters to a
> prepared query. The first bound parameter is a QString.
>
Your observation looks correct even though I wonder why this was never
found before since this was not changed since the initial Qt5 import :)
What Qt version do you use?
Please fill a bug report with a minimal, compilable example.

Thx,
Christian


More information about the Development mailing list