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: Seg fault


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.


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