* Program halts when reading large data file
@ 1992-07-11 9:17 Andrew Karanicolas
0 siblings, 0 replies; only message in thread
From: Andrew Karanicolas @ 1992-07-11 9:17 UTC (permalink / 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1992-07-11 9:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1992-07-11 9:17 Program halts when reading large data file Andrew Karanicolas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox