https://bugs.kde.org/show_bug.cgi?id=404652

Elvis Angelaccio <elvis.angelac...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |RESOLVED
      Latest Commit|                            |https://commits.kde.org/kde
                   |                            |graphics-thumbnailers/3e2ea
                   |                            |6e924d0e2a2cdd9bb435b069651
                   |                            |17d6d34c
   Version Fixed In|                            |20.03.80
         Resolution|---                         |FIXED

--- Comment #7 from Elvis Angelaccio <elvis.angelac...@kde.org> ---
Git commit 3e2ea6e924d0e2a2cdd9bb435b06965117d6d34c by Elvis Angelaccio, on
behalf of Ambroz Bizjak.
Committed on 19/01/2020 at 20:35.
Pushed by elvisangelaccio into branch 'master'.

GSCreator: Fix hang due to calling exit() after fork()

Summary:
After fork(), exit() invokes atexit handlers, which can result in a lockup if
an atexit handler uses thread synchronization facilities, since all but the
current thread no longer exist. An example backtrace can be found in the linked
bug report. Fix it by using _exit() instead of exit().
FIXED-IN: 20.03.80

Test Plan: I don't know the exact environment required to trigger this bug, but
one precondition is to trigger generation of thumbnails via this code; maybe
browsing folders with PDF files will do that. Once you see thumbnail.so
processes staying around, you must have hit this bug. This patch should prevent
this issue from occurring, and it did on my system.

Reviewers: #frameworks, elvisangelaccio

Reviewed By: elvisangelaccio

Subscribers: elvisangelaccio

Differential Revision: https://phabricator.kde.org/D26635

M  +3    -3    ps/gscreator.cpp

https://commits.kde.org/kdegraphics-thumbnailers/3e2ea6e924d0e2a2cdd9bb435b06965117d6d34c

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to