From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6956 invoked from network); 23 Nov 2004 16:19:15 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 23 Nov 2004 16:19:15 -0000 Received: (qmail 344 invoked from network); 23 Nov 2004 16:19:09 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 23 Nov 2004 16:19:09 -0000 Received: (qmail 17290 invoked by alias); 23 Nov 2004 16:19:05 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 20576 Received: (qmail 17268 invoked from network); 23 Nov 2004 16:19:04 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 23 Nov 2004 16:19:04 -0000 Received: (qmail 99356 invoked from network); 23 Nov 2004 16:18:27 -0000 Received: from mailhost1.csr.com (HELO MAILSWEEPER01.csr.com) (81.105.217.43) by a.mx.sunsite.dk with SMTP; 23 Nov 2004 16:18:26 -0000 Received: from exchange03.csr.com (unverified [10.100.137.60]) by MAILSWEEPER01.csr.com (Content Technologies SMTPRS 4.3.12) with ESMTP id for ; Tue, 23 Nov 2004 16:01:47 +0000 Received: from csr.com ([10.102.144.127]) by exchange03.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Tue, 23 Nov 2004 16:03:04 +0000 To: zsh-workers@sunsite.dk Subject: Re: Core dump in C03traps.zsh In-reply-to: <545zn18inc6.fsf@alumni.princeton.edu> References: <545zn18inc6.fsf@alumni.princeton.edu> Date: Tue, 23 Nov 2004 16:02:56 +0000 Message-ID: <1105.1101225776@csr.com> From: Peter Stephenson X-OriginalArrivalTime: 23 Nov 2004 16:03:04.0266 (UTC) FILETIME=[EA2182A0:01C4D175] 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=none autolearn=no version=2.63 X-Spam-Hits: 0.0 Vin Shelton wrote: > Building from latest CVS sources, there are core dumps in test C03 on > Solaris 5.5 and 5.8. Here is verbose output from a 5.5 run: Thanks, I should have tested this. Index: Src/signals.c =================================================================== RCS file: /cvsroot/zsh/zsh/Src/signals.c,v retrieving revision 1.33 diff -u -r1.33 signals.c --- Src/signals.c 22 Nov 2004 10:33:06 -0000 1.33 +++ Src/signals.c 23 Nov 2004 16:00:49 -0000 @@ -1010,7 +1010,19 @@ HashNode hn = gettrapnode(sig, 0); args = znewlinklist(); - name = ztrdup(hn->nam); + /* + * In case of multiple names, try to get + * a hint of the name in use from the function table. + * In special cases, e.g. EXIT traps, the function + * has already been removed. Then it's OK to + * use the standard name. + */ + if (hn) { + name = ztrdup(hn->nam); + } else { + name = (char *) zalloc(5 + strlen(sigs[sig])); + sprintf(name, "TRAP%s", sigs[sig]); + } zaddlinknode(args, name); sprintf(num, "%d", sig); zaddlinknode(args, num); -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, 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 **********************************************************************