Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* 13 line c program segfaults on alpha/linux, but not intel.  why?
@ 2001-06-29 16:10 Patrick Paul
  2001-06-29 16:51 ` Robert M. Riches Jr.
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Patrick Paul @ 2001-06-29 16:10 UTC (permalink / raw)


a little help from those programmer types out there.  i compared
/proc/sys/kernel entries between intel and alpha machines, and that wasn't
the problem.

what happens is that i compile this proggy

#include <stdio.h>
#define SIZE 1047977

main ()
{
        double vector_x [SIZE];
        int x;

        for ( x = 0; x < SIZE; x++ )
                vector_x [x] = (double) x;

        printf ("\n  x [%d] = %.4f\n\n", SIZE - 1, vector_x [SIZE - 1] );
}


which compiles fine

but when i run it on alpha, it coredumps and segfaults.

on intel, it works fine.

any ideas?

tia

--
Patrick Paul
Microway.com
patrick@no_microway_spam.com




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2001-06-29 20:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-29 16:10 13 line c program segfaults on alpha/linux, but not intel. why? Patrick Paul
2001-06-29 16:51 ` Robert M. Riches Jr.
2001-06-29 17:21 ` Berkley Shands
2001-06-29 20:59   ` Art Haas
2001-06-29 17:36 ` Serguei Patchkovskii
2001-06-29 17:59 ` Terrance Richard Boyes
2001-06-29 19:25 ` Patrick Paul

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