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

            Bug ID: 117523
           Summary: Headless doc conversion leaves soffice.bin and GPG
                    zombie processes
           Product: LibreOffice
           Version: 6.0.4.1 rc
          Hardware: All
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: [email protected]
          Reporter: [email protected]

Description:
In the Amazon AWS Lambda environment, we are doing document conversion with
LibreOffice and Node.js. However, after we perform the conversion with
LibreOffice, there are zombie processes left behind. They are "soffice.bin",
"gpg2", and "gpgconf".

In our case, there is no init process, only Node.js (which is running as PID 1)
and it does not reap zombies. Therefore, as we continue to convert documents,
the number of zombie processes increases linearly until we hit Lambda's process
limit. The command is run synchronously and correctly waits for the main
process to finish before returning, but it looks like LO is not cleaning up as
it should.

LibreOffice should not leave behind these zombie processes.

The conversion command:
./instdir/program/soffice --headless --invisible --nodefault
--nofirststartwizard --nolockcheck --nologo --norestore --convert-to pdf
--outdir somePath someDocFile.docx

Running "ps aux":
484 86 0.0 0.0 0 0 ? Z 16:06 0:00 [soffice.bin] <defunct>
484 124 0.0 0.0 0 0 ? Z 16:06 0:00 [gpgconf] <defunct>
484 126 0.0 0.0 0 0 ? Z 16:06 0:00 [gpgconf] <defunct>
484 128 0.0 0.0 0 0 ? Z 16:06 0:00 [gpg2] <defunct>
484 130 0.0 0.0 0 0 ? Z 16:06 0:00 [soffice.bin] <defunct>
484 132 0.0 0.0 0 0 ? Z 16:06 0:00 [gpgconf] <defunct>
484 175 0.0 0.0 0 0 ? Z 16:06 0:00 [gpgconf] <defunct>
484 177 0.0 0.0 0 0 ? Z 16:06 0:00 [gpgconf] <defunct>
484 179 0.0 0.0 0 0 ? Z 16:06 0:00 [gpg2] <defunct>
484 181 0.0 0.0 0 0 ? Z 16:06 0:00 [soffice.bin] <defunct>
484 183 0.0 0.0 0 0 ? Z 16:06 0:00 [gpgconf] <defunct>
484 307 0.0 0.0 0 0 ? Z 16:08 0:00 [gpgconf] <defunct>
484 309 0.0 0.0 0 0 ? Z 16:08 0:00 [gpgconf] <defunct>
484 311 0.0 0.0 0 0 ? Z 16:08 0:00 [gpg2] <defunct>
484 313 0.0 0.0 0 0 ? Z 16:08 0:00 [soffice.bin] <defunct>
484 315 0.0 0.0 0 0 ? Z 16:08 0:00 [gpgconf] <defunct>
484 375 0.0 0.0 0 0 ? Z 16:09 0:00 [gpgconf] <defunct>
484 377 0.0 0.0 0 0 ? Z 16:09 0:00 [gpgconf] <defunct>
484 379 0.0 0.0 0 0 ? Z 16:09 0:00 [gpg2] <defunct>
484 381 0.0 0.0 0 0 ? Z 16:09 0:00 [soffice.bin] <defunct>
484 383 0.0 0.0 0 0 ? Z 16:09 0:00 [gpgconf] <defunct>
484 484 0.0 0.0 0 0 ? Z 16:11 0:00 [gpgconf] <defunct>
484 486 0.0 0.0 0 0 ? Z 16:11 0:00 [gpgconf] <defunct>
484 488 0.0 0.0 0 0 ? Z 16:11 0:00 [gpg2] <defunct>
484 490 0.0 0.0 0 0 ? Z 16:11 0:00 [soffice.bin] <defunct>
484 492 0.0 0.0 0 0 ? Z 16:11 0:00 [gpgconf] <defunct>
484 549 0.0 0.0 0 0 ? Z 16:11 0:00 [gpgconf] <defunct>
484 551 0.0 0.0 0 0 ? Z 16:11 0:00 [gpgconf] <defunct>
484 553 0.0 0.0 0 0 ? Z 16:11 0:00 [gpg2] <defunct>
484 555 0.0 0.0 0 0 ? Z 16:11 0:00 [soffice.bin] <defunct>
484 557 0.0 0.0 0 0 ? Z 16:11 0:00 [gpgconf] <defunct>
484 600 0.0 0.0 0 0 ? Z 16:12 0:00 [gpgconf] <defunct>
484 602 0.0 0.0 0 0 ? Z 16:12 0:00 [gpgconf] <defunct>
484 604 0.0 0.0 0 0 ? Z 16:12 0:00 [gpg2] <defunct>
484 606 0.0 0.0 0 0 ? Z 16:12 0:00 [soffice.bin] <defunct>
484 608 0.0 0.0 0 0 ? Z 16:12 0:00 [gpgconf] <defunct>
484 641 0.0 0.0 0 0 ? Z 16:12 0:00 [gpgconf] <defunct>
484 643 0.0 0.0 0 0 ? Z 16:12 0:00 [gpgconf] <defunct>
484 645 0.0 0.0 0 0 ? Z 16:12 0:00 [gpg2] <defunct>
484 647 0.0 0.0 0 0 ? Z 16:12 0:00 [soffice.bin] <defunct>
484 649 0.0 0.0 0 0 ? Z 16:12 0:00 [gpgconf] <defunct>
484 686 0.0 0.0 0 0 ? Z 16:12 0:00 [gpgconf] <defunct>
484 688 0.0 0.0 0 0 ? Z 16:12 0:00 [gpgconf] <defunct>
484 690 0.0 0.0 0 0 ? Z 16:12 0:00 [gpg2] <defunct>
484 692 0.0 0.0 0 0 ? Z 16:12 0:00 [soffice.bin] <defunct>
484 694 0.0 0.0 0 0 ? Z 16:12 0:00 [gpgconf] <defunct>
484 733 0.0 0.0 0 0 ? Z 16:13 0:00 [gpgconf] <defunct>
484 735 0.0 0.0 0 0 ? Z 16:13 0:00 [gpgconf] <defunct>
484 737 0.0 0.0 0 0 ? Z 16:13 0:00 [gpg2] <defunct>
484 739 0.0 0.0 0 0 ? Z 16:13 0:00 [soffice.bin] <defunct>
484 741 0.0 0.0 0 0 ? Z 16:13 0:00 [gpgconf] <defunct>
484 888 0.0 0.0 0 0 ? Z 16:15 0:00 [gpgconf] <defunct>
484 890 0.0 0.0 0 0 ? Z 16:15 0:00 [gpgconf] <defunct>
484 892 0.0 0.0 0 0 ? Z 16:15 0:00 [gpg2] <defunct>
484 894 0.0 0.0 0 0 ? Z 16:15 0:00 [soffice.bin] <defunct>
484 896 0.0 0.0 0 0 ? Z 16:15 0:00 [gpgconf] <defunct>
484 1010 0.0 0.0 0 0 ? Z 16:16 0:00 [gpgconf] <defunct>
484 1012 0.0 0.0 0 0 ? Z 16:16 0:00 [gpgconf] <defunct>
484 1014 0.0 0.0 0 0 ? Z 16:16 0:00 [gpg2] <defunct>
484 1016 0.0 0.0 0 0 ? Z 16:16 0:00 [soffice.bin] <defunct>
484 1018 0.0 0.0 0 0 ? Z 16:16 0:00 [gpgconf] <defunct>
484 1061 0.0 0.0 0 0 ? Z 16:17 0:00 [gpgconf] <defunct>
484 1063 0.0 0.0 0 0 ? Z 16:17 0:00 [gpgconf] <defunct>
484 1065 0.0 0.0 0 0 ? Z 16:17 0:00 [gpg2] <defunct>
484 1067 0.0 0.0 0 0 ? Z 16:17 0:00 [soffice.bin] <defunct>
484 1069 0.0 0.0 0 0 ? Z 16:17 0:00 [gpgconf] <defunct>
484 1077 0.0 0.0 117216 2376 ? R 16:17 0:00 ps aux

This is reproducable on the 6.0 branch circa April 30.

Steps to Reproduce:
1. Create an environment where there is no init to reap defunct processes
2. Run LibreOffice in headless mode (e.g. converting a document to PDF)
3. Observe that zombie processes remain afterward

Actual Results:  
"soffice.bin", "gpg2", and "gpgconf" processes remain in defunct status

Expected Results:
No zombie processes left after conversion finished


Reproducible: Always


User Profile Reset: Yes



Additional Info:
This is a continuation of an error described in a comment on another bug. I am
opening this on behalf of the user "g4827387".

https://bugs.documentfoundation.org/show_bug.cgi?id=95843#c20


User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:59.0) Gecko/20100101
Firefox/59.0

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to