From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23486 invoked from network); 2 Aug 1999 09:00:38 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 2 Aug 1999 09:00:38 -0000 Received: (qmail 24072 invoked by alias); 2 Aug 1999 09:00:23 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7340 Received: (qmail 24065 invoked from network); 2 Aug 1999 09:00:23 -0000 Date: Mon, 2 Aug 1999 11:00:16 +0200 (MET DST) Message-Id: <199908020900.LAA11840@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: Peter Stephenson's message of Tue, 27 Jul 1999 16:55:06 +0200 Subject: Re: PATCH: 3.1.6-test-3: core dump on parameter completion Peter Stephenson wrote: > Got it! There's a missing dupstring(); the cline struct is an invalid > pointer (it's the positional parameter list from the function redefining > compadd, which will be freed before the line is inserted), even though the > returned completion r is correctly duplicated. The only thing I can't > answer is whether r is really supposed to be different from w at this > point, but let's assume so until proved otherwise. Yes, that's correct. Other parts of the code may shorten the strings in the cline lists (my last matching-code overhaul may have changed the code so that the strings aren't really modified any more, but it's still safer). Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de