home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / os2 / programm / 4301 < prev    next >
Encoding:
Internet Message Format  |  1992-08-18  |  1.4 KB

  1. Xref: sparky comp.os.os2.programmer:4301 comp.lang.c:12479
  2. Newsgroups: comp.os.os2.programmer,comp.lang.c
  3. Path: sparky!uunet!mcsun!news.funet.fi!cc.tut.fi!mn87504
  4. From: mn87504@cs.tut.fi (Naatula Mika)
  5. Subject: malloc causes a segmentation violation!?
  6. Message-ID: <1992Aug18.143135.6259@cc.tut.fi>
  7. Originator: mn87504@kaarne.cs.tut.fi
  8. Sender: news@cc.tut.fi (USENET News System)
  9. Organization: Tampere University of Technology
  10. Date: Tue, 18 Aug 92 14:31:35 GMT
  11. Lines: 23
  12.  
  13.  
  14. I wonder if this is a familiar bug to someone.
  15.  
  16. The problem is:
  17. Sometimes my program causes a segmentation fault. If I drive it with
  18. CVP I can find out (from calls sequence) that the error was caused by
  19. malloc. To be exact, malloc calls an internal(?) function named
  20. _searchseg() that fails. Any ideas what this function might be?
  21.  
  22. I use MSC 6.00 in OS/2 1.3 environment.
  23.  
  24. I write programs for Lotus Notes using Lotus Notes API libraries. (But
  25. I think it is irrelevant to the promlem). 
  26. The memory model used is Large.
  27.  
  28. My program uses a lot of dynamic memory allocation, but I am quite
  29. sure that there is no bugs in my code. I have spent two days checking
  30. out the memory allocation of this program.
  31.  
  32. -- 
  33.              __   | Mika Naatula            Email: mic@cc.tut.fi
  34. |\ //| ||  //  \  | Lindfrosinkatu 8 A 11          mn87504@cs.tut.fi
  35. | \/ | || ||      | 33720 Tampere, FINLAND
  36. |    | ||  \\__/  | 931-185 993
  37.