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