Thread View: news.software.nntp
4 messages
4 total messages
Started by Olly Betts
Thu, 24 Oct 1996 00:00
nnrpd hangs up after POST command
Author: Olly Betts
Date: Thu, 24 Oct 1996 00:00
Date: Thu, 24 Oct 1996 00:00
51 lines
2201 bytes
2201 bytes
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. But gdb complains "Couldn't fetch registers from core file: File in wrong format". Posting using IHAVE works, and innd doesn't hang up on me. I've had a good look through the FAQ, and couldn't find anything about this. If I've missed it, please point me at the relevant section. Sample transcript: umbra:/usr/lib/news> telnet localhost nntp Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 200 mantis InterNetNews server INN 1.4 22-Dec-93 ready MODE READER 200 mantis InterNetNews NNRP server INN 1.4 22-Dec-93 ready (posting ok). POST 340 Ok Newsgroups: mantis.test Subject: POST test From: olly@mantis.co.uk Testing the NNTP POST command Olly .. Connection closed by foreign host. I've tried turning on tracing using "ctlinnd trace nnrpd y" and/or "ctlinnd trace innd y", but I don't get any trace information in any log files (I've tried searching the whole filesystem with "find / -newer touchedfile -ls"). The group 'mantis.test' is a local test group, but I get the same problem with 'uk.test', so it doesn't appear to be related to it being a local group. Any suggestions? Olly -- cool wet grass cool wet grass cool wet grass cool wet grass cool wet grass
Re: nnrpd hangs up after POST command
Author: 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
Re: nnrpd hangs up after POST command
Author: Philip Chong
Date: Fri, 25 Oct 1996 00:00
Date: Fri, 25 Oct 1996 00:00
50 lines
2133 bytes
2133 bytes
-----BEGIN PGP SIGNED MESSAGE----- In article <slrn56v60h.o09.olly@mantis.co.uk>, Olly Betts <olly@mantis.co.uk> 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. But >gdb complains "Couldn't fetch registers from core file: File in wrong >format". > >Posting using IHAVE works, and innd doesn't hang up on me. I've had a good >look through the FAQ, and couldn't find anything about this. If I've missed >it, please point me at the relevant section. There's a bug at the end of nnrpd/post.c in nnrpd where it tries to close a file descriptor twice. This diff works for me: ***begin*** diff -r inn.orig/nnrpd/post.c inn.new/nnrpd/post.c 5d4 < #include "nnrpd.h" 9a9 > #include "nnrpd.h" 791a792 > /* SendQuit already closes 793a795 > */ ***end*** The first bit just fixes out that annoying problem with the FD* macros. (I compiled with HAVE_UNISTD=DONT, before I read the FAQ). Phil -----BEGIN PGP SIGNATURE----- Version: 2.6.2 iQCVAwUBMnEBXBeBS36DLYcZAQGMWQP+J8iOKu5bZodAFWxrHpFryTL85v+QTRpK CQW/6qWD06yTSotofiL02IfZtociBHYikITZ92vIqycQO+assjdzIXRq6kOuv9YV 344cY1q75hdXaYHmg/0J3W6eHk3d3tYY0XRZBBDYHHkTLVBxVrDvyipxj+D0yVEs 7d06xpenQkU= =pQZ/ -----END PGP SIGNATURE-----
Re: nnrpd hangs up after POST command
Author: James Brister
Date: Fri, 25 Oct 1996 00:00
Date: Fri, 25 Oct 1996 00:00
20 lines
1077 bytes
1077 bytes
olly@mantis.co.uk (Olly Betts) writes: > Am I really the first person to have hit this bug? No, but you're running a pretty old version of INN. If you aren't in the mood to run a beta version then go see http://www.math.psu.edu/barr/INN.html for inn1.4unoff4. For 1.5b1 go to http://www.isc.org/isc/inn.html James -- James Brister brister@vix.com Internet Software Consortium http://www.isc.org inn@isc.org
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads