(no subject)

Jim Dennis (jimd@starshine.org)
Tue, 07 Oct 1997 14:12:46 -0700



>> Hi All,
>> I am new to Linux kernel.Will be thankfull if someone helps.
>>
>> What is SEGMENTATION FAULT? In which conditions does it occur?
>> Why did the following program receive the above error?

< ... >
>>
>> Avijit Lahiri
>>

I've noticed that a couple of participants have identified
the problem in the source code you provided.

However, no one has answered the first question.

A Segmentation Violation (or SegFault) is a signal sent
to your program after it has attempted to access memory
that isn't allocated to it. Typically this occurs when
your code (or the libraries you're linking to) has a bug
in it. Usually it occurs with uninitialized pointers or
as "fencepost" or bounds errors on arrays.

--
Jim Dennis  (800) 938-4078		consulting@starshine.org
Proprietor, Starshine Technical Services:  http://www.starshine.org
        PGP  1024/2ABF03B1 Jim Dennis <jim@starshine.org>
        Key fingerprint =  2524E3FEF0922A84  A27BDEDB38EBB95A