Hari Kesavan spake unto the assembled, saying:
% 
% Dear all,
%   I was given a unique,yet seemingly simple problem by my friend & it goes 
% this way- Create multiple files using C each of which will either read or 
% write data into a common data file.This data file will be accessed by these 
% files. Depending on the data read,each of the files should obtain an output 
% for the next frame.This output should then be stored back in the data file 
% for the next frame to be processed.
%    I used 'fread', 'fwrite','fopen', 'fclose' for basic input/output 
% operations.I created 4 such files & a data file.Each file was compiled on a 
% different terminal in Linux 6.1.When I executed it I was faced with a 
% segmentation fault.How can I overcome this?

Post the smallest possible compilable program that illustrates the
problem.  How can we solve a problem like this without any code?
In the meantime, look for buffer overflows and accesses of uninitialized
pointers.

Kurt
-- 
You will lose an important tape file.

Reply via email to