From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,dda63c9a84ea9183 X-Google-Attributes: gid111c93,public From: Peter Rye Subject: Re: tripwire Date: 1998/11/23 Message-ID: #1/1 X-Deja-AN: 414947589 X-NNTP-Posting-Host: picu-sgh.demon.co.uk:194.222.182.163 References: <36560871.6CE47C3B@debussy.ucsc.edu> <36599FC9.5E355C5A@debussy.ucsc.edu> X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 911859491 nnrp-03:21352 NO-IDENT picu-sgh.demon.co.uk:194.222.182.163 Organization: St. George's Hospital, Paediatric ICU Newsgroups: comp.os.linux.alpha Helmut Katzgraber writes: > Hi, > > I tried what you suggested and it compiled. But when I try to initialize > tripwire I get a core dump. > > Thanks, h. > > > Peter Rye wrote: > > > tripwire-1.2 will compile if you edit the Makefile. (Uncomment the CFLAGS > > line that looks like: > > CFLAGS = -DTW_TYPE32='int' # DEC OSF/1 Alpha (or any other architecture > > > > Unfortunately this doesn't completely solve the problem as there appears to > > be a bug in the md5 code which results in it failing its own tests. I did find a patch which apparently fixes this problem (although I don't get a core dump here). Here it is. It might help. --- config.parse.c.orig Wed Jul 20 20:03:26 1994 +++ config.parse.c Mon May 18 09:58:14 1998 @@ -352,8 +352,14 @@ /* clean up */ if (!specified_configmode) (void) fclose(fpin); - - rewind(fpout); + else { + /* Bug fix: fpin and fpout are the same. fpout was being */ + /* rewound after fpin was being closed. The behavior of */ + /* this is undefined, and causes core dumps occasionally. */ + /* Added the else and changed fpout to fpin for clarity. */ + /* Bug Fix by Dan D Niles (dniles@iname.com) -DDN- */ + rewind(fpin); + } return; }