From: Ulf Carlsson <ulfc@thepuffingroup.com>
To: linux@cthulhu.engr.sgi.com
Subject: Memory corruption
Date: Tue, 22 Jun 1999 03:39:31 +0200 [thread overview]
Message-ID: <19990622033931.A7201@thepuffingroup.com> (raw)
Hi,
The compiler may stop working sometimes on certain files, giving bogus error
messages which I don't understand (the compiler is probably not the only
application affected). Running this program I just wrote forces the corrupted
caches to be flushed or something and ``fixes'' the problems:
int main(void)
{
unsigned long tot = 0;
unsigned long i = 1 << 20;
void *p;
int failures = 0;
while (i) {
p = malloc(i);
if (!p) {
if (failures++ < 10)
continue;
i = i >> 1;
failures = 0;
continue;
}
memset(p, 0, i);
tot += i;
}
printf("Total memory set: %u kb\n", tot >> 10);
}
Maybe I should put this in my crontab along with sync :-)
Does anyone else notice these problems?
- Ulf
next reply other threads:[~1999-06-22 23:51 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-06-22 1:39 Ulf Carlsson [this message]
1999-06-30 1:01 ` Memory corruption William J. Earl
1999-06-30 2:47 ` Ulf Carlsson
1999-06-30 22:01 ` William J. Earl
1999-07-01 0:23 ` Ralf Baechle
1999-07-01 0:53 ` William J. Earl
1999-07-01 11:25 ` Harald Koerfgen
1999-07-02 22:41 ` Ralf Baechle
1999-07-06 13:05 ` Ralf Baechle
1999-07-07 21:08 ` Harald Koerfgen
1999-07-08 1:51 ` Warner Losh
1999-07-08 3:12 ` William J. Earl
[not found] ` <37846EE7.EADD9E32@niisi.msk.ru>
1999-07-08 17:56 ` William J. Earl
1999-07-08 10:39 ` Ralf Baechle
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=19990622033931.A7201@thepuffingroup.com \
--to=ulfc@thepuffingroup.com \
--cc=linux@cthulhu.engr.sgi.com \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox