Article View: news.software.nntp
Article #23616Re: Diablo 1.14 silently fails
From: Dave Pifke
Date: Mon, 24 Nov 1997 00:00
Date: Mon, 24 Nov 1997 00:00
38 lines
1866 bytes
1866 bytes
Dave Pifke wrote:
> Just tried to upgrade from Diablo 1.13 to 1.14 under Solaris 2.5 x86.
>
> Everything compiled OK and I made the configuration file changes.
> When Diablo starts up, however, it immediately exits. I ran truss
> against it, and whatever is going wrong is happening after it forks.
> Nothing is logged to syslog or displayed on the screen.
OK, I set USE_SPAM_SHM as was suggested by Dale Ghent, however the
problem persists.
After some digging, it turns out that openlog() is called _after_
InitSpamFilter(), so the syslog() functions within that routine are
ineffective. Moving the openlog() function (or changing syslog() to
fprintf()) causes the problem to be logged:
sysv shared memory alloc failed
shmget() is failing, returning EINVAL. From the shmget(2) man page:
EINVAL size is less than the system-imposed minimum
or greater than the system-imposed maximum.
EINVAL A shared memory identifier exists for key but
the size of the segment associated with it is
less than size and size is not equal to zero.
Having no experience writing SYSV shared memory code, this is where I
defer to Matt's experience and wisdom. :-)
--
Dave Pifke, dpifke@slip.net
Slip.Net Sr. System Administrator
Technical Details
Message-ID:
<347A1BE2.2258@slip.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<3479E784.25DF@slip.net>Show Full Headers
Complete Article Headers
Message-ID: <347A1BE2.2258@slip.net> Subject: Re: Diablo 1.14 silently fails Date: Mon, 24 Nov 1997 00:00:00 +0000 From: Dave Pifke <dpifke@slip.net> References: <3479E784.25DF@slip.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 292369558 Reply-To: dpifke@slip.net Organization: Slip.Net Newsgroups: news.software.nntp