🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
1 messages
1 total messages Started by Forrest J. Cavalier III Sat, 30 Aug 1997 00:00
Re: nnrp drops connection when posting !!HELP!!
#21115
Author: Forrest J. Cavalier III
Date: Sat, 30 Aug 1997 00:00
142 lines
5266 bytes
In article <5u8las$eq@rokker.mz.rhein-main.de>, roland@rokker.mz.rhein-main.de 
wrote...
>
>On Fri, 29 Aug 1997, Forrest J. Cavalier III wrote:
>
>> We will get more information if you run this gdb:
>> 
>> gdb /path/to/in.nnrpd /var/spool/news/core
>> 
>This is the output of gdb:
>********************************************************************
>rokker:~# gdb /usr/lib/news/etc/in.nnrpd /var/spool/news/core
>GDB is free [snip] tware Foundation, Inc...(no debugging symbols 
>found)...
>Core was generated by `-rokker.rok.de post
>                    '.
>Program terminated with signal 11, Segmentation fault.
>Reading symbols from /lib/libc.so.5.3.12...(no debugging symbols 
>found)...done.
>Reading symbols from /lib/ld-linux.so.1...(no debugging symbols 
>found)...done.
>#0  0x4003c40d in __libc_free ()
>(gdb)
>**************************************************************
>
>> 1. inews does not usually talk to nnrpd.  
>I find exactly the same with tin, netscape, pine, Microsoft Explorer from 
>a Win3.11 Box via LAN and when I post manually with telnet. Merely the error 
>messages differ slightly.
>
>This is the output, when I post with telnet:
>***************************************************************
>roland@rokker:/home/linux > telnet localhost 119
>Trying 127.0.0.1...
>Connected to localhost.
>Escape character is '^]'.
>200 rokker.mz.rhein-main.de InterNetNews server INN 1.4 20-Mar-93 ready
>mode reader
>200 rokker.mz.rhein-main.de InterNetNews NNRP server INN 1.4 20-Mar-93 
>ready (posting ok).
>post
>340 Ok
>From: roland
>Subject: core test
>Newsgroups: rokker
>
>test ignore
>.
>Connection closed by foreign host.
>roland@rokker:/home/linux >
>*********************************************************************
>
>One more point to add: The posting actually is successful! However, nnrpd 
>does not survive it.
>
>> Do you
>> have HAVE_UNIX_DOMAIN set to DONT?  
>This I found in /usr/lib/news/linux.tools/config.data:
>**************************************************************
>#### =()<HAVE_UNIX_DOMAIN       @<HAVE_UNIX_DOMAIN>@>()=
>#HAVE_UNIX_DOMAIN       DO
># AKL / Skahan
>HAVE_UNIX_DOMAIN        DONT
>**************************************************************
>> Take a look at FAQ 4.9.
>As far as I understand, it cannot it changed. So, what now?
>The only way out seems to me to play around with localhost, rokker and
>rokker.mz.rhein-main.de server names for use in NNTPSERVER, inn.conf, 
>nnrp.access and hosts.nntp to avoid or create the right amount of confusion. 
>
>Again I am clueless. Thank you for any advice.
>
>Yours,
>
>Roland


INN 1.4 is very old.  Lots of bugs were fixed since then.
DejaNews pulls up the following message, which will probably
help you.....

Forrest Cavalier, Mib Software, INN customization and consulting


Subject:      Re: nnrpd hangs up after POST command
From:         pchong@boopsie.hip.berkeley.edu (Philip Chong)
Date:         1996/10/25
Message-Id:   <54qvhm$176@boopsie.hip.berkeley.edu>
Newsgroups:   news.software.nntp
[More Headers]

-----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-----


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