https://bugs.documentfoundation.org/show_bug.cgi?id=156352

--- Comment #51 from Patrick Luby <[email protected]> ---
(In reply to steve from comment #50)
> export GPGME_DEBUG=3:~/mygpgme.log
> See no crash and everything behave as expected.
> 
> Repeat steps starting LibreOfficeDev without Terminal and seen immediate
> crash after clicking "Sign Document" 🤯

This is very, very interesting data and it might be a small breakthrough. I am
thinking that enabling logging at a verbose enough level is slowing the gpgme
code a bit (I would think only slightly since it is probably just doing
printf() to a file with existing data) and that is what is stopping the
crashing.

Usually this is a symptom of a "race condition" which is two
threads/processes/etc. both using a shared resource such as memory or a file
and the result depends on which competing thread/process/etc. gets to the
resource first.

So give me a few days and I will read through the LibreOffice code that both of
your last crashes converge in and see if I can find something that looks
suspicious. I know that gpgme communicates to the gpg command that it executes
via some files and/or pipes so maybe the LibreOffice code is reading ahead
before the gpg command has had a chance write its output to the files and/or
pipes? Just a wild theory at this point but overall this does give me something
new to investigrate so that's progress.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to