Article View: news.software.nntp
Article #26232inn-1.7.2.insync-1.1d, AIX 4.2.1, and scanlogs.
From: Timothy Miller
Date: Sat, 14 Feb 1998 00:00
Date: Sat, 14 Feb 1998 00:00
56 lines
2719 bytes
2719 bytes
I'm having an interesting problem here. INN is a new compilation
with CSet++ 3.1.3 (the 3.1.4 CD grew legs) on a new installation of 4.2.1
patched through the December 1997 mega-APAR.
The scanlogs script is hanging on the following block:
${EGREP} '437 Unwanted newsgroup' ${PROBS} > ${T}
if [ -s ${T} ] ; then
echo Top ${TOP} unwanted newsgroups:
${SED} 's/.*"\(.*\)".*/\1/' ${T} \
| sort | uniq -c | sort -nr | ${SED} ${TOP}q
echo ''
fi
For reference, TOP=${TOP-20} (resolves as 20), T=/tmp/scan$$,
SED=/usr/bin/sed, EGREP=/usr/bin/egrep, and PROBS=/tmp/scanlog$$ and the
script is fed through /bin/sh.
For whatever reason, the "sort -nr" portion of the above pipe
isn't exiting (or isn't being reaped, or isn't reaping the close of "uniq
-c"). This process remains even after the data is processed, which hangs
the pipe and scanlogs.
SIGHUP'ing the "sort -nr" call closes it, which collapses the
pipe and scanlogs continues on it's way happily.
What makes even less sense is that this is the 5th call of "sort
-nr" in the scanlogs script, out of a total of 8, and this is the *only*
one that hangs. It's *consistent* as it hangs here *every* time.
It's *inconsistent* as I'm running an identical compilation of
INN (same INN version & CSet, nearly same config.data) on an AIX 4.2.0
system (mostly unpatched), and the 4.2.0 system does *not* hang in
scanlogs.
There's more than enough FS space for the temp files (none show
abnormal usage during the hang), and with 2GB memory there should be more
than enough memory as well (the system is tuned to try to keep about
400Mb free).
For now I've simply commented out the block, hoping that it won't
hang on the next call. Tomorrow will tell.
I'm x-posting to comp.unix.aix since if it's a problem with sort,
it's OS related; and to news.software.nntp in case anyone else has seen
this with INN. I'd take this to AIX support now, but I'd like a little
more specific info first, else I'm likely to get stonewalled. Of course,
it could be a shell bug too... *sigh*
--
Cerebus <tmill06@ibm.net>
Technical Details
Message-ID:
<wkoh0a1bwx.fsf@ibm.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <wkoh0a1bwx.fsf@ibm.net> Subject: inn-1.7.2.insync-1.1d, AIX 4.2.1, and scanlogs. Date: Sat, 14 Feb 1998 00:00:00 +0000 From: Timothy Miller <tmill06@ibm.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 325043181 Sender: tmiller@ACROPOLIS Organization: IBM.NET Newsgroups: news.software.nntp,comp.unix.aix