🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
16 messages
16 total messages Started by Simon Dean Mon, 15 Sep 2003 11:52
INND Problem
#66673
Author: Simon Dean
Date: Mon, 15 Sep 2003 11:52
45 lines
2313 bytes
Hi,

I just upgraded to INND 2.4.0 on my old Caldera OpenLinux 2.3 box, which 
is now running Kernel 2.4.20...

Anyhow,

I upgraded since I couldn't get authorisation to work.

I upgraded from INN 2.3.3 to 2.4.0. All seemed to work, authorisation is 
fine. I can even seem to post. But actually, I couldn't.

A quick look through telnet to port 119 reveals the following:

==========
200 simtext.plus.com InterNetNews NNRP server INN 2.4.0 ready (posting ok).
post
340 Ok, recommended ID <bjvirv$qp$1@simtext.plus.com>
From: sjdean@simtext.plus.com
Newsgroups: blargle.test
Subject: TEsting


Testing
..


Connection to host lost.
=========

And then I've lost connection. I got no notice of, erm, 280 is it? Posts 
never show up in the newsgroup. I tried restoring the configuration from 
2.3.3 in case the make update routine did something wrong.

But still no joy. I can post 'ghosts' that dont get taken but dont get 
anywhere.

I restored back to 2.3.3, same configuration, and lo and behold, yes, 
posting starts working, but the authorisation breaks.

So, any ideas what Im doing wrong? Let me know what files you need to see.

Thanks
Simon
Re: INND Problem
#66675
Author: Russ Allbery
Date: Mon, 15 Sep 2003 18:26
17 lines
1711 bytes
Simon Dean <sjdean@simtext.plus.com> writes:

> A quick look through telnet to port 119 reveals the following:

[...]

> Connection to host lost.

nnrpd died.  Is there anything in the logs saying why it died?  This is
probably something more serious than a configuration issue; generally this
indicates a bug of some sort.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: INND Problem
#66676
Author: Simon Dean
Date: Mon, 15 Sep 2003 20:38
26 lines
1662 bytes
Russ Allbery wrote:

> Simon Dean <sjdean@simtext.plus.com> writes:
> 
> 
>>A quick look through telnet to port 119 reveals the following:
> 
> 
> [...]
> 
> 
>>Connection to host lost.
> 
> 
> nnrpd died.  Is there anything in the logs saying why it died?  This is
> probably something more serious than a configuration issue; generally this
> indicates a bug of some sort.
> 


You're right. I tried running nnrpd alone, and there's a segmentation 
fault. Now. Why? :-)

Cheers
Simon
Re: INND Problem
#66677
Author: Russ Allbery
Date: Mon, 15 Sep 2003 20:42
18 lines
1830 bytes
Simon Dean <sjdean@simtext.plus.com> writes:
> Russ Allbery wrote:

>> nnrpd died.  Is there anything in the logs saying why it died?  This is
>> probably something more serious than a configuration issue; generally
>> this indicates a bug of some sort.

> You're right. I tried running nnrpd alone, and there's a segmentation
> fault. Now. Why? :-)

Can you run nnrpd inside gdb and get a backtrace of where the segmentation
fault is?

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: INND Problem
#66678
Author: Simon Dean
Date: Mon, 15 Sep 2003 22:07
48 lines
2372 bytes
Russ Allbery wrote:

> Simon Dean <sjdean@simtext.plus.com> writes:
> 
>>Russ Allbery wrote:
> 
> 
>>>nnrpd died.  Is there anything in the logs saying why it died?  This is
>>>probably something more serious than a configuration issue; generally
>>>this indicates a bug of some sort.
> 
> 
>>You're right. I tried running nnrpd alone, and there's a segmentation
>>fault. Now. Why? :-)
> 
> 
> Can you run nnrpd inside gdb and get a backtrace of where the segmentation
> fault is?
> 

I didn't have gdb before now... nice.

Ok, here's the results:

(gdb) run
Starting program: /mnt/second/usr/local/news/bin/nnrpd
200 simtext.plus.com InterNetNews NNRP server INN 2.4.0 ready (posting ok).
post
340 Ok, recommended ID <bk5blf$mag$1@simtext.plus.com>
From: sjdean@simtext.plus.com
Subject: Testing
Newsgroups: blargle.test


