From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 24672 invoked from network); 19 Jul 1998 13:04:24 -0000 Received: from post-12.mail.demon.net (HELO post.mail.demon.net) (194.217.242.41) by mail2.redhat.com with SMTP; 19 Jul 1998 13:04:24 -0000 Received: from (tardis.home.dave) [194.222.210.232] by post.mail.demon.net with smtp (Exim 1.82 #2) id 0yxt8Y-0002Ty-00; Sun, 19 Jul 1998 13:04:22 +0000 Date: Sun, 19 Jul 1998 13:58:49 +0100 (BST) From: Dave Gilbert X-Sender: gilbertd@tardis.home.dave To: axp-list@redhat.com Subject: More problems with my new RAM (& unaligned!!) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Hi, OK - my system is now running 2.1.98 with 319 MB of RAM (by setting the memory size in MILO). I've noticed some oddities: 1) I've had unaligned trap messages from 'sh', and a new version of 'egcs'. I've never had an unaligned from 'sh' before. 2) EGCS has crashed twice - its a new version so that is possible. But the crashes are unrepeatable; I get a log of a couple of unaligned accesses and then the compiler dies with an internal error. Repeating the same compile completes happily. 3) **** This is the killer! I wrote this little memory test (see below); it hit a mismatch last night in which one byte of the stored value read back as 'ff' but should have been something else. There were no CIA errors etc (I've not had any at all) How is this possible? Is this a RAM fault - but if there were no CIA errors isn't it more likely its an OS error overwriting something? Its done over 60 loops of this today and had no problems. I might take the RAM back this afternoon... <<< HELP >>> #include #include #define SIZE (68*1024*1024*sizeof(int)) int main() { int *pl=(int *)malloc(SIZE); int a; int s; for(s=1056;;s++) { printf("Filling with seed of s=0x%x \n",s); srandom(s); for(a=0;a<(SIZE/sizeof(int));a++) { pl[a]=random(); }; srandom(s); printf("Testing with seed of s=0x%x \n",s); for(a=0;a<(SIZE/sizeof(int));a++) { int tmp1=random(); int tmp2=pl[a]; if (tmp1!=tmp2) { fprintf(stderr,"MISMATCH ERROR! at a=0x%x (random=0x%x array=0x%x)\n",a,tmp1,tmp2); exit(2); }; }; printf("Completed pass with seed of s=0x%x\n",s); }; }; Dave -------------------------------------------------------------------- / Dr. David Alan Gilbert | Running Linux on Alpha & ARM \ \ gro.gilbert @ treblig.org | ------- Happy in hex ------- / \____________________________|___ http://www.treblig.demon.co.uk __/