From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,ab14a126e900c661 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-12-03 18:17:57 PST Newsgroups: comp.sys.dec Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!vixen.cso.uiuc.edu!uwm.edu!fnnews.fnal.gov!unixhub!slacvx.slac.stanford.edu!fairfield From: fairfield@slacvx.slac.stanford.edu Subject: Re: malloc debug for Alpha Message-ID: <1993Dec3.164841.1@slacvx.slac.stanford.edu> Sender: news@unixhub.SLAC.Stanford.EDU Organization: Stanford Linear Accelerator Center References: Date: Sat, 4 Dec 1993 00:48:41 GMT In article , charlie@umnstat.stat.umn.edu (Charles Geyer) writes: > Got a problem. I have to port a bunch of C code to Alpha. The code runs > fine on 32 bit machines, but bombs on an Alpha. Lots of print statements > show that malloc is returning pointers to blocks that overlap other blocks > that were previously allocated and not freed. O. K. so the code wasn't > written portably. I know, don't tell me. > > The next step was to try to get a malloc debugging package. So I snarfed > malloclib from comp.sources.unix and GNU malloc. Neither one passes it's > tests on the Alpha. O. K. so the code wasn't written portably. > > What now? Anyone have any suggestions? Besides more print statements :-( No solutions, just two suggestions: 1) Have you made sure that all your pointer variables are 64-bits? (Use `long int' I think...) 2) Post your query to vmsnet.alpha for quick and knowledgeable response. :-) -Ken -- Dr. Kenneth H. Fairfield | Internet: Fairfield@Slac.Stanford.Edu SLAC, P.O.Box 4349, MS 98 | DECnet: 45537::FAIRFIELD (45537=SLACVX) Stanford, CA 94309 | Voice: (415) 926-2924 FAX: (415) 926-4335 ---------------------------------------------------------------------------- These opinions are mine, not SLAC's, Stanford's, nor the DOE's...