This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/6216: seg fault when using new to create a memory array
- From: nathan at gcc dot gnu dot org
- To: flatmax at ieee dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 15 Sep 2002 18:25:49 -0000
- Subject: Re: c++/6216: seg fault when using new to create a memory array
- Reply-to: nathan at gcc dot gnu dot org, flatmax at ieee dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: seg fault when using new to create a memory array
State-Changed-From-To: open->feedback
State-Changed-By: nathan
State-Changed-When: Sun Sep 15 11:25:48 2002
State-Changed-Why:
I can't copmpile this with the current CVS, because the
header's no longer match the library. However, the
symptoms you describe sound stunningly like you have an
allocation problem. You are either writing off the end
of a malloc'd array, or using a pointer after it's been
freed. Try with a debugging malloc library,
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6216