Testing
..

Program received signal SIGSEGV, Segmentation fault.
0x0806536a in HandleHeaders (article=0x8127719 "\nTesting\n") at perl.c:54
54         dSP;
(gdb)


I've been doing some googling, to no avail.

Cheers
Simon
Re: INND Problem
#66680
Author: Russ Allbery
Date: Mon, 15 Sep 2003 22:14
20 lines
2059 bytes
Simon Dean <sjdean@simtext.plus.com> writes:

> Program received signal SIGSEGV, Segmentation fault.
> 0x0806536a in HandleHeaders (article=0x8127719 "\nTesting\n") at perl.c:54
> 54         dSP;
> (gdb)

Well, if you run "bt" or "backtrace" at that prompt, it will give more
information about the call stack there, but it looks like it's segfaulting
inside the Perl support code.

Are you using a Perl posting filter?  If not, try zeroing the
filter_nnrpd.pl file in pathbin/filter and seeing if that makes the
problem go away.  I'm not sure why it's segfaulting there, though.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: INND Problem
#66679
Author: Simon Dean
Date: Mon, 15 Sep 2003 23:01
60 lines
3066 bytes
Russ Allbery wrote:

> Simon Dean <sjdean@simtext.plus.com> writes:
> 
> 
>>Program received signal SIGSEGV, Segmentation fault.
>>0x0806536a in HandleHeaders (article=0x8127719 "\nTesting\n") at perl.c:54
>>54         dSP;
>>(gdb)
> 
> 
> Well, if you run "bt" or "backtrace" at that prompt, it will give more
> information about the call stack there, but it looks like it's segfaulting
> inside the Perl support code.
> 
> Are you using a Perl posting filter?  If not, try zeroing the
> filter_nnrpd.pl file in pathbin/filter and seeing if that makes the
> problem go away.  I'm not sure why it's segfaulting there, though.
> 

Here's the backtrace:

post
340 Ok, recommended ID <bk5fo4$nsd$1@simtext.plus.com>
From: sjdean@simtext.plus.com
Subject: Testing This One
Newsgroups: blargle.test

This is a test
..

Program received signal SIGSEGV, Segmentation fault.
0x0806536a in HandleHeaders (article=0x8127722 "This is a test\n") at 
perl.c:54
warning: Source file is more recent than executable.

54         dSP;
(gdb) bt
#0  0x0806536a in HandleHeaders (article=0x8127722 "This is a test\n")
     at perl.c:54
#1  0x0806c9e5 in ARTpost (article=0x8127722 "This is a test\n",
     idbuff=0xbffff898 "<bk5fo4$nsd$1@simtext.plus.com>", ihave=false,
     permanent=0xbffff888) at post.c:1041
#2  0x080613f0 in CMDpost (ac=1, av=0x8126670) at commands.c:604
#3  0x080650f8 in main (argc=1, argv=0xbffffd04) at nnrpd.c:1346
#4  0x400e10aa in __libc_start_main () from /lib/libc.so.6
(gdb)

and there's no filter either. No filter file in that path you mentioned.

But that put my onto a theory, configuring without perl. And guess what! 


Posting now works!

thanks for your help therefore...

Cheers
Simon
Re: INND Problem
#66682
Author: Russ Allbery
Date: Mon, 15 Sep 2003 23:11
19 lines
2050 bytes
Simon Dean <sjdean@simtext.plus.com> writes:

> and there's no filter either. No filter file in that path you mentioned.

> But that put my onto a theory, configuring without perl. And guess what! 
> Posting now works!

> thanks for your help therefore...

That's very strange; Perl filtering in nnrpd should have been
automatically disabled when there was no Perl filter.  That would explain
the segfault; it's trying to talk to a Perl interpretor that hasn't been
initialized.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: INND Problem
#66683
Author: Simon Dean
Date: Mon, 15 Sep 2003 23:25
26 lines
2040 bytes
Russ Allbery wrote:

