home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / next / programm / 8240 < prev    next >
Encoding:
Internet Message Format  |  1993-01-21  |  1.7 KB

  1. Path: sparky!uunet!think.com!mintaka.lcs.mit.edu!ogicse!pdxgate!alamo!erich
  2. From: erich@alamo.mth.pdx.edu (Erich S. Boleyn)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Re: Memory Allocation Error
  5. Message-ID: <erich.727618096@alamo>
  6. Date: 21 Jan 93 12:08:16 GMT
  7. Article-I.D.: alamo.erich.727618096
  8. References: <C16K2t.HGC@agora.rain.com>
  9. Sender: news@pdxgate.UUCP
  10. Lines: 34
  11.  
  12. bobb@agora.rain.com (Bob Beauchemin) writes:
  13.  
  14.  
  15. >  I'm having a problem with the NeXT 2.1 compiler and wonder if anyone else
  16. >has experienced it. Code that compiles OK and works on other platforms
  17. >fails on the NeXT. The error messages (at program execution) are:
  18.  
  19. >  memory allocation error: attempt to free or realloc space not in heap
  20. >  bad zone
  21. >  IOT trap
  22.  
  23.  
  24.    I have seen this problem many times.  It has always (so far at least)
  25. been caused by attempting to call 'free' on a statically allocated string.
  26.  
  27.    Interestingly enough, running this on SunOS seems to work just fine,
  28. i.e. it ignores such requests and goes on without an eyeblink.
  29.  
  30.    I've had to fix GNU readline, some berkeley daemons, helped a friend
  31. with the really cool FTP daemon from wuarchive, etc.  and this is in
  32. many cases pretty much the only problem.  Hint:  always look for it! ;-)
  33.  
  34.    Basically, your answer is to just bite the bullet and fix the bad
  35. code that technically shouldn't have worked anyway, even though SunOS
  36. and a few others are permissive.
  37.  
  38.    Good luck,
  39.       Erich Boleyn
  40.  
  41. --
  42.              "I haven't lost my mind; I know exactly where it is."
  43.    / --  Erich Stefan Boleyn  -- \        --=> *Mad Genius wanna-be* <=--
  44.   { Honorary Grad. Student (Math) }-->  Internet E-mail: <erich@cs.pdx.edu>
  45.    \  Portland State University  /       WARNING: INTERESTED AND EXCITABLE
  46.