<div dir="ltr"><div dir="ltr"><div dir="ltr">
<div>I'm trying to track down an access violation I'm encountering while
using GPGME to encrypt and decrypt data from within a C# app. This is
the error I'm hitting: "Exception thrown at 0x0057E018 in dotnet.exe:
0xC0000005: Access violation executing location 0x0057E018". Unfortunately I have not been successful in getting debug symbols
working in neither gdb on Windows nor Visual Studio, so I haven't been
able to look at a native stack trace to work out where it's coming from
:(<br><br></div><div>I'm using gpgme_set_pinentry_mode to set the
pinentry mode to "loopback", and the access violation is being
encountered after my pinentry callback returns. It works fine if I don't
use loopback, and instead use the system's pinentry mechanism.<br></div><div><br></div><div>
<div>Windows 10 version 1809<br></div><div>gpg version 2.2.11</div><div>gpgme 1.12.1</div><div><br></div><div>I can post the full code if needed, but basically it's a modified version of the PgpEncryptDecrypt sample from gpgme-sharp: <a href="https://github.com/Daniel15/gpgme-sharp/blob/master/Examples/PgpEncryptDecrypt/Program.cs" target="_blank">https://github.com/Daniel15/gpgme-sharp/blob/master/Examples/PgpEncryptDecrypt/Program.cs</a></div><div><br></div><div>Log from when I call gpgme_op_encrypt until the app crashes: <a href="https://gist.github.com/Daniel15/925ed7346933e95c47830fae635c6b1c">https://gist.github.com/Daniel15/925ed7346933e95c47830fae635c6b1c</a></div><div>Log for the entire session (finds a key, encrypts some data, then tries to decrypt it): <a href="https://gist.github.com/Daniel15/59d95a3bbb75a94aa6fd8e419fc21588">https://gist.github.com/Daniel15/59d95a3bbb75a94aa6fd8e419fc21588</a></div><div><br></div><div>Thanks!<br></div></div>
<div><div dir="ltr" class="gmail_signature"><div dir="ltr"><span style="font-size:12.8px">--</span><br style="font-size:12.8px"><span style="font-size:12.8px">Regards,</span><br style="font-size:12.8px"><span style="font-size:12.8px">Daniel Lo Nigro</span><br style="font-size:12.8px"><a href="https://d.sb/" style="font-size:12.8px" target="_blank">https://d.sb/</a><span style="font-size:12.8px"> | </span><a href="http://twitter.com/Daniel15" style="font-size:12.8px" target="_blank">Twitter</a><span style="font-size:12.8px"> | </span><a href="http://www.facebook.com/daaniel" style="font-size:12.8px" target="_blank">Facebook</a><br></div></div></div></div></div></div>