From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3517 invoked from network); 19 May 2004 09:58:29 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.86) by ns1.primenet.com.au with SMTP; 19 May 2004 09:58:29 -0000 Received: (qmail 701 invoked from network); 19 May 2004 09:58:11 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 19 May 2004 09:58:11 -0000 Received: (qmail 6203 invoked by alias); 19 May 2004 09:58:08 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19961 Received: (qmail 6194 invoked from network); 19 May 2004 09:58:08 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.86) by sunsite.dk with SMTP; 19 May 2004 09:58:05 -0000 Received: (qmail 536 invoked from network); 19 May 2004 09:58:04 -0000 Received: from lhuumrelay3.lnd.ops.eu.uu.net (62.189.58.19) by a.mx.sunsite.dk with SMTP; 19 May 2004 09:58:03 -0000 Received: from MAILSWEEPER01.csr.com (mailhost1.csr.com [62.189.183.235]) by lhuumrelay3.lnd.ops.eu.uu.net (8.11.0/8.11.0) with ESMTP id i4J9vZv01407 for ; Wed, 19 May 2004 09:57:35 GMT Received: from EXCHANGE02.csr.com (unverified [192.168.137.45]) by MAILSWEEPER01.csr.com (Content Technologies SMTPRS 4.3.12) with ESMTP id ; Wed, 19 May 2004 10:57:01 +0100 Received: from csr.com ([192.168.144.127]) by EXCHANGE02.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Wed, 19 May 2004 10:59:29 +0100 To: Nicolas George cc: zsh-workers@sunsite.dk, 249627@bugs.debian.org Subject: Re: Bug#249627: Alias + LC_CTYPE + function => segmentation fault In-reply-to: "Nicolas George"'s message of "Tue, 18 May 2004 21:30:55 +0200." <20040518193055.GB6702@clipper.ens.fr> Date: Wed, 19 May 2004 10:57:33 +0100 Message-ID: <3684.1084960653@csr.com> From: Peter Stephenson X-OriginalArrivalTime: 19 May 2004 09:59:29.0353 (UTC) FILETIME=[F9C4F390:01C43D87] X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: ** X-Spam-Status: No, hits=2.3 required=6.0 tests=BAYES_70 autolearn=no version=2.63 X-Spam-Hits: 2.3 Nicolas George wrote: > I do not know valgrind, so I am not sure which are the appropriate > options, but a raw "HOME=/tmp/empty valgrind ./Src/zsh" gives sime > interesting details: > ==29385== > ==29385== Invalid free() / delete / delete[] > ==29385== at 0x3C01F918: free (vg_replace_malloc.c:127) > ==29385== by 0x808DC1D: zsfree (mem.c:1399) > ==29385== by 0x809B2D1: delenv (params.c:3455) > ==29385== by 0x80698F3: save_params (exec.c:2523) > ==29385== Address 0x3C3C9B24 is 0 bytes inside a block of size 21 = > free'd > ==29385== at 0x3C01F918: free (vg_replace_malloc.c:127) > ==29385== by 0x808DC1D: zsfree (mem.c:1399) > ==29385== by 0x809B1A8: addenv (params.c:3402) > ==29385== by 0x8069C67: restore_params (exec.c:2594) > ==29389== Warning: invalid file descriptor -1 in syscall close() > ==29389== Warning: invalid file descriptor -1 in syscall close() > Tue May 18 21:11:17 CEST 2004 > done I don't think this is the same problem, since the programme finishes correctly. It does indicate something funny in saving and restoring environment variables. -- Peter Stephenson Software Engineer CSR Ltd., Science Park, Milton Road, Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070 ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com **********************************************************************