From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: zsh-workers@sunsite.dk (Zsh hackers list)
Subject: Memory errors with Fedora 9 x86_64
Date: Sat, 17 May 2008 17:26:58 +0100 [thread overview]
Message-ID: <21272.1211041618@pws-pc> (raw)
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 <p.w.stephenson@ntlworld.com>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
next reply other threads:[~2008-05-17 16:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-17 16:26 Peter Stephenson [this message]
2008-05-17 17:52 ` Bart Schaefer
2008-05-19 7:41 ` Phil Pennock
2008-05-19 11:42 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=21272.1211041618@pws-pc \
--to=p.w.stephenson@ntlworld.com \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).