Segmentation fault on malloc call

Alan Stange stange@rentec.com
Thu Sep 30 23:56:00 GMT 1999


Hi,

The times that I've seen this usually involve stomping on the heap
itself.  For example, allocating 16 bytes, but then using 32, etc.
Using purify, you'll find this right away.

Also, try "man watchmalloc" to help chasing down the problem.

--
Alan L. Stange     Renaissance Technologies Corp.    stange@rentec.com





More information about the Gcc-help mailing list