Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!ucsd!ucbvax!bloom-beacon!eru!hagbard!sunic!mcsun!hp4nl!charon!piet From: piet@cwi.nl (Piet Beertema) Newsgroups: comp.mail.sendmail Subject: Re: sendmail-5.64 problem (+ fix) Message-ID: <2082@charon.cwi.nl> Date: 7 Sep 90 08:19:52 GMT References: <2043@charon.cwi.nl> Sender: news@cwi.nl Organization: CWI, Amsterdam Lines: 26 >When using the frozen config, this happens *before* the frozen >config is read; after reading the frozen config, the malloc >structure *may* then be messed up, depending on the malloc() >implementation. That was apparently the case on the Alliant. > >Since setdefuser() needs to be called only just prior to reading >(and perhaps freezing) the config file, the fix is simple: >- delete the setdefuser() call from setdefaults() in conf.c >- add a setdefuser() call at the start of readcf() in readcf.c I've had reports from several sites where this fix didn't have the expected result: sendmail kept dumping core when using the frozen config file. I've now been able to reproduce that on a SUN here. The difference with all other SUNs here is that this one doesn't use yellow pages, which makes a difference for getpwuid() used in the setdefuser() routine. I haven't tracked down yet where the problem now really stems from, but a hack that has made it work on all systems here is to just delete the setdefuser() call completely (from setdefaults() where it was originally and the first one in readcf() as per the fix I gave). -- Piet Beertema, CWI, Amsterdam (piet@cwi.nl)