Memory Fault, core Dumped (ISC 2.0.1)

Conor P. Cahill cpcahil at virtech.uucp
Sat Feb 24 13:12:35 AEST 1990


In article <469 at telxon.UUCP> gorpong at telxon.UUCP (Gordon C. Galligher) writes:
>A while back (I don't know how long) I posted an RFH (Request For HEEEELP)
>on this newsgroup about malloc() causing a memory fault and core dump on
>Interactive Systems Corporation's 386/ix 2.0.1 and I received a couple of
>responses which solved the problem.  The symptom, to repeat myself, occurs
>on large (over 12K) programs requesting memory via the malloc() call.  It was
>entirely inconsistent and it happened as root and whomever else.  If you
>link the code with the -lmalloc option the problem goes away!  This causes
>the linkage of the /lib/libmalloc.a file rather than the standard malloc()
>call in the libc.a file.

I would be very leery about using the program.  I don't think you actually
solved the problem, just hid it.  You should use the standard malloc
functions and track down the problem that is probably in your code.  I 
say that the problem is probably in your code because there are hundreds
of programs on the system that use the libc.a malloc without any 
problems.

The correct way to fix this problem is to track down the cause of the 
memory fault in your code.  A 12K program is not a very large program
and should be somewhat easy to debug.

-- 
+-----------------------------------------------------------------------+
| Conor P. Cahill     uunet!virtech!cpcahil      	703-430-9247	!
| Virtual Technologies Inc.,    P. O. Box 876,   Sterling, VA 22170     |
+-----------------------------------------------------------------------+



More information about the Comp.unix.i386 mailing list