Path: utzoo!attcan!uunet!snorkelwacker!usc!ucsd!swrinde!cs.utexas.edu!wuarchive!psuvax1!news From: ehrlich@cs.psu.edu (Dan &) Newsgroups: comp.mail.sendmail Subject: Re: Sendmail 5.64 not being started from rc.local under SunOS 4.0.3 Message-ID: Date: 27 Jul 90 17:53:49 GMT References: <16308@ucsd.Edu> Sender: news@cs.psu.edu (Usenet) Organization: Computer Science Department, Penn State University Lines: 48 In-Reply-To: brian@ucsd.Edu's message of 27 Jul 90 17:03:05 GMT Nntp-Posting-Host: colossus.cs.psu.edu In article <16308@ucsd.Edu> brian@ucsd.Edu (Brian Kantor) writes: Brian> In article ehrlich@cs.psu.edu (Dan &) writes: >On our main mail machine (a Sun 4/380S running SunOS 4.0.3 PSR A) I have >noticed that sendmail 5.64 doesn't get started from rc.local at boot.... >' sendmail' is echoed on the console so the contents of the if are being >executed. I have looked everywhere I could think of (/ /var/spool/mqueue >/var/spool /var/tmp) for core files but can not find any. There are no >messages in system logs. Brian> I had the same problem and just now solved it. I forgot that the dynamic Brian> loader library tables haven't been created at this point in the boot Brian> sequence - they're done as one of the last things in /etc/rc. Brian> That means that ANYTHING started before then has to be statically Brian> linked, and sendmail wasn't. Brian> Change the Makefile to use -Bstatic on the link line. You'll probably Brian> also have to add -ldbm and -lresolv Brian> - Brian Don't think this is it. There are a number of dynamically linked programs that get started before the ld.so.cache file gets built. in.named for example, which starts up just fine. We noticed that sendmail 5.64 appears to provoke the bug in fork (under SunOS 4.0.3) if the enviroment is just the right size. A number of users had complained that the could not send mail anymore. The same code works just fine under SunOS 4.1. Tried the following experiment: 1) Log in as one of the afflicted users. 2) Enter the following to the shell: % trace /usr/lib/sendmail5.64 -d0-21.25 joe get a segmetation fault. 3) Enter the following: % trace /usr/lib/sendmail5.61 -d0-21.25 joe works like a champ. Easiest solution appears to be to upgrade to SunOS 4.1. This should be happening real soon now. Still, I would like to know why this happens. -- Dan Ehrlich -- Dan Ehrlich /Voice: +1 814 863 1142/FAX: +1 814 865 3176