🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #11914

Re: nnrpd hangs up after POST command

#11914
From: Philip Chong
Date: Fri, 25 Oct 1996 00:00
50 lines
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-----

Technical Details
Message-ID: <54qvhm$176@boopsie.hip.berkeley.edu>
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
References: <slrn56v60h.o09.olly@mantis.co.uk>

Show Full Headers
Complete Article Headers
Message-ID: <54qvhm$176@boopsie.hip.berkeley.edu>
Subject: Re: nnrpd hangs up after POST command
Date: Fri, 25 Oct 1996 00:00:00 +0000
From: pchong@boopsie.hip.berkeley.edu (Philip Chong)
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: 192024781
Distribution: inet
Organization: Phil's Linux Box
Newsgroups: news.software.nntp