home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / aix / 8869 < prev    next >
Encoding:
Text File  |  1992-08-17  |  1.9 KB  |  52 lines

  1. Newsgroups: comp.unix.aix
  2. Path: sparky!uunet!newsgate.watson.ibm.com!yktnews!admin!flu!marc
  3. From: marc@watson.ibm.com (Marc Auslander)
  4. Subject: Re: C routine realloc() seems broken in AIX 3.2.2...
  5. Sender: news@watson.ibm.com (NNTP News Poster)
  6. Message-ID: <MARC.92Aug17162825@marc.watson.ibm.com>
  7. In-Reply-To: lubkt@synergy.CC.Lehigh.EDU's message of 17 Aug 92 16:37:28 GMT
  8. Date: Mon, 17 Aug 1992 21:28:25 GMT
  9. Distribution: comp.unix.aix
  10. Disclaimer: This posting represents the poster's views, not necessarily those of IBM
  11. References: <LUBKT.92Aug17113728@synergy.CC.Lehigh.EDU>
  12. Nntp-Posting-Host: marc.watson.ibm.com
  13. Organization: IBM T.J. Watson Research Center, Hawthorne, New York
  14. Lines: 36
  15.  
  16. In article <LUBKT.92Aug17113728@synergy.CC.Lehigh.EDU> lubkt@synergy.CC.Lehigh.EDU (Binod Taterway) writes:
  17.  
  18.  
  19. >FYI - 
  20.  
  21. >AIX 3.2.2 has broken all my realloc() calls. The code that worked on
  22. >AIX 3.1.8 (and all previous releases) now gives core dump after I
  23. >upgraded AIX. I get -
  24.  
  25. >    Catastrophe in realloc: invalid storage ptr
  26. >    IOT/Abort trap(coredump)
  27.  
  28. >B.
  29. >--
  30.  
  31. >- Binod Taterway                     
  32. >  Sr. User Consultant (LUCC)
  33. >  E-mail: bt00@Lehigh.EDU
  34.  
  35.  
  36. The previous malloc was more forgiving about calling free (or realloc)
  37. with a pointer which was not currently allocated.  (That is, either it
  38. didn't really come from malloc, or it had already been freed).  The
  39. message above indicates that malloc has detected such a call.  You
  40. might want to look at your program and see why.  You can alternately
  41. force use of the old malloc - see the documentation.
  42.  
  43. If on consideration you really believe that the pointer is allocated,
  44. you might file a bug report.  If you are freeing an unallocated
  45. pointer and believe that that ought to work, I'd appreciate a note
  46. explaining the situation.
  47. --
  48.  
  49.  
  50. Marc Auslander       (IBM)<marc@marc.watson.ibm.com>      914 784-6699
  51.                      (Internet)<marc@watson.ibm.com>
  52.