From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14941 invoked by alias); 18 Mar 2014 21:51:32 -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 14911 invoked by uid 55); 18 Mar 2014 21:51:31 -0000 From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/15358] gdb deadlock due to gdb calling calloc() in signal handler. Date: Tue, 18 Mar 2014 21:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 7.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: jan.kratochvil at redhat dot com 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: 2014-q1/txt/msg00416.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=15358 --- Comment #6 from cvs-commit at gcc dot gnu.org --- This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "gdb and binutils". The branch, master has been updated via 06c868a8dc5ef46ab7dd6601c8bc2f417e415af9 (commit) from dea80df0999ae0bad56e79af2a88a30be38bb8e4 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=06c868a8dc5ef46ab7dd6601c8bc2f417e415af9 commit 06c868a8dc5ef46ab7dd6601c8bc2f417e415af9 Author: Jan Kratochvil Date: Tue Mar 18 22:48:06 2014 +0100 Fix SIGTERM signal safety (PR gdb/15358). gdb/ 2014-03-18 Jan Kratochvil PR gdb/15358 * defs.h (sync_quit_force_run): New declaration. (QUIT): Check also SYNC_QUIT_FORCE_RUN. * event-top.c (async_sigterm_handler): New declaration. (async_sigterm_token): New variable. (async_init_signals): Create also async_sigterm_token. (async_sigterm_handler): New function. (sync_quit_force_run): New variable. (handle_sigterm): Replace quit_force call by other calls. * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN. gdb/testsuite/ 2014-03-18 Jan Kratochvil PR gdb/15358 * gdb.base/gdb-sigterm.c: New file. * gdb.base/gdb-sigterm.exp: New file. Message-ID: <20140316135334.GA30698@host2.jankratochvil.net> ----------------------------------------------------------------------- Summary of changes: gdb/ChangeLog | 13 ++++ gdb/defs.h | 5 +- gdb/event-top.c | 27 ++++++++- gdb/testsuite/ChangeLog | 6 ++ gdb/testsuite/gdb.base/gdb-sigterm.c | 26 +++++++++ gdb/testsuite/gdb.base/gdb-sigterm.exp | 96 ++++++++++++++++++++++++++++++++ gdb/utils.c | 6 ++ 7 files changed, 176 insertions(+), 3 deletions(-) create mode 100644 gdb/testsuite/gdb.base/gdb-sigterm.c create mode 100644 gdb/testsuite/gdb.base/gdb-sigterm.exp -- You are receiving this mail because: You are on the CC list for the bug.