Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug#249627: Alias + LC_CTYPE + function => segmentation fault



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 <pws@xxxxxxx>                  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
**********************************************************************



Messages sorted by: Reverse Date, Date, Thread, Author