This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Segmentation fault problem
- From: Ian Lance Taylor <ian at airs dot com>
- To: Karane Mariano Vieira <karane at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 28 Jul 2005 10:11:54 -0700
- Subject: Re: Segmentation fault problem
- References: <e4a816d050728093447f654cc@mail.gmail.com>
Karane Mariano Vieira <karane@gmail.com> writes:
> I have a strange problem with segmentation fault in c++(gnu). It
> allways happens when my program leaves a certain function. The
> function (a void one) seems to work well. But why would it receive
> segmentation fault? What are the possible reasons? Is that a stack
> problem?
There are many possible reasons.
Overwriting the stack is indeed one of the more likely ones. It is
most likely some sort of invalid pointer or array use leading to
memory corruption.
Ian