From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11566 invoked by alias); 24 Oct 2012 16:20:33 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 30747 Received: (qmail 6487 invoked from network); 24 Oct 2012 16:20:31 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_PASS autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at samsung.com does not designate permitted sender hosts) Date: Wed, 24 Oct 2012 17:10:23 +0100 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: Bug with long multiline strings? Message-id: <20121024171023.313995d7@pwslap01u.europe.root.pri> In-reply-to: <87vcdzq4ke.fsf@ft.bewatermyfriend.org> References: <87vcdzq4ke.fsf@ft.bewatermyfriend.org> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-TM-AS-MML: No On Wed, 24 Oct 2012 17:21:05 +0200 Frank Terbeck wrote: > Hi workers! > > I've tried to reproduce > > > > > Turns out, I can: > > [snip] > i-(6000)-~% echo "asdf > dquote> asdf > dquote> asdf > dquote> asdf > dquote> asdf > dquote> asfd > dquote> asdf > dquote> asdf > dquote> asdf > dquote> asdf > dquote> asdf > dquote> asdf > dquote> asdf > mem.c:604: BUG: hrealloc() called for non-heap memory. > [1] 2554 segmentation fault (core dumped) zsh > [snap] Something very funny is going on here. That's basic shell allocation stuff that's failing, which gets used all the time. Also, it shouldn't need to reallocate at all until there are 256 characters in the input token, which you haven't got close to. There are no interrupts or recursion involved. Looks like there's a Mystery Ingredient. pws