From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28785 invoked by alias); 12 Jun 2011 12:12:37 -0000 Received: (qmail 28761 invoked by uid 22791); 12 Jun 2011 12:12:29 -0000 X-SWARE-Spam-Status: No, hits=-6.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 12 Jun 2011 12:12:03 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p5CCC2LP017634 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 12 Jun 2011 08:12:02 -0400 Received: from host1.jankratochvil.net (ovpn-113-23.phx2.redhat.com [10.3.113.23]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p5CCC0gp028472 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 12 Jun 2011 08:12:01 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p5CCBxB6014283; Sun, 12 Jun 2011 14:11:59 +0200 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p5CCBwY8014280; Sun, 12 Jun 2011 14:11:58 +0200 Date: Sun, 12 Jun 2011 12:12:00 -0000 From: Jan Kratochvil To: Sterling Augustine Cc: gdb-patches@sourceware.org Subject: Re: [PATCH] Make interrupting tab-completion safe. Message-ID: <20110612121158.GA10611@host1.jankratochvil.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-06/txt/msg00150.txt.bz2 On Sat, 11 Jun 2011 02:19:05 +0200, Sterling Augustine wrote: > gdb > b > [ctrl-c before tab-completion is done] > b > (segmentation fault) I do not have it reproducuble, does not happen for you for ./gdb -nx ./gdb? Tried also Firefox, both processing runs long enough to CTRL-C it. It would be good to have a testcase for regressions anyway. > The problem comes because the dwarf2read.c tries to discover the full > linkage name of symbols, and assumes that it won't be interrupted. I had rather an idea to make it interruption-safe as this way another forgotten or newly introduced QUIT may regression it. But I do not have a reproducer to check where the crash happens. Thanks, Jan