From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 30343 invoked from network); 23 Sep 1998 10:13:31 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 23 Sep 1998 10:13:31 -0000 Received: from mailhost.cogency.co.uk (man01.cogency.co.uk [195.153.128.51]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id GAA07828 for ; Wed, 23 Sep 1998 06:12:34 -0400 Received: from treblig.org by mailhost.cogency.co.uk (SMI-8.6/PIPEX simple 1.27) id LAA19222; Wed, 23 Sep 1998 11:13:36 +0100 Sender: dg@cogency.co.uk Message-ID: <3608C919.84F1DA98@treblig.org> Date: Wed, 23 Sep 1998 11:10:33 +0100 From: David Alan Gilbert Organization: Cogency Technology Inc X-Mailer: Mozilla 4.06 [en] (X11; I; SunOS 5.5.1 sun4m) MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: Random sig[segv|fpe] on 164LX with 256MB RAM References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Dam Thanh Son wrote: > > On Tue, 22 Sep 1998, Andrew Hobgood wrote: > > > schizo:~# gcc -o memtest memtest.c > > schizo:~# ./memtest > > Filling with seed of s=0x420 > > memtest: memory violation at pc=120000900 rp=1200008c8 (bad address = 00000000) > > Segmentation fault (core dumped) > memtest: memory violation at pc=12000093c rp=120000904 (bad address = > 00000000) > > Is it a hardware or a software issue?? STOP! STOP!!! This is failing because it has failed to allocate the amount of memory its asked for (Note to me for the future: Don't post programs you hacked together for yourself to maillists without putting simple checks in...) Just check what hte malloc is returning, if its returning NULL then its failed; turn down that nice friendly SIZE parameter at the top. If the memory test fails it will print a pair of values, the value it expected and the value it got back with a big furry error about comparison failing. Dave -- ---------------------------------------------------------------------- - Dr. David Alan Gilbert - WARNING! This is a beta release .signature- - Work: dg @ cogency.co.uk - +44-(0)161-428-9444 - - Home: gro.gilbert @ treblig.org - - ----------------------------------------------------------------------