From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9974 invoked by alias); 27 Feb 2013 21:50:59 -0000 Received: (qmail 9909 invoked by uid 22791); 27 Feb 2013 21:50:58 -0000 X-SWARE-Spam-Status: No, hits=-8.0 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_SPAMHAUS_DROP,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS 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; Wed, 27 Feb 2013 21:50:53 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r1RLorIj013954 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 27 Feb 2013 16:50:53 -0500 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r1RLoqUf022010 for ; Wed, 27 Feb 2013 16:50:52 -0500 Message-ID: <512E7FBB.1080104@redhat.com> Date: Thu, 28 Feb 2013 00:44:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: gdb-patches@sourceware.org Subject: Re: [patch]: Replace stryoul call to fetch address References: <20130227164419.GA16975@calimero.vinschen.de> <512E404E.6070504@redhat.com> <20130227183805.GA30418@calimero.vinschen.de> <512E5B26.7050104@redhat.com> <20130227194235.GB30418@calimero.vinschen.de> In-Reply-To: <20130227194235.GB30418@calimero.vinschen.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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: 2013-02/txt/msg00717.txt.bz2 On 02/27/2013 07:42 PM, Corinna Vinschen wrote: > The SEGV occurs in exception.c, function throw_exception, though. > The `*current_catcher->exception = exception;' assignment crashes > because current_catcher->exception is NULL. I don't understand yet > why it's NULL, and why the throw_exception function doesn't test > this before trying to write *current_catcher->exception. What's the backtrace like? There's always a top level catcher installed (gdb_main -> catch_errors) Unless, hmm, waitaminut. What's the backtrace like? I just realized a very early exception in captured_main can result in bad things like that. -- Pedro Alves