From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16667 invoked from network); 17 May 2008 16:28:37 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 17 May 2008 16:28:37 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 39451 invoked from network); 17 May 2008 16:28:19 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 17 May 2008 16:28:19 -0000 Received: (qmail 4390 invoked by alias); 17 May 2008 16:28:13 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25057 Received: (qmail 4374 invoked from network); 17 May 2008 16:28:13 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 17 May 2008 16:28:13 -0000 Received: from mtaout01-winn.ispmail.ntl.com (mtaout01-winn.ispmail.ntl.com [81.103.221.47]) by bifrost.dotsrc.org (Postfix) with ESMTP id EA25D80589A4 for ; Sat, 17 May 2008 18:28:09 +0200 (CEST) Received: from aamtaout02-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout01-winn.ispmail.ntl.com with ESMTP id <20080517163149.TVSV14647.mtaout01-winn.ispmail.ntl.com@aamtaout02-winn.ispmail.ntl.com> for ; Sat, 17 May 2008 17:31:49 +0100 Received: from pws-pc.ntlworld.com ([81.107.40.67]) by aamtaout02-winn.ispmail.ntl.com with ESMTP id <20080517163050.SRQL17393.aamtaout02-winn.ispmail.ntl.com@pws-pc.ntlworld.com> for ; Sat, 17 May 2008 17:30:50 +0100 Received: from pws-pc (pws-pc [127.0.0.1]) by pws-pc.ntlworld.com (8.14.2/8.14.2) with ESMTP id m4HGQwTq021273 for ; Sat, 17 May 2008 17:26:58 +0100 From: Peter Stephenson To: zsh-workers@sunsite.dk (Zsh hackers list) Subject: Memory errors with Fedora 9 x86_64 X-Mailer: MH-E 8.0.3; nmh 1.3-RC1; GNU Emacs 22.2.1 Date: Sat, 17 May 2008 17:26:58 +0100 Message-ID: <21272.1211041618@pws-pc> X-Virus-Scanned: ClamAV 0.91.2/7141/Sat May 17 03:12:19 2008 on bifrost X-Virus-Status: Clean Having just upgraded to Fedora 9 x86_64 with kernel 2.6.25.3-18.fc9.x86_64 and gcc 4.3.0, I'm getting occasional memory errors when running the tests with --enable-zsh-mem (which may or may not cause the test to fail, and are apparently random). I added the following debugging and the memory requested doesn't seem out of the ordinary. Is anyone else seeing anything similar? It's possible --enable-zsh-mem has simply had it's day. I'm not seeing any errors without that, but it's also possible this is a genuine system problem. Index: Src/mem.c =================================================================== RCS file: /cvsroot/zsh/zsh/Src/mem.c,v retrieving revision 1.15 diff -u -r1.15 mem.c --- Src/mem.c 30 Apr 2007 09:27:23 -0000 1.15 +++ Src/mem.c 17 May 2008 16:22:27 -0000 @@ -958,7 +958,7 @@ n = (size + M_HSIZE + M_ALLOC + m_pgsz - 1) & ~(m_pgsz - 1); if (((char *)(m = (struct m_hdr *)sbrk(n))) == ((char *)-1)) { - DPUTS(1, "MEM: allocation error at sbrk."); + DPUTS1(1, "MEM: allocation error at sbrk, size %L.", n); unqueue_signals(); return NULL; } Index: Src/utils.c =================================================================== RCS file: /cvsroot/zsh/zsh/Src/utils.c,v retrieving revision 1.191 diff -u -r1.191 utils.c --- Src/utils.c 15 May 2008 15:51:01 -0000 1.191 +++ Src/utils.c 17 May 2008 16:22:30 -0000 @@ -255,6 +255,7 @@ { const char *str; int num; + long lnum; #ifdef HAVE_STRERROR_R #define ERRBUFSIZE (80) int olderrno; @@ -286,6 +287,12 @@ nicezputs(s, file); break; } +#ifdef DEBUG + case 'L': + lnum = va_arg(ap, long); + fprintf(file, "%ld", lnum); + break; +#endif case 'd': num = va_arg(ap, int); fprintf(file, "%d", num); -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/