Problems with [Q]GpgME and Qt6
Ingo Klöcker
kloecker at kde.org
Sat Nov 25 20:54:57 CET 2023
On Samstag, 25. November 2023 04:15:28 CET Ron Murray via Gnupg-users wrote:
> Here, for example, is the code I use to retrieve my secret key list:
> QGpgME::KeyListJob *job = QGpgME::openpgp()->keyListJob(false, false,
> false);
> // Prepare result vector
> std::vector<GpgME::Key> keys;
> // Execute it synchronously
> GpgME::KeyListResult result = job->exec(QStringList() <<
> QStringLiteral(""), // No pattern: get all
> true, keys); // Only secret keys
> delete job;
> Now, this is straight out of the "t-keylist.cpp" test file that comes with
> the GpgME source. It works perfectly well under Qt5. but under Qt6, it
> segfaults at the "job->exec" line.
> Anyone have a clue why it crashes under Qt6?
I cannot reproduce this on openSUSE Tumbleweed with Qt 6.6.0. I changed the
`job->exec` call in t-keylist.cpp as above. This makes the test fail (because
the assertion is no longer true), but it doesn't crash. It would help if you'd
give us a backtrace of the segfault.
Regards,
Ingo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20231125/682beb87/attachment-0001.sig>
More information about the Gnupg-users
mailing list