From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32621 invoked by alias); 16 Sep 2010 18:01:45 -0000 Received: (qmail 32606 invoked by uid 22791); 16 Sep 2010 18:01:44 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-ey0-f169.google.com (HELO mail-ey0-f169.google.com) (209.85.215.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 16 Sep 2010 18:01:39 +0000 Received: by eyh5 with SMTP id 5so949944eyh.0 for ; Thu, 16 Sep 2010 11:01:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.213.29.66 with SMTP id p2mr5778740ebc.70.1284660097070; Thu, 16 Sep 2010 11:01:37 -0700 (PDT) Received: by 10.220.186.4 with HTTP; Thu, 16 Sep 2010 11:01:36 -0700 (PDT) In-Reply-To: <20100916175122.GA18399@caradoc.them.org> References: <20100916175122.GA18399@caradoc.them.org> Date: Thu, 16 Sep 2010 19:21:00 -0000 Message-ID: Subject: Re: [patch] [trivial] fix NULL deref From: Ali Lakhia To: gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 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-09/txt/msg00304.txt.bz2 This problem appears when the following macro is configured in gdb/interior.h to be: #define STARTUP_WITH_SHELL 0 #define START_INFERIOR_TRAPS_EXPECTED 1 The reason I set these macros is because forking a shell ends up resenting some of the state when .cshrc is parsed (env vars like $PATH, etc.). Thanks, -Ali