From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,abcecb3a9ef72367,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-06-29 18:21:06 PST Newsgroups: comp.unix.osf.osf1 Path: gmd.de!xlink.net!howland.reston.ans.net!noc.near.net!uunet!anagld!aplcen.apl.jhu.edu!ddsdx2.jhuapl.edu!jbp From: jbp@ddsdx2.jhuapl.edu (John Phelps) Subject: Problems using mallocs buffers (Alpha OSF) Message-ID: <1993Jun29.215428.1461@aplcen.apl.jhu.edu> Summary: Using functions tend to cause bogus memory addrs. Keywords: OSF,Alpha,malloc Sender: news@aplcen.apl.jhu.edu (USENET News System) Organization: Johns Hopkins University Date: Tue, 29 Jun 93 21:54:28 GMT Ok, I posted earlier this A.M. about a problem I was experiencing with recv and mallocd buffers. As it turns out, the problem is really with a generic data package I wrote a few years ago. It seems to work fine for the test program and for some relatively simple portions of the socket server, but other times it's really whacked. The symptoms are that if the calling sequence gets too deep it's almost as if the calling function somehow loses rights to the allocated memory. For Ex: main --> allocate_message --> allocate_object --> calloc and I access and print values it all SEEMS to be fine until the main function tries to use the block of allocated memory. I'm completely baffled, and *ANY* help will be greatly appreciated. Also, I am using calloc/malloc and NOT the alloca call. Thanks. -- John Phelps, jbp@ddsdx2.jhuapl.edu OR jbp@raven.jhuapl.edu