From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 84002 invoked by alias); 27 May 2015 18:37:00 -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 83971 invoked by uid 48); 27 May 2015 18:36:59 -0000 From: "palves at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug python/14382] gdb hangs after plotting with matplotlib Date: Wed, 27 May 2015 18:37: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: palves at redhat 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: 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/msg00333.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=14382 --- Comment #21 from Pedro Alves --- 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... -- You are receiving this mail because: You are on the CC list for the bug.