home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!spool.mu.edu!sdd.hp.com!cs.utexas.edu!ut-emx!tivoli!TIVOLI.COM!stuart
- From: stuart@TIVOLI.COM (Stuart Jarriel)
- Newsgroups: comp.sys.hp
- Subject: xdr_array() possible problem?
- Message-ID: <3923@tivoli.UUCP>
- Date: 9 Sep 92 01:34:00 GMT
- Sender: news@tivoli.UUCP
- Organization: Tivoli Systems, Inc
- Lines: 19
-
-
- We have an application that uses xdr_array() a LOT! and passes in a NULL
- struct so that xdr_array() will allocate the storage. Well, in some
- cases we are finding that we SEGV when we free the storage that xdr_array()
- allocated.
-
- Now it is entirely possible that our application (still early in debug) is
- stepping on the stack somehow, but I have source to xdr_array() that works
- just fine (if I replace the one from HPUX).
-
- So my question is:? Does HPUX do ANY storage tricks inside xdr_array()
- WRT to allocating storage (if *array == NULL). Tricks here would include
- anything OTHER than allocating (# of elements * element_size) from BSS.
- I only see the problem when I ask for # of elements = 1 or 2. So I was
- hoping that with a small enough # the HPUX might be (in bad form) giving
- me static storage instead of alloc'ing the space.
-
- Just hoping....
- stuart
-