c/8411: Segmentation fault error in malloc

Joe Buck jbuck@synopsys.com
Thu Oct 31 14:34:00 GMT 2002


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.



More information about the Gcc-bugs mailing list