Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!warwick!cudcv From: cudcv@warwick.ac.uk (Rob McMahon) Newsgroups: comp.mail.sendmail Subject: Re: sendmail 5-65+/IDA under SunOS4.1 dumps core with frozen .cf Message-ID: <1990Dec12.143759.20693@warwick.ac.uk> Date: 12 Dec 90 14:37:59 GMT References: Sender: news@warwick.ac.uk (Network news) Organization: Computing Services, Warwick University, UK Lines: 49 In article michael@uni-paderborn.de (Michael Schmidt) writes: >sendmail dumps core if it is started with frozen config file. In >"getservbyname"!! (Yes, I used the ../uiuc/malloc.c) Has anyone got a fix for this ? Note that I haven't got NAMED_BIND defined. The stack trace I get is #0 0x24d10 in _yp_dobind_soft () #1 0x24c1c in _yp_dobind () #2 0x25d80 in yp_first () #3 0x23c1c in getservent () #4 0x239a0 in getservbyname () #5 0x4d70 in getrequests () #6 0xc210 in main () I'm convinced it's some sort of state being kept by the Yellow Pages (oops, sorry BT, NIS). I imagine the change that's provoked this is moving some YP access to before the freeze stage. I tried a quick *** /tmp/,RCSt1a02053 Wed Dec 12 12:02:59 1990 --- main.c Mon Oct 29 17:19:14 1990 *************** *** 954,959 **** --- 954,967 ---- if (freezefile == NULL) return; + #if YP + { + char *domain; + if (yp_get_default_domain(&domain) == 0) + yp_unbind(domain); + } + #endif YP + /* try to open the freeze file */ f = creat(freezefile, FileMode); if (f < 0) to reset the NIS before dumping. This gets it past a `-bv -v' test, but it still dumps core when invoked with `-bd'. Cheers, Rob -- UUCP: ...!mcsun!ukc!warwick!cudcv PHONE: +44 203 523037 JANET: cudcv@uk.ac.warwick INET: cudcv@warwick.ac.uk Rob McMahon, Computing Services, Warwick University, Coventry CV4 7AL, England