Article View: comp.os.os2.programmer
Article #1081malloc causes a segmentation violation!?
From: Naatula Mika
Date: Tue, 18 Aug 1992 14:31
Date: Tue, 18 Aug 1992 14:31
24 lines
1362 bytes
1362 bytes
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
Technical Details
Message-ID:
<1992Aug18.143135.6259@cc.tut.fi>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!news.funet.fi!cc.tut.fi!mn87504Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer,comp.lang.c Path: arc1-ca.pugleaf.net!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