From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 20518 invoked from network); 23 Sep 1998 19:12:51 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 23 Sep 1998 19:12:51 -0000 Received: from picu-sgh.demon.co.uk (qmailr@picu-sgh.demon.co.uk [194.222.182.163]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id PAA24779 for ; Wed, 23 Sep 1998 15:11:20 -0400 Received: (qmail 3177 invoked by uid 500); 23 Sep 1998 06:49:14 -0000 Date: 23 Sep 1998 06:49:14 -0000 Message-ID: <19980923064914.3176.qmail@picu-sgh.demon.co.uk> From: Peter Rye To: axp-list@redhat.com In-reply-to: <199809230427.WAA09990@ellpspace.math.ualberta.ca> (message from Michal Jaegermann on Tue, 22 Sep 1998 22:27:19 -0600 (MDT)) Subject: Re: Random sig[segv|fpe] on 164LX with 256MB RAM References: <199809230427.WAA09990@ellpspace.math.ualberta.ca> >>>>> "Michal" == Michal Jaegermann writes: (Disussion about relationship between failed kernel compile and seg fault in "memtest" program) >> May these two things be connected? Michal> It does not look that way. :-) The first problem should be Michal> pretty easy to trace with a help of a review of the code and Michal> maybe a bit of gdb. The "memtest" program also fails here if the SIZE is defined too high. You'll note in the first few lines the malloc is not tested for its return value. This is where it fails here. #include #include #define SIZE (20*1024*1024*sizeof(int)) int main() { volatile int * volatile pl=(int *)malloc(SIZE); ^^ ...then goes on to use the null pointer...