This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c/8411: Segmentation fault error in malloc
- From: Joe Buck <jbuck at synopsys dot com>
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 31 Oct 2002 22:36:01 -0000
- Subject: Re: c/8411: Segmentation fault error in malloc
- Reply-to: Joe Buck <jbuck at synopsys dot com>
The following reply was made to PR c/8411; it has been noted by GNATS.
From: Joe Buck <jbuck@synopsys.com>
To: gcc-gnats@gcc.gnu.org, bridean@ureach.com, gcc-bugs@gcc.gnu.org
Cc:
Subject: Re: c/8411: Segmentation fault error in malloc
Date: Thu, 31 Oct 2002 14:33:42 -0800
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.