home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / linux / 9243 < prev    next >
Encoding:
Text File  |  1992-08-27  |  1.6 KB  |  35 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!usc!sol.ctr.columbia.edu!eff!world!jrs
  3. From: jrs@world.std.com (Rick Sladkey)
  4. Subject: Re: ghostscript/ghostview errors
  5. In-Reply-To: jliddle@rs6000.cmp.ilstu.edu's message of Thu, 27 Aug 1992 03:53:46 GMT
  6. Message-ID: <JRS.92Aug27230733@lepton.world.std.com>
  7. Lines: 22
  8. Sender: jrs@world.std.com (Rick Sladkey)
  9. Organization: The Internet
  10. References: <1992Aug27.035346.16159@rs6000.cmp.ilstu.edu>
  11. Date: Fri, 28 Aug 1992 03:07:33 GMT
  12.  
  13. >>>>> On Thu, 27 Aug 1992 03:53:46 GMT, jliddle@rs6000.cmp.ilstu.edu
  14. >>>>> (Jean Liddle) said:
  15.  
  16. Jean> Both ghostview 1.3 and ghostscript 2.5 (from
  17. Jean> gatekeeper.3com.com) compiled flawlessly under linux 0.97.1 and
  18. Jean> gcc 2.2.2.  (linux 0.97.1 was installed over the SLS 0.96
  19. Jean> installation).  When trying to display some files, such as
  20. Jean> "cheq.ps", "chess.ps", and one of the linux logos, I get the
  21. Jean> message "Dynamic memory exhausted." in my xconsol.  Does anyone
  22. Jean> know how to prevent this from happening?  Is there a workaround
  23. Jean> or compilation option I may have overlooked?
  24.  
  25. The first thing I would check is that you have included stdlib.h in
  26. the files with the malloc calls.  Linux malloc returns NULL when
  27. malloc(0) is called and this confuses many programs into thinking all
  28. memory is gonzo.  See the GCC FAQ for details.  BTW, this is the same
  29. problem that causes olvwm to abort when trying to use various menu
  30. functions.  Either recompile using stdlib.h or change the malloc
  31. return check to "result == NULL && amount != 0" or somthing similar.
  32. --
  33. Rick Sladkey
  34. jrs@world.std.com
  35.