From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21610 invoked by alias); 30 Mar 2010 17:05:16 -0000 Received: (qmail 21534 invoked by uid 22791); 30 Mar 2010 17:05:15 -0000 X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=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; Tue, 30 Mar 2010 17:05:11 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o2UH52nB002569 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 30 Mar 2010 13:05:02 -0400 Received: from host0.dyn.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o2UH4xWu014161 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 30 Mar 2010 13:05:01 -0400 Received: from host0.dyn.jankratochvil.net (localhost [127.0.0.1]) by host0.dyn.jankratochvil.net (8.14.4/8.14.4) with ESMTP id o2UH4x5e016265; Tue, 30 Mar 2010 19:04:59 +0200 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.14.4/8.14.4/Submit) id o2UH4w0k016257; Tue, 30 Mar 2010 19:04:58 +0200 Date: Tue, 30 Mar 2010 17:05:00 -0000 From: Jan Kratochvil To: Pedro Alves Cc: tromey@redhat.com, gdb-patches@sourceware.org Subject: Re: [patch] Fix crash on NULL rl_prompt Message-ID: <20100330170457.GA10938@host0.dyn.jankratochvil.net> References: <20100329234026.GA23895@host0.dyn.jankratochvil.net> <201003301712.20874.pedro@codesourcery.com> <201003301741.20844.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201003301741.20844.pedro@codesourcery.com> User-Agent: Mutt/1.5.20 (2009-08-17) 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: 2010-03/txt/msg01066.txt.bz2 On Tue, 30 Mar 2010 18:41:20 +0200, Pedro Alves wrote: > But, how did rl_prompt end up NULL in the first place? I do not know. I have spent some time trying to reproduce it reading the source but gave up after some reasonable time. Bugreport comes from an automated crash reporter (ABRT) where the person only sometimes can/gives more info. Asked now for a reproducer. > Was GDB running in batch/non-tty stdin, "set editing off", with readline not > setup at all, and tried to enable the TUI/curses anyway? Tried also this one with no luck (=with no crash). gdb -nx -ex 'set editing off' -ex 'tui reg general';echo $? > That's what I meant by masking out a bug. An existing bug a user cannot notice is ... no longer a bug, isn't it? Thanks, Jan