This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/16614] signal forwarding to child processes uses invalid pthread* functions


https://sourceware.org/bugzilla/show_bug.cgi?id=16614

Josh Stone <jistone at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jistone at redhat dot com

--- Comment #1 from Josh Stone <jistone at redhat dot com> ---
(In reply to Frank Ch. Eigler from comment #0)
> We need a signal-safe structure for collecting & iterating child pids.

We may just need to make spawned_pids_t properly either-or, signal-safe or
thread-safe but not both.  At the moment, stap is single-threaded and calls
kill_stap_spawn from a signal handler; stap-serverd is multithreaded but only
kills via main.  So stap only needs the signal-masking, and stap-serverd only
needs the pthread mutex.  (In fact, the use of sigprocmask is unspecified in
multithreaded processes.)

This is half-way selected by the SINGLE_THREADED macro now, but that's a big
hammer, not even set by stap.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]