smalloc.c or other malloc replcemants

Posted by Robert Powell on Tue 15 Nov 2005 11:33 PM — 2 posts, 13,905 views.

Australia #0
Hi, anyone know where i can get my hands on a malloc replacement. I have been battling DISPOSE crashes now for a while. I am using the latest Samson recommended macros and still am having crashed on DISPOSE.

Our host is Redhat(oldhat)7 and i can only assume that this is most of the trouble as i cannot replicate any of the crashes on my Fed4 box. A server upgrade is out of the question right now.

So im looking to find a copy of the smalloc.c or something better that i can try to remove some of my crashes. Not that they are often now, but every 5->10 days is still a pain.
USA #1
Could you post some of the gdb dumps of whatever crashes you are having? They may be fixable without resorting to a worthless implementation of malloc. Those smalloc.c files were a joke the day they were made - never saw any reason for them.

The other part of your problem may be stemming from Redhat 7 using gcc 2.96 which is a known piece of bugware that even GNU didn't want them using since it came from a pre-release beta branch.

Post the STRALLOC, STRFREE, and DISPOSE macros you are currently using. It will help to see what you're up against. It may be something silly like an incorrect STRALLOC/DISPOSE somewhere that eventually results in DISPOSE causing a problem.