home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.aix
- Path: sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!gatech!usenet.ins.cwru.edu!agate!linus!philabs!acheron!scifi!watson!yktnews!admin!influenza!lucien
- From: lucien@watson.ibm.com (Lucien Van Elsen)
- Subject: Re: malloc(0) fails on AIX and nowhere else I could find ...
- Sender: news@watson.ibm.com (NNTP News Poster)
- Message-ID: <LUCIEN.93Jan8082821@fionavar.watson.ibm.com>
- In-Reply-To: jz1j+@andrew.cmu.edu's message of 7 Jan 93 13:00:20 GMT
- Date: Fri, 8 Jan 1993 13:28:21 GMT
- Disclaimer: This posting represents the poster's views, not necessarily those of IBM
- References: <93Jan7.012526est.169557-2@watdragon.uwaterloo.ca>
- <wfH=M4y00hYzAC54Zt@andrew.cmu.edu>
- Nntp-Posting-Host: fionavar.watson.ibm.com
- Organization: IBM T.J Watson Research Center
- Lines: 19
-
- jz1j+@andrew.cmu.edu (James D. Zelenka) writes:
- > Yeah, I ran into this too when I ported zephyr to AIX. There's an
- > obscure fix for this.
- >
- > If you call:
- > mallopt(1,0);
-
- You may want to pick up the latest snapshot of the zephyr sources from
- athena-dist.mit.edu; this bug has since been fixed in a more portable way.
- Given that the documentation (at least in the 3.2 InfoExplorer) says
- "Nothing done with the mallopt subroutine affects how memory is allocated by
- the system", relying on it to cause malloc(0) to allocate memory where it
- wouldn't previously is not likely to be a good long-term solution.
-
- -Lucien
- --
- -----------------------------------------------------------------------
- Lucien Van Elsen IBM Research
- lucien@watson.ibm.com Project Agora
-