From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 371 invoked from network); 1 Jun 2004 21:24:27 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.86) by ns1.primenet.com.au with SMTP; 1 Jun 2004 21:24:27 -0000 Received: (qmail 6600 invoked from network); 1 Jun 2004 21:24:17 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 1 Jun 2004 21:24:17 -0000 Received: (qmail 26433 invoked by alias); 1 Jun 2004 21:24:16 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19999 Received: (qmail 24247 invoked from network); 1 Jun 2004 18:02:34 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.86) by sunsite.dk with SMTP; 1 Jun 2004 18:02:31 -0000 Received: (qmail 2773 invoked from network); 1 Jun 2004 18:02:31 -0000 Received: from 209-128-98-052.bayarea.net (HELO Yost.com) (209.128.98.52) by a.mx.sunsite.dk with SMTP; 1 Jun 2004 18:02:29 -0000 Received: from [209.128.98.50] (ip2 [209.128.98.50]) by Yost.com (Postfix) with ESMTP id 97F9221FB18 for ; Tue, 1 Jun 2004 11:01:58 -0700 (PDT) Mime-Version: 1.0 X-Sender: yost@mail4.yost.com Message-Id: Date: Tue, 1 Jun 2004 11:01:50 -0700 To: zsh-workers@sunsite.dk From: Dave Yost Subject: zsh malloc bug Content-Type: text/plain; charset="us-ascii" X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=BAYES_50 autolearn=no version=2.63 X-Spam-Hits: 0.0 Hi. Z% echo $ZSH_VERSION 4.1.1 Z% uname -a Darwin ip2 7.4.0 Darwin Kernel Version 7.4.0: Wed May 12 16:58:24 PDT 2004; root:xnu/xnu-517.7.7.obj~7/RELEASE_PPC Power Macintosh powerpc I ran the script below and 1 second later hit ^C, eliciting this output: Z% ./bug ^Cint *** malloc[21559]: Deallocation of a pointer not malloced: 0x10f3c0; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug Z% Here's the script ============== #!/bin/zsh TRAPEXIT() { echo exit } TRAPINT() { echo int exit } sleep 5 # Now type control-c # or wait til here for a bus error while true do sleep 1 done ============== I have a slightly more complicated script that elicits two malloc debug printouts. I'll send it to whoever fixes this. See also: my email with the subject "zsh needs try-finally". Dave