Path: utzoo!attcan!uunet!ginosko!gem.mps.ohio-state.edu!apple!sun-barr!decwrl!hplabs!hp-sdd!allyn
From: allyn@hp-sdd.hp.com (Allyn Fratkin)
Newsgroups: comp.mail.sendmail
Subject: Re: Help with sendmail and frozen cf file
Message-ID: <2628@hp-sdd.hp.com>
Date: 28 Sep 89 00:30:54 GMT
References: <1153@radig.UUCP>
Sender: news@hp-sdd.hp.com
Lines: 38

In article <1153@radig.UUCP>, peter@radig.UUCP (Peter Radig) writes:
> Did anyone ever a port of sendmail to Sys V and checked it out how
> to get the `freeze' routine working?

time for a re-run....

From hp-sdd!allyn  Wed Sep 7 11:24:06 1988
Path: hp-sdd!allyn
From: allyn@hp-sdd.hp.com (Allyn Fratkin)
Newsgroups: comp.mail.sendmail
Subject: Re: Sendmail 5.59 on HP-UX
Message-ID: <1488@hp-sdd.HP.COM>
Date: 7 Sep 88 18:23:07 GMT
References: <3077@hermes.ai.mit.edu>
Sender: netnews@hp-sdd.HP.COM
Lines: 21

In article <3077@hermes.ai.mit.edu>, wisner@altdorf.AI.MIT.EDU (Bill Wisner) writes:
> When I run sendmail -bz, sendmail silently exits. This makes it seem
> like the freeze was successful, but when a later sendmail tries to read
> the frozen configuration it says "No local mailer defined" and dies
> with a segmentation error.

to fix the problem, remove the word "static" from the declaration
of SymTab on or about line 38 of stab.c.

this is due to a difference in the way arrays declared "static" are
handled by the different (berkeley vs. system v) compilers.  system v
compilers put static data into the data section of the code file
while static data goes into bss under berkeley.  sendmail's freeze/thaw
routines work by writing out and later restoring only the bss and
dynamically allocated sections of the executing image.  so the SymTab
wasn't saved and it was empty in the new core image.

-- 
 From the virtual mind of Allyn Fratkin            allyn@sdd.hp.com
                          San Diego Division       - or -
                          Hewlett-Packard Company  uunet!ucsd!hp-sdd!allyn