This is the mail archive of the gcc-prs@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


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.
 


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