Segmentation fault inside a call to the 'new' operator

Maurizio Umberto Puxeddu umbpux@tin.it
Sat Jun 26 16:13:00 GMT 1999


Hello all,

	I'm using egcs release 1.1.2 and I have a debugging problem in a C++
program.
It crashes _inside_ a new operator call and I can't understand why.

It's not a problem of how much memory I'm going to allocate. The crash
doesn't happen always but for a program it happen always in the same new
call.

I changed all new calls with malloc() calls but the result is the same.

I don't know it its a library bug or not. When does new gets usually
"Segmentation fault"?

Thanks, 
Maurizio Umberto Puxeddu


More information about the Gcc mailing list