From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 97988 invoked by alias); 27 May 2015 21:19:34 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 97957 invoked by uid 48); 27 May 2015 21:19:33 -0000 From: "dje at google dot com" To: gdb-prs@sourceware.org Subject: [Bug python/14382] gdb hangs after plotting with matplotlib Date: Wed, 27 May 2015 21:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: python X-Bugzilla-Version: 7.4 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dje at google dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-q2/txt/msg00336.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=14382 dje at google dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dje at google dot com --- Comment #22 from dje at google dot com --- (In reply to Pedro Alves from comment #21) > Hmm, I guess I'm confused on how blocking the signal on a thread can help. > AFAICS, the main issue is with libraries changing the SIGCHLD sigaction, > which is process-wide, not per-thread. So if something sets SA_NOCLDSTOP or > SIG_IGN on SIGCHLD, that applies to the whole process. > > I just confirmed now that with SIGCHLD set to SA_NOCLDSTOP or SIG_IGN, > nothing comes out of the signalfd either. > > So the workarounds seem to me to be: > > - move ptrace handling to a separate process (either always using > gdbserver, > or a thinner ptrace wrapper/helper) > > - or perhaps, an evil hack that reimplements sigaction+signal and > ignores requests to ignore SIGCHLD. References to those functions in > libraries would resolve to gdb's versions, assuming gdb is not itself > a library... That this won't help with libraries changing SIGCHLD was left as a given, duh. It was just offered for reference sake. -- You are receiving this mail because: You are on the CC list for the bug.