Path: csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail From: Eduardo =?iso-8859-1?Q?A=2E_Bustamante_L=F3pez?= Newsgroups: gnu.bash.bug Subject: Re: expand_prompt_string segmentation faults Date: Mon, 17 Sep 2018 20:41:59 -0700 Lines: 23 Approved: bug-bash@gnu.org Message-ID: References: <20180914072655.GC18613@ubuntu> <20180916081228.GA31037@ubuntu> <89da4b51-fd95-3f1b-45df-a6ca68fa4840@case.edu> <20180916211528.GB31037@ubuntu> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: usenet.stanford.edu 1537242131 13649 208.118.235.17 (18 Sep 2018 03:42:11 GMT) X-Complaints-To: action@cs.stanford.edu Cc: bug-bash@gnu.org To: Chet Ramey Envelope-to: bug-bash@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=cxSteScVDlGdZUTZdq9+Evxpo+EZncUmWZNIhsA2FuI=; b=ldoqJNHi3v5RBuHWyS6uUpip8aVbe6W0OlyEKgQ8LmAG0mhF8Za9vrkSuweADfOfy6 vd2rYGLy97Xbf7MGlCGgP4Fy6z6wip50rfeskKkkD1XXH1n2dWvusljwqdbA3ZWaSzXC 3yRXB+taftdj7zthg14pEY4uI6s81OK2PKRN5CK5+7pFpddbgOr/GGsdl0CZgmDcFIP0 PhYVUSdoduvOTnCreZHl8nJYq4U+FAnK0PeS/HEiTluRH9sBagDCiCSBUC+BO6YqmRea UN6ZCHdCk3eXdQ2BWh97xveGziok9+OFAc62vuUjaiqDnLuj1jgkeBYPiTPl2NKhGKxa iZbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=cxSteScVDlGdZUTZdq9+Evxpo+EZncUmWZNIhsA2FuI=; b=QYkTz7SCfaRhdIZYTa4lmHKjtA48T/mUZzMOip3HoNgaQkYmP+NxYtoiRw26TkLDew QnpXsy8C/wKmZZXH7Zg+ZSIvgoRnepR+5ElCQQTuoBs9Pg1VEzlTN2/REFp6cv+K9Fgi dAv6p4wx5dSgEbacpBCvlVSP4Xrm19ImVIZCQzqlevbaFVo7nonjoMTUz9BOHBl0mthq wF4zP1wSOBomc2ANSxyQctK9Ya5BmCn0eD/+T+ajR9fNFy4otYRLLxMeC7zwpI+kEuRz 59U7iXiz9bMdWXwXofYT/oWuxh30hLgPQ+WzzGlzkiJFWl7Cy3TWSAVyRD/PlLKsCXpr pS0w== X-Gm-Message-State: APzg51C7K63sWlFxUqquCg60jMO+W8ysaduxgynd416rYE72tjNorm1H r6tj9OusgpJ1AomZgouOUww= X-Google-Smtp-Source: ANB0VdY9fFPkt9KWK3CzyAJ85iR42XMtdePgwdN9L2KOgClfbiOCSnzfihEB7rgAWvKv/q5okj94Xg== X-Received: by 2002:a65:5545:: with SMTP id t5-v6mr25775115pgr.157.1537242122694; Mon, 17 Sep 2018 20:42:02 -0700 (PDT) Mail-Followup-To: Chet Ramey , bug-bash@gnu.org Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::436 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com gnu.bash.bug:14600 On Sun, Sep 16, 2018 at 07:24:13PM -0400, Chet Ramey wrote: > On 9/16/18 5:15 PM, Eduardo A. Bustamante López wrote: > > On Sun, Sep 16, 2018 at 02:39:07PM -0400, Chet Ramey wrote: > >> On 9/16/18 4:12 AM, Eduardo A. Bustamante López wrote: > >>> Here's another interesting crash: > >>> > >>> $ base64 < 53 > >>> MBgFEBAQMBgFEBAfEA== > >>> > >>> $ gdb -batch -ex=r -ex=bt --args ./bash --noprofile --norc -c 'PATH=; set -o emacs; IFS= read -re' < 53 > >> > >> I can't reproduce this on Mac OS X or Fedora 28. > > OK, let me look around some more with your debugging hints. If I find it, > it will be in the next devel branch push. Hah! Thanks for the fix to rl_do_undo. I appreciate the comments, it makes it easier to understand what's going on. I ran this latest push through the set of crashes I found. They're all fixed. Thanks again!