This is the mail archive of the gcc-bugs@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: c/8411: Segmentation fault error in malloc


http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8411

Have you checked this program with a memory-checking tool (electric fence,
valgrind, purify, etc) and verified that it doesn't have any memory allocation
errors (e.g. double-frees, writing beyond the end of an allocated object, etc.).
The most common cause of segmentation faults in malloc is this kind of user error,
and the problems tend to show up differently depending on optimization.


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