> Simon Dean <sjdean@simtext.plus.com> writes:
> 
> 
>>and there's no filter either. No filter file in that path you mentioned.
> 
> 
>>But that put my onto a theory, configuring without perl. And guess what! 
>>Posting now works!
> 
> 
>>thanks for your help therefore...
> 
> 
> That's very strange; Perl filtering in nnrpd should have been
> automatically disabled when there was no Perl filter.  That would explain
> the segfault; it's trying to talk to a Perl interpretor that hasn't been
> initialized.
> 

Perhaps a bug report should be in order then?

Cheers
Simon
Re: INND Problem
#66684
Author: Russ Allbery
Date: Mon, 15 Sep 2003 23:27
21 lines
2331 bytes
Simon Dean <sjdean@simtext.plus.com> writes:
> Russ Allbery wrote:

>> That's very strange; Perl filtering in nnrpd should have been
>> automatically disabled when there was no Perl filter.  That would
>> explain the segfault; it's trying to talk to a Perl interpretor that
>> hasn't been initialized.

> Perhaps a bug report should be in order then?

You've already made as formal of a bug report as we have.  :)  When nnrpd
starts, it writes a variety of messages to the news.notice log.  One of
those should say something about Perl filtering.  Do you have the logs
from before you recompiled without Perl support?  What did it say about
the Perl filter?

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: INND Problem
#66685
Author: Simon Dean
Date: Mon, 15 Sep 2003 23:35
52 lines
3403 bytes
Russ Allbery wrote:

> Simon Dean <sjdean@simtext.plus.com> writes:
> 
>>Russ Allbery wrote:
> 
> 
>>>That's very strange; Perl filtering in nnrpd should have been
>>>automatically disabled when there was no Perl filter.  That would
>>>explain the segfault; it's trying to talk to a Perl interpretor that
>>>hasn't been initialized.
> 
> 
>>Perhaps a bug report should be in order then?
> 
> 
> You've already made as formal of a bug report as we have.  :)  When nnrpd
> starts, it writes a variety of messages to the news.notice log.  One of
> those should say something about Perl filtering.  Do you have the logs
> from before you recompiled without Perl support?  What did it say about
> the Perl filter?
> 


Aha. Yes, here's a few notes:

Sep 15 21:35:16 simtext innd: SERVER descriptors 1024
Sep 15 21:35:16 simtext innd: SERVER outgoing 1011
Sep 15 21:35:16 simtext innd: SERVER ccsetup control:13
Sep 15 21:35:16 simtext innd: SERVER lcsetup localconn:15
Sep 15 21:35:16 simtext innd: SERVER rcsetup remconn:3
Sep 15 21:35:16 simtext innd: usenet.plus.net opened usenet.plus.net:17:file
Sep 15 21:35:16 simtext innd: news.dataaccess.com opened 
news.dataaccess.com:18:file
Sep 15 21:35:16 simtext innd: SERVER perl filter not defined
Sep 15 21:35:16 simtext innd: SERVER starting
Sep 15 21:35:18 simtext nnrpd[32205]: pc6.blargle.homeunix.net 
(10.0.0.55) connect
Sep 15 21:35:18 simtext nnrpd[32205]: Reading access from 
/usr/local/news/etc/readers.conf
Sep 15 21:35:18 simtext nnrpd[32205]: Auth strategy 'localhost' does not 
match client.  Removing.

Of course, if  it sees on startup the perl filter is not defined, why 
should it try and access it and SEGV?

Cheers
Simon

PS I'll continue tomorrow. Its too late for me right now. Thanks for all 
your help though. Much appreciated.
Re: INND Problem
#66686
Author: Russ Allbery
Date: Mon, 15 Sep 2003 23:51
44 lines
3282 bytes
Simon Dean <sjdean@simtext.plus.com> writes:

> Aha. Yes, here's a few notes:

> Sep 15 21:35:16 simtext innd: SERVER descriptors 1024
> Sep 15 21:35:16 simtext innd: SERVER outgoing 1011
> Sep 15 21:35:16 simtext innd: SERVER ccsetup control:13
> Sep 15 21:35:16 simtext innd: SERVER lcsetup localconn:15
> Sep 15 21:35:16 simtext innd: SERVER rcsetup remconn:3
> Sep 15 21:35:16 simtext innd: usenet.plus.net opened usenet.plus.net:17:file
> Sep 15 21:35:16 simtext innd: news.dataaccess.com opened
> news.dataaccess.com:18:file
> Sep 15 21:35:16 simtext innd: SERVER perl filter not defined

That's the innd one, which is separate.

> Sep 15 21:35:16 simtext innd: SERVER starting
> Sep 15 21:35:18 simtext nnrpd[32205]: pc6.blargle.homeunix.net (10.0.0.55)
> connect
> Sep 15 21:35:18 simtext nnrpd[32205]: Reading access from
> /usr/local/news/etc/readers.conf
> Sep 15 21:35:18 simtext nnrpd[32205]: Auth strategy 'localhost' does not
> match client.  Removing.

Hm.  There should be something in there from nnrpd as well (Perl filtering
for nnrpd is handled separately).  Or maybe I'm just misremembering and
nnrpd doesn't actually log anything about that.

I'm getting a bit confused by how this code works.  I'm wondering if
setting perlfilter: to false in readers.conf in the access group would
have fixed this problem.

What version of Perl do you have installed?

> PS I'll continue tomorrow. Its too late for me right now. Thanks for all
> your help though. Much appreciated.

Absolutely!

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: INND Problem
#66688
Author: Jeffrey M. Vinocur
Date: Tue, 16 Sep 2003 01:04
19 lines
1665 bytes
In article <87isnt6267.fsf@windlord.stanford.edu>,
Russ Allbery  <rra@stanford.edu> wrote:
>
>Hm.  There should be something in there from nnrpd as well (Perl filtering
>for nnrpd is handled separately).  Or maybe I'm just misremembering and
>nnrpd doesn't actually log anything about that.

A quick dig through my logs shows that we do get things like:

    Sep 15 20:49:36 puck nnrpd[5395]: SERVER perl filtering enabled

but only when a post is about to be made by the client.  (Which
makes sense.)


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: INND Problem
#66689
Author: Simon Dean
Date: Tue, 16 Sep 2003 06:27
28 lines
2084 bytes
Jeffrey M. Vinocur wrote:
> In article <87isnt6267.fsf@windlord.stanford.edu>,
> Russ Allbery  <rra@stanford.edu> wrote:
> 
>>Hm.  There should be something in there from nnrpd as well (Perl filtering
>>for nnrpd is handled separately).  Or maybe I'm just misremembering and
>>nnrpd doesn't actually log anything about that.
> 
> 
> A quick dig through my logs shows that we do get things like:
> 
>     Sep 15 20:49:36 puck nnrpd[5395]: SERVER perl filtering enabled
> 
> but only when a post is about to be made by the client.  (Which
> makes sense.)



Just had a quick look through my logs... I dont see that specific line 
unfortunately.

I am concerned however, since there seems to be a lot of people trying 
to access my news server - and of course failing.

Cheers
Simon

Re: INND Problem
#66690
Author: Simon Dean
Date: Tue, 16 Sep 2003 06:31
23 lines
2177 bytes
> I'm getting a bit confused by how this code works.  I'm wondering if
> setting perlfilter: to false in readers.conf in the access group would
> have fixed this problem.

Suppose its a possibility, but considering I was using the previous 
./configure options from 2.3.3, and using the same conf files, Im 
finding this totally bizarre.

(configure had --enable-tagged-hash and --with-perl - I compiled 2.3.3 
like that, without a filter and it worked - or at least config.status 
tells me it was configured like that).


> What version of Perl do you have installed?

5.005_02



Cheers
Simon
Re: INND Problem
#66691
Author: Russ Allbery
Date: Tue, 16 Sep 2003 19:27
22 lines
2561 bytes
Simon Dean <sjdean@simtext.plus.com> writes:

>> What version of Perl do you have installed?

> 5.005_02

Yeah, I'm really not understanding why this didn't work.  I was running
INN for a long time in a very similar configuration and hadn't seen
anything like this.

That's very odd.  I wish I had some idea of exactly what about dSP; was
segfaulting.  It does look like it's calling Perl code without having
initialized a Perl interpretor, if you don't have any messages about the
Perl filter being enabled or disabled.

I so far don't have a clear idea of why that's happening, though.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
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