Seg fault

Andrew Haley aph@redhat.com
Mon Nov 27 14:04:00 GMT 2006


Priya Sinha writes:
 > Hi,
 > 
 > Does GCC give segmentation fault when an attempt is made to access
 > memory outside the process address space only or can this error be
 > generated even if an attempt is made to access any area within the
 > adress spaxce itself, for eg; the code area or the .ro section of the
 > process?

gcc doesn't do any of thse things.  SIGSEGV is generated by the
operating system kernel whenever an illegal memory access is detected.

Andrew.



More information about the Gcc-help mailing list