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

            Bug ID: 156352
           Summary: macOS: Save as > Encrypt with GPG key results in hang
                    / crash
           Product: LibreOffice
           Version: 24.2.0.0 alpha0+ Master
          Hardware: All
                OS: macOS (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: [email protected]
          Reporter: [email protected]

Description:
Since Patrick addressed the missing "Encrypt with GPG key" option in the save
dialog in https://bugs.documentfoundation.org/show_bug.cgi?id=155125 whenever
trying to use this option, LibreOffice hangs / crashes.

Filing a new bug to avoid confusion and stick to the one problem per bug rule.

Steps to Reproduce:
1. create writer document
2. type a word and select File > Save
3. Tick "Encrpyt with GPG key" option
4. Click "Save"

Actual Results:
Application stalls. The rainbow pizza of death shows up and process is listed
as "Not Responding" in Activity Monitor.

Here is a Process Sample and Spindump of the stuck process (1 year).
Sample:
https://bin.disroot.org/?fbc611e57107dc1e#4pWTZyCWHJT41u52K9FuTwrpygzZYzEFsKerez9MYkWQ
Spindump:
https://bin.disroot.org/?b9c5eb5bac5476c7#9s1aK7rFU9Ve5SMfYnY3SD21DyPCP9R7hauNw2UL5PgH

Surprisingly after sitting idle for several minutes with high CPU usage and
fans going crazy, things progress and the process is unstuck.

The "Select Certificate" with the public key list to use for encryption shows
up. I never got to this point since I never waited for several minutes when
this happened. I did now while filing this bug here.


I select a public key and click "Encrypt" only to receive a warning "OpenPGP
key not trusted, damaged, or encryption failure. Please try again." Certainly I
should be able to encrrypt with untrusted keys, right?

Now I can't close the dialog with "ok" and see the rainbow spinner and "Not
Responding".

Something is very broken when LibreOffice interacts with the installed gpg I
think.

Force quit LO did not result in macOS showing crash log.

This is much more involved than I had thought. But we all know - software is
hard.

Expected Results:
No hang and successful saving of encrypted document.


Reproducible: Always


User Profile Reset: No

Additional Info:
gpg --version
gpg (GnuPG/MacGPG2) 2.2.41
libgcrypt 1.8.10
Copyright (C) 2022 g10 Code GmbH
License GNU GPL-3.0-or-later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: /Users/username/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
        CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2


Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 07074836b0055a94c3ad9319e97e733b019c0519
CPU threads: 8; OS: Mac OS X 13.4.1; UI render: Skia/Raster; VCL: osx
Locale: en-US (en_DE.UTF-8); UI: en-US
Calc: threaded

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

Reply via email to