Path: utzoo!attcan!uunet!van-bc!ubc-cs!alberta!arcsun.arc.ab.ca!calgary!cpsc!paquette From: paquette@cpsc.ucalgary.ca (Trevor Paquette) Newsgroups: comp.sys.sgi Subject: Re: Bus error DURING call to malloc() Keywords: help bus error malloc Message-ID: <1990Jun10.211156.16153@calgary.uucp> Date: 10 Jun 90 21:11:56 GMT References: <14525@thorin.cs.unc.edu> Sender: news@calgary.uucp (Network News Manager) Organization: The University of Calgary Lines: 36 In article <14525@thorin.cs.unc.edu>, taylorr@glycine.cs.unc.edu (Russell Taylor) writes: > > We are running OS 3.2.2 on an IRIS 4D/240GTX. I ran a program and > got the proverbial 'Bus error (core dumped)' message. The catch is that > when I run dbx and look for the error, it tells me that the error occured > IN malloc(): > > ....Source (of malloc.c) not available... > > There are several calls to malloc() in the code. There have been > successful calls before this call is made. All calls are passed constant > references, and this code compiles and runs correctly on a variety of other > machines (VAX, sun 4, DecStation). > > Is there a known bug (and hopefully fix) for this? > > Thanks, > Russell Taylor > taylorr@cs.unc.edu In the files that use malloc add the following.. #include then when compiling add '-lmalloc' to your list of libraries. I have had this problem before and this cleared it up. Note: this does not 'fix' the problem.. you are now using a different malloc. Trev ___________________________________________/No man is a failure who has friends Trevor Paquette ICBM:51'03"N/114'05"W|I accept the challange, body and soul, {ubc-cs,utai,alberta}!calgary!paquette|to seek the knowledge of the ones of old paquette@cpsc.ucalgary.ca | - engraved on the Kersa Blade of Esalon