Each program when is executed is granted a piece of RAM, termed as a "segment". The segmant has a certain size and it comprises memory locations with a certain range of addresses.
A *segmentation fault* error occurs when your program tries to read from, or write to, an address that does not belong to its segment. Practically speaking, you have an invalid address your program is trying to use. The problem usually has to do with either pointers or arrays. For pointers, it could be that you are using a pointer that holds "NULL" or some other illegal value (eg, because it was not initialized to store a reference to a variable). You encounter a similar problem if you pass a generic integer to a function expecting a pointer, eg, if you forget the "&" when reading into a integer variable with scanf. With arrays, you can have the same problem, because the index is used to calculate a memory address (base address of the array + index*sizeof individual element). So if your index is crazy, it causes a Segmentation fault. well but anyways, you haven't mentioned what software is causing you the Segmentation Fault, in your case ? Regards, --------- Muhammad Faisal Rauf Danka Chief Technology Officer Gem Internet Services (Pvt) Ltd. web: www.gem.net.pk --- cana rich <[EMAIL PROTECTED]> wrote: >Hi, > > I have this error message : "Segmentation Fault". >Where does it come from? memory? > >Can anybody help me? > >Thanks, > >Canarich > >___________________________________________________________ >Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! >Yahoo! Mail : http://fr.mail.yahoo.com > > > >_______________________________________________ >Redhat-list mailing list >[EMAIL PROTECTED] >https://listman.redhat.com/mailman/listinfo/redhat-list _____________________________________________________________ --------------------------- [ATTITUDEX.COM] http://www.attitudex.com/ --------------------------- _____________________________________________________________ Promote your group and strengthen ties to your members with [EMAIL PROTECTED] by Everyone.net http://www.everyone.net/?btn=tag _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list