Article View: news.software.nntp
Article #11907Re: nnrpd hangs up after POST command
From: Olly Betts
Date: Fri, 25 Oct 1996 00:00
Date: Fri, 25 Oct 1996 00:00
37 lines
1921 bytes
1921 bytes
In article <slrn56v60h.o09.olly@mantis.co.uk>, Olly Betts wrote:
>The setup is: Linux 2.0.0, INN 1.4 + security patches. Compiled by me
>mostly following the Linux config suggestions in the FAQ.
>
>The problem is: nnrpd hangs up after a POST command, but the post *does*
>make it into the newsspool. Nothing suspicious in any log files, but I find
>a fresh core dump in /var/spool/news/core with in.nnrpd's name in it.
OK, I've now worked out what was going wrong. I sorted out syslog.conf and
added extra trace code to nnrpd's post.c, which soon highlighted that nnrpd
calls fclose() on 2 file streams that have already been closed. Here's a
patch which corrects the problem:
--- nnrpd/post.c.orig Fri Oct 18 15:07:22 1996
+++ nnrpd/post.c Fri Oct 25 15:40:23 1996
@@ -789,8 +789,11 @@
/* Send a quit and close down */
SendQuit(FromServer, ToServer);
+#if 0
+ /* SendQuit() has already called fclose() on these two streams */
(void)fclose(FromServer);
(void)fclose(ToServer);
+#endif
if (idbuff)
(void)strcpy(idbuff, HDR(_messageid));
return NULL;
Am I really the first person to have hit this bug?
Olly
--
cool wet grass cool wet grass cool wet grass cool wet grass cool wet grass
Technical Details
Message-ID:
<slrn571klr.o09.olly@mantis.co.uk>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:
<slrn56v60h.o09.olly@mantis.co.uk>Show Full Headers
Complete Article Headers
Message-ID: <slrn571klr.o09.olly@mantis.co.uk> Subject: Re: nnrpd hangs up after POST command Date: Fri, 25 Oct 1996 00:00:00 +0000 From: olly@mantis.co.uk (Olly Betts) References: <slrn56v60h.o09.olly@mantis.co.uk> 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: 192008198 Distribution: inet Content-type: text/plain; charset=iso-8859-1 Organization: Mantis Consultants Ltd, Cambridge. UK. Mime-version: 1.0 Newsgroups: news.software.nntp