home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / sgi / 11097 next >
Encoding:
Text File  |  1992-07-20  |  1.5 KB  |  35 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!mips!odin!mikey
  3. From: mikey@sgi.com (Mike Yang)
  4. Subject: Re: X/Motif
  5. Message-ID: <1992Jul21.050305.24169@odin.corp.sgi.com>
  6. Sender: news@odin.corp.sgi.com (Net News)
  7. Nntp-Posting-Host: eukanuba.wpd.sgi.com
  8. Organization: Silicon Graphics, Inc.
  9. References: <1992Jul20.053028.26567@odin.corp.sgi.com> <1992Jul21.022624.16473@nuscc.nus.sg>
  10. Date: Tue, 21 Jul 1992 05:03:05 GMT
  11. Lines: 22
  12.  
  13. In article <1992Jul21.022624.16473@nuscc.nus.sg> spec01@solomon.technet.sg (Quak Wan Ling) writes:
  14. >   I have an application that crashes after sometime. Most of the menu
  15. >   I uses XtPopup and XtPopdown. I've checked thru' my src carefully
  16. >   and the dbx dump always returns me with malloc problem.  However,
  17. >   I have about 50M of RAM which doesn't make sense.
  18.  
  19. Undoubtedly you have a memory corruption problem, which may or may not
  20. be the fault of Motif.  I would first check your code for memory
  21. corruption (e.g. double free, memory overrun, etc.) using a debugging
  22. malloc library or other tool.  For instance, the WorkShop debugger
  23. which SGI sells (and which was written using our Motif) can detect
  24. some memory problems.
  25.  
  26. Another package to try is Conor P. Cahill's debugging malloc library.
  27. I've temporarily placed a copy of it as:
  28.  
  29.     sgi.com:~ftp/pub/mikey/malloc-debug.tar.Z
  30.  
  31. -----------------------------------------------------------------------
  32.                  Mike Yang        Silicon Graphics, Inc.
  33.                mikey@sgi.com           415/390-1786
  34.  
  35.