Mail Archives: djgpp/1999/03/25/17:32:32
peter DOT chui AT lmco DOT com wrote:
>
> Hello,
>
> The program that I compiled occasionally crashes with a,
>
> "Exiting due to signal SIGSEGV"
> "Page fault at eip=..."
>
> message. When I used symify to get the line numbers, most of the ones
> that crash end up at,
>
> "_malloc+99"
> "__builtin_new+44, line 0 of libgcc2.c"
>
> I can't find a copy of libgcc2.c in any of the .zip files.
It's the file in the libgcc source where the `new' operator is
implemented. You can get it from the gcc281s.zip package, but it's
really not interesting; all it does is call `malloc', as you can see.
Your bug is probably corrupting the heap, which makes `malloc' crash;
check for pointer overruns and such.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -