From: jbp@ddsdx2.jhuapl.edu (John Phelps)
Subject: Problems using mallocs buffers (Alpha OSF)
Date: Tue, 29 Jun 93 21:54:28 GMT [thread overview]
Message-ID: <1993Jun29.215428.1461@aplcen.apl.jhu.edu> (raw)
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
reply other threads:[~1993-06-29 21:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox