Using GPGme 1.17.0 (compiled from source, git commit 72bb46b34f5191f672a5356e2f152e6ad9440554) with GnuPG 2.2.27 (from Debian 11 package):
I call gpgme_op_interact to change the trust level of a key (trying to implement this Stackoverflow question in C++: https://stackoverflow.com/questions/70645830/changing-key-trust-level-validity-with-gpgme/71085476#71085476) with this trivial callback function:
gpgme_error_t trust_callback(void *opaque, const char *keyword, const char *args, int fd) { /* some debug output to stderr here */ return 0; }
The callback function gets called once and receives these parameters:
text keyword: >KEY_CONSIDERED< args: >4BBD09DDD1DEC441820B37CEE05D1580053BE6FF 0< fd: -1
After that, a Bus error occurs in GPGme's src/debug.c in line 450:
val = buffer[idx++];
The value of buffer is 0xf8458b48f87d8948.
Even if I am using that callback completely wrong, a bus error seems a bit drastic...