home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / c / 18976 < prev    next >
Encoding:
Internet Message Format  |  1992-12-29  |  1.2 KB

  1. Path: sparky!uunet!spool.mu.edu!uwm.edu!csd4.csd.uwm.edu!markh
  2. From: markh@csd4.csd.uwm.edu (Mark)
  3. Newsgroups: comp.lang.c
  4. Subject: Unsolveable bug
  5. Date: 29 Dec 1992 17:34:38 GMT
  6. Organization: Computing Services Division, University of Wisconsin - Milwaukee
  7. Lines: 14
  8. Message-ID: <1hq27eINNjv@uwm.edu>
  9. NNTP-Posting-Host: 129.89.7.4
  10.  
  11.    I've run into an unsolveable bug.  The bug comes from no visible error, it
  12. disappears when searched for under a debugger, and it's likewise non-existent
  13. when the same program is run under other platforms and compilers.  And it
  14. doesn't involve anything having to do with timing of any sort.
  15.  
  16.    It appears on the DOS port of the program and causes the machine to crash
  17. immediately after a call to malloc().  The malloc call is the ANSI-compatible
  18. call, declared with the <stdlib.h> header.  The particular usage leading to
  19. the crash is (as determined by traces): malloc(16), malloc(16), malloc(20), ...
  20. with no intervening free() calls.  All calls to malloc() return valid pointers.
  21. Checking the memory usage reveals no corruption or access out of bounds.
  22.  
  23.    The compiler creating the problem has had reliable error-free performance
  24. with other similar programs.
  25.