Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-commits: [Wireshark-commits] master 5e304f7: ws_pipe_spawn_*: fix deadlock in g_spawn on

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sun, 25 Nov 2018 07:11:09 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=5e304f77182a4d8316446575ce270dd26a1c41d8
Submitter: "Anders Broman <a.broman58@xxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

5e304f7 by Peter Wu (peter@xxxxxxxxxxxxx):

    ws_pipe_spawn_*: fix deadlock in g_spawn on Linux with threads
    
    The deadlock can be observed with a slow malloc implementation, e.g.
    
        ASAN_OPTIONS=fast_unwind_on_malloc=0 tshark --version
    
    (This calls extcap_run_all which uses threads and ws_pipe_spawn_sync.)
    
    Change-Id: Iff329c465c53ed177980368cd645f59222f88dd3
    Reviewed-on: https://code.wireshark.org/review/30777
    Petri-Dish: Peter Wu <peter@xxxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
    

Actions performed:

    from  9ae02a5   extcap: run --extcap-config in parallel to reduce startup time
     add  5e304f7   ws_pipe_spawn_*: fix deadlock in g_spawn on Linux with threads


Summary of changes:
 wsutil/ws_pipe.c | 98 ++++++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 96 insertions(+), 2 deletions(-)