Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: ankleand@mtl.mit.edu (Andrew Karanicolas)
Subject: Program halts when reading large data file
Date: Sat, 11 Jul 1992 09:17:13 GMT	[thread overview]
Message-ID: <1992Jul11.091713.9295@athena.mit.edu> (raw)

Hello,

I've got a question about a C program running on a DEC5000/200.  I'm
not sure if the error I am seeing is a machine limitation or improper
C usage.

Here is what happens when the program is run after about 5 CPU
seconds:

pid 8708 (calibrate04) was killed on kernel acces, at pc 0x4052cc

At this point, the program is reading in a large file called
"rundata", about 1.2M of ASCII data.  This is what the code looks like
at this point:

main()
{
FILE *rundata_file;
.
.

/* read in rundata */
rundata_file = fopen("rundata", "r+");
for(i = 0; i <= rundata_length - 1; i++)
     fscanf(rundata_file, "%d", &rundata[i]);
fclose(rundata_file);

.
.
}

The input file is something like 191000 lines long so rundata_length
is not out of range.

Any ideas what is causing the error?  Thanks for any help.  Please
send me e-mail and I will summarize on comp.sys.dec if there is
interest.

-- 
Andrew Karanicolas
MIT Microsystems Technology Laboratory
ankleand@mtl.mit.edu


                 reply	other threads:[~1992-07-11  9:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
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