Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!bionet!agate!stanford.edu!neon.Stanford.EDU!calvin!zimmer From: zimmer@calvin.stanford.edu (Andrew Zimmerman) Newsgroups: comp.sys.next Subject: Help with malloc() Message-ID: <1991Mar21.010307.18749@neon.Stanford.EDU> Date: 21 Mar 91 01:03:07 GMT Sender: news@neon.Stanford.EDU (USENET News System) Distribution: usa Organization: Stanford University Lines: 21 I have a program that runs just fine on a DEC3100 and a Sparc 1, but doesn't run correctly on my NeXT. It acts line the static buffer used by strtok is being written over by another part of my code. This leads to two possibilities, one is that my code is broken on all of the machines, but I haven't gotten bitten yet on the other platforms, or there is a bug in the malloc on the NeXT. I had read that there was some problem with alloc and malloc on the NeXT (in an article on comp.sys.next). Is there any truth to a possible bug in malloc? I haven't used the malloc debug stuff yet, so if you have any helpful pointers on that, I would appreciate that info also. Oh, lets see. The program is straight c code on a NeXTstation slab with 8 meg of memory running OS 2.0. Since I need this ASAP, any help would be greatly appreciated. Thanks, Andrew zimmer@calvin.stanford.edu