abhay@hou2d.UUCP (A.JAIN) (09/09/88)
I am looking for malloc.c for SUN. Faced with some core dump in malloc(). Tried other versions of malloc.c from other unix versions, but they do not even compile. abhay
gandalf@csli.STANFORD.EDU (Juergen Wagner) (09/10/88)
[Sorry for posting this but I don't seem to be able to send mail to this host] Before you're blaming malloc.c have a look at your program. The kind of error you are describing looks pretty much like some mangled/overwritten pointers. If you are overwriting the housekeeping information malloc needs, it is no longer able to do its job. I have a version of malloc that checks its tables every time you call it, and when something's wrong it tells you! Let me know if that's what you need. -- Juergen "Gandalf" Wagner, gandalf@csli.stanford.edu Center for the Study of Language and Information (CSLI), Stanford CA