Path: utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!pt.cs.cmu.edu!isl1.ri.cmu.edu!cycy From: cycy@isl1.ri.cmu.edu (Scum) Newsgroups: comp.sys.sgi Subject: Re: Bus error DURING call to malloc() Summary: try this... Keywords: help bus error malloc Message-ID: <9560@pt.cs.cmu.edu> Date: 7 Jun 90 22:07:52 GMT References: <14525@thorin.cs.unc.edu> Organization: Carnegie-Mellon University, CS/RI Lines: 22 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(): | 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? Try linking with the malloc library. Just use -lmalloc as an argument when you are linking; this will provide an alternative version of malloc which seems to work better. This has solved the problem for us in similar cases. Good luck. -- Chris. -- -- Chris. (cycy@isl1.ri.cmu.edu) "People make me pro-nuclear." -- Margarette Smith