Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Peter Rye <prye@picu-sgh.demon.co.uk>
To: axp-list@redhat.com
Subject: Re: Random sig[segv|fpe] on 164LX with 256MB RAM
Date: 23 Sep 1998 06:49:14 -0000	[thread overview]
Message-ID: <19980923064914.3176.qmail@picu-sgh.demon.co.uk> (raw)
In-Reply-To: <199809230427.WAA09990@ellpspace.math.ualberta.ca> (message from Michal Jaegermann on Tue, 22 Sep 1998 22:27:19 -0600 (MDT))

>>>>> "Michal" == Michal Jaegermann <michal@ellpspace.math.ualberta.ca> 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 <stdio.h>
#include <stdlib.h>

#define SIZE (20*1024*1024*sizeof(int))
int main() {
  volatile int * volatile pl=(int *)malloc(SIZE);
                          ^^

...then goes on to use the null pointer...


  reply	other threads:[~1998-09-23 19:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-09-22  6:07 Random sig[segv|fpe] on 164LX with 256MB RAM Andrew Hobgood
1998-09-22 12:39 ` Dave Gilbert
1998-09-22 17:25   ` Andrew Hobgood
1998-09-22 17:28     ` Andrew Hobgood
1998-09-23  0:04     ` Dam Thanh Son
1998-09-23  4:27       ` Michal Jaegermann
1998-09-23  6:49         ` Peter Rye [this message]
1998-09-23 10:10       ` David Alan Gilbert
1998-09-23 15:27         ` Andrew Hobgood
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox