home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / aix / 8257 < prev    next >
Encoding:
Text File  |  1992-07-28  |  1.8 KB  |  48 lines

  1. Newsgroups: comp.unix.aix
  2. Path: sparky!uunet!convex!darwin.sura.net!udel!louie!mercury.cis.udel.edu!tirilok
  3. From: tirilok@mercury.cis.udel.edu (Prem Tirilok)
  4. Subject: Re: dbx (xde) bugs?
  5. Message-ID: <1992Jul28.165752.28205@udel.edu>
  6. Sender: usenet@udel.edu (USENET News Service)
  7. Nntp-Posting-Host: mercury.cis.udel.edu
  8. Organization: University of Delaware, Newark
  9. References: <BLOCK.92Jul20104351@ief.itg.ti.com>
  10. Distribution: comp
  11. Date: Tue, 28 Jul 1992 16:57:52 GMT
  12. Lines: 34
  13.  
  14. In article <BLOCK.92Jul20104351@ief.itg.ti.com> block@ief.itg.ti.com (Bucky Block) writes:
  15. >
  16. >I'm having a problem debugging a large executable using xde/dbx.
  17. >It brings the program up fine, but when I start single stepping 
  18. >through it, it just hangs. It seems to happen on any subroutine
  19. >that is doing memory allocation. 
  20.  
  21. >Bucky Block                         |     block@ief.itg.ti.com
  22.  
  23. I seem to have a similar problem, if not the same.  Is there a problem
  24. with malloc.  After a couple of times the following statement is called
  25. the system gives a "memory fault" and dbx says that it happens at "malloc".
  26. For your information, repetitive calls to malloc work fine when called
  27. from "main()" but bomb out when invoked from a subroutine.
  28.  
  29. The statement that results in the error message is:
  30.  
  31. token = (char *) malloc (sizeof (char *));
  32.  
  33. (where token is declared to be  "char *token;")
  34.  
  35. Any ideas and suggestions are welcome.  The same program seems to be
  36. running fine on a SPARCserver (670MP) and SGI (Indigo) workstations,
  37. of course with a few modifications in other parts of the program.
  38.  
  39. Thanks
  40. (Please email suggestions to tirilok@cis.udel.edu)
  41.  
  42. Prem
  43. -- 
  44.     ---   O                   __           
  45.    ---  <\ )    //)) //))  //__   //\///     \====================
  46.    ---- />     //   //\\  //__   //  //      tirilok@cis.udel.edu
  47. ==================================================================
  48.