This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Segmentation fault Causes


Hi there,

 Segmentation faults are signals delivered from the operating
system to a process to inform it, that the process has attempted
to access memory outside its address space. Common causes are
forgetting to initialise a pointer before use or using something,
which is not a pointer, as a pointer.
 You might want to compile with debug info and run the program
under a debug'er. It should provide you with the exact line,
where the segfault is generated. If you are fairly lucky, the
reason will be also be quite apparent.

Yours sincerely,

Bjorn


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]