This is the mail archive of the gcc-help@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: Segmentation fault problem


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


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