🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
67 messages
67 total messages Page 1 of 2 Started by Russ Allbery Thu, 27 Apr 2000 00:00
Page 1 of 2 • 67 total messages
INN 2.3.0 public beta
#46085
Author: Russ Allbery
Date: Thu, 27 Apr 2000 00:00
78 lines
4246 bytes
I think it's about time for an announcement along these lines, as we've
been generating the snapshots for a while and I fixed most of my list of
pending issues yesterday and the day before.

Public beta versions of INN 2.3.0 are now available.  You can get them
from <ftp://ftp.isc.org/isc/inn/snapshots/>, the files named inn-BETA-*.
Take the latest version; new snapshots are generated nightly.  These are
the release candidates for the upcoming 2.3.0 release.

Known issues with the current beta, to be fixed before the release:

 - The man page for makehistory needs some work, per recent discussion
   here.

Please report any additional issues that you encounter to
inn-bugs@isc.org.

Changes from 2.2 to 2.3

    * New readers.conf file (replaces nnrp.access) which allows more
      flexible specification of access restrictions.  Included in the sample
      implementations is a RADIUS-based authenticator.

    * Unified overview has been replaced with an overview API, and there are
      now three separate overview implementations to choose from.  One
      (tradindexed) is very like traditional overview but uses an additional
      index file for faster responses to readers.  The second (buffindexed)
      uses circular buffers and can handle a higher incoming article rate
      while still being fast for readers.  The third (ovdb) uses Berkeley DB
      to store overview information (so you need to have Berkeley DB
      installed to use it).  The ovmethod key in inn.conf chooses the
      overview method to use.

    * All article storage and retrieval is now done via the storage API. 
      Traditional spool is now available as a storage type under the storage
      API.

    * The timecaf storage method has been added, similar to timehash but
      storing multiple articles in a single file.  See INSTALL for details
      on it.

    * INN now supports embedded Python filters as well as Perl and TCL
      filters, and supports Python authentication hooks.

    * There is preliminary support for news reading over SSL, using OpenSSL.

    * To simplify anti-abuse filtering, and to be more compliant with news
      standards and proposed standards, INN now treats as control messages
      only articles containing a Control header.  A Subject line beginning
      with `cmesg ' is no longer sufficient for a message to be considered a
      control message, and the Also-Control header is no longer supported.

    * inews is not installed setgid news and rnews is not installed setuid
      root by default any more.  If you need the old permissions, you have
      to give a flag to configure.  See INSTALL for more details.

    * The INN build system no longer uses subst.  This should be mostly
      transparent to users, apart from the old annoyance of modifications to
      include files being overridden again by subst when building INN being
      a thing of the past.

    * The build and installation system has been substantially overhauled. 
      make update now updates scripts as well as binaries and documentation,
      there is better support for parallel builds (with make -j), there is
      less needless make recursion, and far more of the system-dependent
      configuration is handled directly by autoconf.  libtool build support
      (including shared library support) should be better than previous
      releases.

    * All of the applicable bug fixes from INN 2.2.1 and 2.2.2 are also
      included in INN 2.3.

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



Re: INN 2.3.0 public beta
#46111
Author: Michael E. Hedman
Date: Fri, 28 Apr 2000 00:00
34 lines
2417 bytes
In <8ecabt$2kb0$1@info.cs.uofs.edu> bill@cs.uofs.edu (Bill Gunshannon) writes:

>In anticipation of increased traffic levels when our satellite feed
>comes online (hopefully, by next week, but the delay is not Cidera's 
>fault) I am trying to upgrade my news systems (within the limits of my
>budget, or lack thereof).  And so, I am building a new feeder box with
>the latest release of Diablo.  
>
>What does this have to do with INN 2.3.0 you ask??  Simple, this might
>be a good time to redo my reader box as well.  Would those responsible 
>consider this release stable enough for a production system at an
>academic site 9as opposed to an ISP with thousands of screaming customers)??
>I'm currently running 2.2.  Would I be better off staying with that for the
>time being??

I've been running an older snapshot of INN 2.3 and it seems stable...
We don't have a ton of readers tho..
But it beat the heck out of the slowness of the INN 2.2.2 unified overview
performance, so I was willing to take the risk...

I understand that folks out there use Diablo as a reader box too!
--

____________________________________________________________________________
  Michael E. Hedman                       | E-MAIL : mejh@umn.edu
  Internet Services                       | URL    : http://umn.edu/~mejh
  The Caboose, OIT                        | PHONE  : 612-626-1338
  University of Minnesota                 | FAX    : 612-626-7593
----------------------------------------------------------------------------
  "I love it when a plan comes together" -- Hannibal Smith, The A-Team

   "Today, still wanted...  they survive as soldiers of fortune. If you have 

Re: INN 2.3.0 public beta
#46113
Author: Russ Allbery
Date: Fri, 28 Apr 2000 00:00
21 lines
1653 bytes
Bill Gunshannon <bill@cs.uofs.edu> writes:

> What does this have to do with INN 2.3.0 you ask??  Simple, this might
> be a good time to redo my reader box as well.  Would those responsible
> consider this release stable enough for a production system at an
> academic site 9as opposed to an ISP with thousands of screaming
> customers)??  I'm currently running 2.2.  Would I be better off staying
> with that for the time being??

The overview performance in 2.3.0 is *much* better.  And Heath's overview
implementation based on Berkeley DB strikes me as one of the better ideas
I've seen implemented in a long time, since it lets us news server
programmers offload the whole ugly database coding problem to the quite
competent Sleepycat folks.  :)  I've seen a few oddities with file
descriptor usage reported with it, but other than that it looks quite
nice.

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

Re: INN 2.3.0 public beta
#46115
Author: Bill Gunshannon
Date: Fri, 28 Apr 2000 00:00
24 lines
1708 bytes
In anticipation of increased traffic levels when our satellite feed
comes online (hopefully, by next week, but the delay is not Cidera's 
fault) I am trying to upgrade my news systems (within the limits of my
budget, or lack thereof).  And so, I am building a new feeder box with
the latest release of Diablo.  

What does this have to do with INN 2.3.0 you ask??  Simple, this might
be a good time to redo my reader box as well.  Would those responsible 
consider this release stable enough for a production system at an
academic site 9as opposed to an ISP with thousands of screaming customers)??
I'm currently running 2.2.  Would I be better off staying with that for the
time being??

Thanks.

bill

-- 
Bill Gunshannon          |  de-moc-ra-cy (di mok' ra see) n.  Three wolves
bill@cs.scranton.edu     |  and a sheep voting on what's for dinner.
University of Scranton   |
Scranton, Pennsylvania   |         #include <std.disclaimer.h>   

Re: INN 2.3.0 public beta
#46138
Author: Karl Kleinpaste
Date: Fri, 28 Apr 2000 00:00
13 lines
1593 bytes
Karl Kleinpaste <karl@charcoal.com> writes:
> 5. Every single article arrival on my system (Linux RH6.2, kernel
> 2.2.14, glibc 2.1.3) induces log entries:
> Apr 28 16:05:42 mesquite innd: SERVER cant store overview for @050000000006000000030000000000000000@
> Nonetheless, I don't see anything actually going wrong...

I spoke much too soon.  After a few dozen of these (there's probably
some I/O error limit in inn.conf I'm bumping into), innd throttles itself.

Nonetheless, nothing seems wrong -- no data was, or appears to be, in
error.

Re: INN 2.3.0 public beta
#46139
Author: Russ Allbery
Date: Fri, 28 Apr 2000 00:00
30 lines
1843 bytes
Karl Kleinpaste <karl@charcoal.com> writes:

> Well, things are looking progressively worse.  INND is now tripping over
> a SEGV in the perl handling code:

> Program received signal SIGSEGV, Segmentation fault.
> 0x400ea712 in chunk_alloc (ar_ptr=0x4017fd60, nb=24) at malloc.c:2764
> 2764    malloc.c: No such file or directory.
> (gdb) bt
> #0  0x400ea712 in chunk_alloc (ar_ptr=0x4017fd60, nb=24) at malloc.c:2764
> #1  0x400ea5ce in __libc_malloc (bytes=13) at malloc.c:2696
> #2  0x809efe5 in Perl_safemalloc ()

Hurm.  That's got arena corruption written all over it.  Something's
corrupting the heap.

I've not seen a report of anything like that from anyone else so far.  I
assume you're running with the keyword generation code turned on, correct?
That *might* be the difference, although I'm not sure.  I'll take a close
look at that while applying your patch for that stuff (probably later
tonight).

If push comes to shove, well, I have a Purify license.  :)

Thanks for the report!

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

Re: INN 2.3.0 public beta
#46143
Author: Karl Kleinpaste
Date: Fri, 28 Apr 2000 00:00
71 lines
3822 bytes
rra@stanford.edu (Russ Allbery) writes:
> I think it's about time for an announcement along these lines, as we've
> been generating the snapshots for a while and I fixed most of my list of
> pending issues yesterday and the day before.

Five readily-identified problems, none huge except possibly the last,
but needing address:

1. If I add "Newsgroups:full" to overview.fmt, then overviews get the
proper contents added, but with an incorrect '\0' as the separator
between group names.

2. INSTALL needs a little tweak:

--- inn-BETA-20000428/INSTALL	Fri Apr 28 06:06:33 2000
+++ inn-2.3.0b/INSTALL	Fri Apr 28 16:08:23 2000
@@ -685,7 +685,7 @@
     If the remote site puts its actual hostname in the Path: header, you
     won't need the `/news.example.com' part.
 
-    This entry will cause innd to write out a file in ~news/db/outgoing
+    This entry will cause innd to write out a file in ~news/spool/outgoing
     named remote.example.com and containing the message ID and storage token
     of each message to send to that site.  innxmit knows how to read this
     format of file and send those articles to the remote site.  For

3. I was installing this on a brand new system.  "makedbz -i" is
needed, of course, but it complains and fails due to lack of the
history file unless I "touch ~news/db/history" first.

4. Please apply the following patch to make keyword autogeneration
work.  The needed code block in ARTmakeoverview() is in the wrong
place; the keyword set is generated just fine...and then tossed out
before appending the result to the overview buffer.

diff -ru inn-BETA-20000428/innd/art.c inn/innd/art.c
--- inn-BETA-20000428/innd/art.c	Fri Apr 28 06:07:32 2000
+++ inn-2.3.0b/innd/art.c	Fri Apr 28 15:53:02 2000
@@ -1879,6 +1879,10 @@
 	    BUFFappend(&Overview, COLONSPACE, STRLEN(COLONSPACE));
 	}
 	i = Overview.Left;
+	BUFFappend(&Overview, hp->Value, hp->Length);
+	for (p = &Overview.Data[i]; i < Overview.Left; p++, i++)
+	    if (*p == '\t' || *p == '\n' || *p == '\r')
+		*p = ' ';
 
 #if	defined(DO_KEYWORDS)
 	if (innconf->keywords) {
@@ -1892,11 +1896,6 @@
 	    }
 	}
 #endif	/* defined(DO_KEYWORDS) */
-
-	BUFFappend(&Overview, hp->Value, hp->Length);
-	for (p = &Overview.Data[i]; i < Overview.Left; p++, i++)
-	    if (*p == '\t' || *p == '\n' || *p == '\r')
-		*p = ' ';
     }
 }

5. Every single article arrival on my system (Linux RH6.2, kernel
2.2.14, glibc 2.1.3) induces log entries:

Apr 28 16:05:42 mesquite innd: SERVER cant store overview for @050000000006000000030000000000000000@

Nonetheless, I don't see anything actually going wrong.  It complains,
but seemingly for no reason.  The complaint comes out of innd/art.c
line 2490, but I don't understand why.

Re: INN 2.3.0 public beta
#46144
Author: Karl Kleinpaste
Date: Fri, 28 Apr 2000 00:00
30 lines
2575 bytes
Well, things are looking progressively worse.  INND is now tripping
over a SEGV in the perl handling code:

Program received signal SIGSEGV, Segmentation fault.
0x400ea712 in chunk_alloc (ar_ptr=0x4017fd60, nb=24) at malloc.c:2764
2764    malloc.c: No such file or directory.
(gdb) bt
#0  0x400ea712 in chunk_alloc (ar_ptr=0x4017fd60, nb=24) at malloc.c:2764
#1  0x400ea5ce in __libc_malloc (bytes=13) at malloc.c:2696
#2  0x809efe5 in Perl_safemalloc ()
#3  0x80a5225 in save_hek ()
#4  0x80a6b95 in Perl_share_hek ()
#5  0x80a56d8 in Perl_hv_store ()
#6  0x8071b19 in PLartfilter (
    artBody=0x81be3ec "\r\n", '-' <repeats 14 times>, "071A20619952F04EA5EF54C6\r\nContent-Type: text/plain; charset=us-ascii\r\nContent-Transfer-Encoding: 7bit\r\n\r\n\r\nHot Chicks, Sports Picks, The Internet's Largest Collection of Available\r\nWom"..., lines=27) at perl.c:92
#7  0x8064398 in ARTpost (cp=0x401fab68) at art.c:2042
#8  0x806d907 in NCpostit (cp=0x401fab68) at nc.c:196
#9  0x806ed41 in NCproc (cp=0x401fab68) at nc.c:927
#10 0x806f409 in NCreader (cp=0x401fab68) at nc.c:1155
#11 0x806a43b in CHANreadloop () at chan.c:975
#12 0x806d398 in main (ac=2, av=0xbffffe94) at innd.c:940

I'm testing this using "suck" to pull articles from another friendly
server.  I haven't touched anything to do with the perl or python stuff.
For my purposes, I don't need spam cancellation support, so I can
probably just turn off perl and python interactions entirely.

Perl RPM is perl-5.00503-10 as dist'd with RH6.2.

Re: INN 2.3.0 public beta
#46168
Author: Katsuhiro Kondou
Date: Sat, 29 Apr 2000 00:00
12 lines
1404 bytes
In article <vxk8zxyt0hi.fsf@mesquite.charcoal.com>,
	Karl Kleinpaste <karl@charcoal.com> wrote;

} I spoke much too soon.  After a few dozen of these (there's probably
} some I/O error limit in inn.conf I'm bumping into), innd throttles itself.

Which ovmethod are you running?  And how about
'ctlinnd mode'?
-- 
Katsuhiro Kondou

Re: INN 2.3.0 public beta
#46169
Author: Daniel S. Riley
Date: Sat, 29 Apr 2000 00:00
30 lines
2104 bytes
curt@kcwc.com (Curt Welch) writes:
> I used the Berkeley DB stuff as the basis for a database server I
> wrote because I too figured they "knew" what they were doing.  Worst
> mistake I ever made.  Buggy as hell.
[...]
> Every time.  Their response - use the new stuff, the old stuff had
> bugs.  And if you check the release history, you see a constant flow
> of bug fix releases comming from them.
> 
> But the "old" stuff with this bug is still the verion of the DB code that
> ships with FreeBSD (well at least up to FreeBSD 3.4 which is the
> most current I have running here).

According to their cvs source tree, FreeBSD is still shipping 1.85,
which I believe predates SleepyCat.  I think it's more than a little
unfair to slam a (freely available) commercially supported product on
the basis of the 5 year old academic research project code it was
based on, or fault SleepyCat for FreeBSD's failure to update to a
more recent version.

I'm sure Keith and Margo would love to eradicate 1.85 off the face of
the earth, not least because people do waste time fighting bugs in it
that were fixed years ago, but they have no way to force vendors like
FreeBSD to update.
-- 
Dan Riley                                         dsr@mail.lns.cornell.edu
Wilson Lab, Cornell University      <URL:http://www.lns.cornell.edu/~dsr/>
    "History teaches us that days like this are best spent in bed"

Re: INN 2.3.0 public beta
#46173
Author: Curt Welch
Date: Sat, 29 Apr 2000 00:00
108 lines
5648 bytes
bostic@bostic.com wrote:
> In article <20000428200032.678$zG@newsreader.com>,
>   curt@kcwc.com (Curt Welch) wrote:
>
> > Nope, I don't trust that code at all any more.  Anybody that can ship
> > database code with errors as bad as that just can't be on my "trused
> > coder" list.
>
> To some extent, I'm hesitant to reply

No, I'm glad you did. It shows you care about your work and that's
always a good thing.

> -- if you don't like the
> software, you don't like the software.  There are some things
> that Curt didn't make clear, however.
>
> First, when Curt says "Berkeley DB', he's talking about version
> 1.85.

Right.  It's the 2.X sequence that starts the new stuff right?

> DB 1.85 was written by two graduate students and myself
> at the University of California, Berkeley, around 10 years ago.
> It mostly works, but was never systematically tested -- it did
> what we needed it to do, which was create a replacement for the
> AT&T dbm code that we could distribute in 4BSD, and get a couple
> of papers published.
>
> The bugs Curt notes are long-known problems in a code base that
> hasn't been maintained or looked at in a decade.

Yes, and it was years ago when I found the first bug and reported
it.

> (Our web pages
> list other problems in DB 1.85 that Curt didn't mention.)  By
> now, it's clear we should have changed the name of the package
> from "Berkeley DB" when we rewrote the code as Sleepycat Software,
> but we didn't, and it's too late now.
>
> Second, Curt notes that Sleepycat told him to upgrade when he
> asked about the problems he was seeing.  Maybe he didn't realize
> that we were telling him to upgrade to a completely new code
> base, or maybe he didn't want to change APIs.

A little of both.  But mainly it was an issue of since I was burned once -
and had created work-around patches which seemed to be holding, I just
didn't want to waste my time upgrading to a yet another version of code
(from at least one of the same authors) which I might once gain have to
spend days debugging problems and creating new work-arounds.

Also, all I needed for my application was a simple hashed key/value
file access method.  The new code had added tons of more advanced database
features that I had no use for.  From my past experience with the
old code, the idea of switching to a new code base from the same people
which had thousands of lines of new code to support even more advanced
and complex features was something that just didn't sound like a wise
move on my part.

> Regardless, we
> weren't telling him to upgrade to a new release, a bug-fix
> version.  We were telling him there was an entirely different
> software package he should run.  He notes that FreeBSD still
> ships the old code.  There are reasons for that, but it's still
> not fair to blame us that FreeBSD ships 10-year-old code.

Sure.  I wasn't trying to blame you for that. It was more just to
warn people that the old buggy code was still being shipped today (even
if not by you).

> Third, there's a "constant flow of bug fix releases" from
> Sleepycat.  You bet.  Anybody in this newsgroup ever ship
> 100,000 lines of bug-free code?

Well that's my point.  I needed 500 lines of hashed key file
access code and got burned when I tried to use your old code.
The though of switching to the 100K version just didn't make
much sense for me.  For someone that needs all the "real"
DB features your new code supports, it makes a lot more sense.

> Berkeley DB is the best tested product I've ever shipped in my
> life.  Our test suite is about 25,000 lines of Tcl, and takes
> about 3 days to run.  We're going through a release cycle now.
> We'll doing full test suite runs on 17 different compiler and
> architecture combinations, as well as individual tests
> elsewhere, and that's all before we enter beta test.  Our test
> coverage is about 80% (that means we're testing everything but
> the individual error cases). Our Purify runs are clean.

Well it sounds like you have come a long way from the days when the
old stuff was developed.  That's good.

And, because of my problems with the old code, I have never
tested the new stuff to know how well it works.  So my comments only
apply to the old stuff.

> Berkeley DB is a very solid package, folks.  And, you don't have
> to take my word for it.  We're an OpenSource product.  Download
> the software and evaluate it and our testing story for yourself.

Just watch out for the old 1.85 code ....

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Re: INN 2.3.0 public beta
#46177
Author: Russ Allbery
Date: Sat, 29 Apr 2000 00:00
14 lines
1221 bytes
bostic <bostic@bostic.com> writes:

> First, when Curt says "Berkeley DB', he's talking about version 1.85.

Oh!

Curt, that's a completely different database package entirely.  That's
definitely not what INN is using for overview if you choose the ovdb
method.  INN is using 2.x or 3.x, which is something completely different.

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

Re: INN 2.3.0 public beta
#46179
Author: Katsuhiro Kondou
Date: Sat, 29 Apr 2000 00:00
14 lines
1560 bytes
In article <ylsnw5lu6t.fsf@windlord.stanford.edu>,
	Russ Allbery <rra@stanford.edu> wrote;

} I've not seen a report of anything like that from anyone else so far.  I

I'm not sure if the problem is in keyword, but I've once
seen the similar problem in perl filter code, though the
filter is default one.  When I asked this at inn-workers,
you advised me not to use perl's malloc, and this has
been ok so far to our server.
-- 
Katsuhiro Kondou

Re: INN 2.3.0 public beta
#46180
Author: Curt Welch
Date: Sat, 29 Apr 2000 00:00
54 lines
3467 bytes
Russ Allbery <rra@stanford.edu> wrote:

> The overview performance in 2.3.0 is *much* better.  And Heath's overview
> implementation based on Berkeley DB strikes me as one of the better ideas
> I've seen implemented in a long time, since it lets us news server
> programmers offload the whole ugly database coding problem to the quite
> competent Sleepycat folks.

I used the Berkeley DB stuff as the basis for a database server I
wrote because I too figured they "knew" what they were doing.  Worst
mistake I ever made.  Buggy as hell.

I only used the hash stuff.  And I used it in ways that were
somewhat unusal for it, which is why I found various bug when others
continue to use it without problems.  But because of the bugs I
found, I'll never trust their code again.

They support some type of complex system that allows you to write
key/value pairs that are larger than the block size.  And that's
the type of stuff I figured it would be better to use their tested
code for instead of doing it myself.  But, as it turns out, if you
write a key/value that's bigger than a block, then overwrite the
key/value with a new value which makes it smaller than a block
again, it corrupts the databse.  Every time.  Their response - use
the new stuff, the old stuff had bugs.  And if you check the
release history, you see a constant flow of bug fix releases
comming from them.

But the "old" stuff with this bug is still the verion of the DB code that
ships with FreeBSD (well at least up to FreeBSD 3.4 which is the
most current I have running here).

My soultion -- use blocks much larger than what I wanted to use and
limit the size of data I allow to be stored in the DB -- which causes
me some real problems at the application level but at lest the
DB doesn't get corrupted any more.

Bug 2.  They have routines for doing a scan of the database.  You
call a function to return the next key/value from the DB.  But, if
you modify the DB enough in the middle of the scan (don't know what
"enough" is at this point), the scan routines will return a corrupted
key/value structure.  The pointers and size variables in the structure have
been overwritten with data from the database.  My solution -- check for
obvious bogus values and ignore them.  What a hack.

Nope, I don't trust that code at all any more.  Anybody that can ship
database code with errors as bad as that just can't be on my "trused
coder" list.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Re: INN 2.3.0 public beta
#46182
Author: Karl Kleinpaste
Date: Sat, 29 Apr 2000 00:00
10 lines
1523 bytes
Russ Allbery <rra@stanford.edu> writes:
> I've not seen a report of anything like that from anyone else so far.  I
> assume you're running with the keyword generation code turned on, correct?

Yes.  I'd turn it off to test without it...but the little beastie
still won't run because it's still complaining about "cant store
overview" for every single article, and after 50 of those, it
throttles.

Re: INN 2.3.0 public beta
#46185
Author: Katsuhiro Kondou
Date: Sat, 29 Apr 2000 00:00
31 lines
1954 bytes
In article <vxkg0s6t1oi.fsf@mesquite.charcoal.com>,
	Karl Kleinpaste <karl@charcoal.com> wrote;

} 1. If I add "Newsgroups:full" to overview.fmt, then overviews get the
} proper contents added, but with an incorrect '\0' as the separator
} between group names.

Just fixed for all branch(2.2.*, 2.3 and CURRENT).

} 2. INSTALL needs a little tweak:

Applied.

} 3. I was installing this on a brand new system.  "makedbz -i" is
} needed, of course, but it complains and fails due to lack of the
} history file unless I "touch ~news/db/history" first.

INSTALL and Makefile is now fixed.

} 4. Please apply the following patch to make keyword autogeneration
} work.  The needed code block in ARTmakeoverview() is in the wrong
} place; the keyword set is generated just fine...and then tossed out
} before appending the result to the overview buffer.

Applied.

Thank you very much.
-- 
Katsuhiro Kondou

Re: INN 2.3.0 public beta
#46187
Author: Russ Allbery
Date: Sat, 29 Apr 2000 00:00
23 lines
1760 bytes
Karl Kleinpaste <karl@charcoal.com> writes:

> I start to feed a test pile of 232 articles to innd.  Every single
> article accepted generates this log entry:

> Apr 30 00:24:33 mesquite innd: SERVER cant store overview for
> @05000000000F000000410000000000000000@

First question:  It looks like the overview code now actually *requires*
that Xref be one of the overview fields.  I noticed from your other
message that you have Newsgroups:full; do you not have Xref:full because
of that?  That could break overview storage.  (I think this is a bug and
INN should pass the newsgroup and article number list to OVadd() via some
other mechanism, but that's how it stands at present.)

OVadd() also returns FALSE in a few other circumstances without much in
the way of diagnostics.  Adding some more output there may be necessary if
that isn't it.

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

Re: INN 2.3.0 public beta
#46188
Author: Russ Allbery
Date: Sat, 29 Apr 2000 00:00
15 lines
1391 bytes
Katsuhiro Kondou <kondou@isc.org> writes:

> I'm not sure if the problem is in keyword, but I've once seen the
> similar problem in perl filter code, though the filter is default one.
> When I asked this at inn-workers, you advised me not to use perl's
> malloc, and this has been ok so far to our server.

True, using Perl's malloc will definitely cause problems, but looking at
his backtrace I don't think that's the case here; at least __libc_malloc
didn't look like Perl's malloc.

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

Re: INN 2.3.0 public beta
#46191
Author: bostic
Date: Sat, 29 Apr 2000 00:00
67 lines
3789 bytes
In article <20000428200032.678$zG@newsreader.com>,
  curt@kcwc.com (Curt Welch) wrote:

> Nope, I don't trust that code at all any more.  Anybody that can ship
> database code with errors as bad as that just can't be on my "trused
> coder" list.

To some extent, I'm hesitant to reply -- if you don't like the
software, you don't like the software.  There are some things
that Curt didn't make clear, however.

First, when Curt says "Berkeley DB', he's talking about version
1.85.  DB 1.85 was written by two graduate students and myself
at the University of California, Berkeley, around 10 years ago.
It mostly works, but was never systematically tested -- it did
what we needed it to do, which was create a replacement for the
AT&T dbm code that we could distribute in 4BSD, and get a couple
of papers published.

The bugs Curt notes are long-known problems in a code base that
hasn't been maintained or looked at in a decade.  (Our web pages
list other problems in DB 1.85 that Curt didn't mention.)  By
now, it's clear we should have changed the name of the package
from "Berkeley DB" when we rewrote the code as Sleepycat Software,
but we didn't, and it's too late now.

Second, Curt notes that Sleepycat told him to upgrade when he
asked about the problems he was seeing.  Maybe he didn't realize
that we were telling him to upgrade to a completely new code
base, or maybe he didn't want to change APIs.  Regardless, we
weren't telling him to upgrade to a new release, a bug-fix
version.  We were telling him there was an entirely different
software package he should run.  He notes that FreeBSD still
ships the old code.  There are reasons for that, but it's still
not fair to blame us that FreeBSD ships 10-year-old code.

Third, there's a "constant flow of bug fix releases" from
Sleepycat.  You bet.  Anybody in this newsgroup ever ship
100,000 lines of bug-free code?

Berkeley DB is the best tested product I've ever shipped in my
life.  Our test suite is about 25,000 lines of Tcl, and takes
about 3 days to run.  We're going through a release cycle now.
We'll doing full test suite runs on 17 different compiler and
architecture combinations, as well as individual tests
elsewhere, and that's all before we enter beta test.  Our test
coverage is about 80% (that means we're testing everything but
the individual error cases). Our Purify runs are clean.

Berkeley DB is a very solid package, folks.  And, you don't have
to take my word for it.  We're an OpenSource product.  Download
the software and evaluate it and our testing story for yourself.

Regards,
--keith

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Keith Bostic
Sleepycat Software Inc.         bostic@sleepycat.com
394 E. Riding Dr.               +1-978-371-0408
Carlisle, MA 01741-1601         http://www.sleepycat.com


Sent via Deja.com http://www.deja.com/
Before you buy.

Re: INN 2.3.0 public beta
#46194
Author: Bill Cole
Date: Sun, 30 Apr 2000 00:00
20 lines
1512 bytes
In article <ylem7ndguj.fsf@windlord.stanford.edu>, Russ Allbery
<rra@stanford.edu> wrote:


>I wonder if any clients actually use LIST OVERVIEW.FMT.


Yes. MT-Newswatcher and I believe the later YA-Newswatcher versions use it
to determine which headers are in the overview data so that XHDR retrieval
of other headers for filtering can be done efficiently. 

Maybe someone else can comment on whether that is actually *working*
however in anything but MTNW 2.4.4, where I have found it quite buggy.

-- 
Bill Cole, Geek at large. 

1972nd at Freenix! On a 68LC040/33 with 9GB of disk and a joke OS!

Re: INN 2.3.0 public beta
#46195
Author: Russ Allbery
Date: Sun, 30 Apr 2000 00:00
15 lines
1469 bytes
Karl Kleinpaste <karl@charcoal.com> writes:

> I have no idea -- I would have to check RH's SRPMS for perl, to see what
> configure directives it was given when built.  I don't have that readily
> at hand, sorry.  (Again, it's perl-5.00503-10 as distributed with RH6.2,
> of course.)

perl -V should tell you.  I don't have a Red Hat 6.2 machine around to
check.  At least on Red Hat 6.0, usemymalloc is n, though, and from your
backtrace I'm pretty sure that's not the problem.

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

Re: INN 2.3.0 public beta
#46197
Author: Russ Allbery
Date: Sun, 30 Apr 2000 00:00
18 lines
1651 bytes
Bill Cole <bill@scconsult.com> writes:
> Russ Allbery <rra@stanford.edu> wrote:

>> I wonder if any clients actually use LIST OVERVIEW.FMT.

> Yes. MT-Newswatcher and I believe the later YA-Newswatcher versions use
> it to determine which headers are in the overview data so that XHDR
> retrieval of other headers for filtering can be done efficiently.

Okay.  So if we replace overview.fmt with a configuration setting that
actually reflects what can really be usefully set, nnrpd will have to
cobble up an overview.fmt for that command anyway.  Not that that will be
very hard.

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

Re: INN 2.3.0 public beta
#46198
Author: Jeremy
Date: Sun, 30 Apr 2000 00:00
24 lines
1580 bytes
Russ Allbery  <rra@stanford.edu> wrote:

> overview.fmt really should go away, since it implies that overview is more
> configurable than it actually is.  None of the basic fields should be
> removed or the order changed, since readers depend on them, and the only
> thing that one can really do is add additional fields to the end of the
> overview, all of which should have :full.

I really do think that Xref should be optional.  It makes the overviews
larger, which is very significant if you're reading over the Internet, and
you can very often do just fine without it.

Of course, this again makes me think of the HEADERS command we were talking
about here not long ago.  Well, Curt and I were talking about it; not too
many other people seemed very interested...

> I wonder if any clients actually use LIST OVERVIEW.FMT.

Yep.

-- 
Jeremy  (  jeremy@exit109.com  |  bofh@netscum.dk  )

Re: INN 2.3.0 public beta
#46201
Author: Russ Allbery
Date: Sun, 30 Apr 2000 00:00
47 lines
2974 bytes
Karl Kleinpaste <karl@charcoal.com> writes:

> You may have indeed found a problem, though it would be odd, considering
> that the code is nearly unchanged in the 3+ years since I first created
> it for INN 1.5.1 and 1.7.2, the latter of which ran continuously for
> months on end on the previous server I admin'd, news.jprc.com.  I never
> bothered to upgrade that host to 2.x because 1.7.2 (insync1.1d) just
> kept plugging along very well for me.  Perhaps the code has simply never
> wanted to write a missed keyword count higher than 99 -- it would
> certainly be possible.

The circumstances required are pretty rare.  It wouldn't surprise me if
it's just never triggered.

> Removing that questionable code didn't stop the problem.  I've gotten to
> a point where I can induce the error every single time I start innd,
> with a single article.  It doesn't matter whether keyword generation is
> enabled or not.  ARTpost() calls PLartfilter() long before overview (and
> keyword) issues are relevant, and it dies there every time for me now.

Hurm.

So it's dying always on the very first article, the very first time
through ARTpost()?  That means that none of the storage API or overview
API are likely to be involved in the problem, and actually narrows the
problem down to a very small bit of code.  Small enough that I'm really
surprised that you're seeing problems, since I and quite a few other
people have been running this code base without any trouble at all for
quite a while.

I'm trying to think of things that you might have set up differently than
other people who have tested.  I noticed from your debugging session that
you have both the Python and the Perl filters enabled, but that shouldn't
cause any problems.

Can you think of anything else that might be different about your setup?

Somewhere, there's a memory scribble that's corrupting the heap, and
that's why innd is dying in the Perl filtering code; it's dying on a
malloc of memory for an HV.

Your Perl is compiled to use the system malloc, yes?

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

Re: INN 2.3.0 public beta
#46203
Author: Karl Kleinpaste
Date: Sun, 30 Apr 2000 00:00
93 lines
4979 bytes
Russ Allbery <rra@stanford.edu> writes:
> And... I think I found the arena corruption.  In the keywords code:

You may have indeed found a problem, though it would be odd,
considering that the code is nearly unchanged in the 3+ years since I
first created it for INN 1.5.1 and 1.7.2, the latter of which ran
continuously for months on end on the previous server I admin'd,
news.jprc.com.  I never bothered to upgrade that host to 2.x because
1.7.2 (insync1.1d) just kept plugging along very well for me.  Perhaps
the code has simply never wanted to write a missed keyword count
higher than 99 -- it would certainly be possible.

Removing that questionable code didn't stop the problem.  I've gotten
to a point where I can induce the error every single time I start
innd, with a single article.  It doesn't matter whether keyword
generation is enabled or not.  ARTpost() calls PLartfilter() long
before overview (and keyword) issues are relevant, and it dies there
every time for me now.

I'm off to debug inside PLartfilter(), but I know nothing of this
code, so it may not be the easiest thing for me to catch.

--karl

(gdb) att 27558
Attaching to program: /home/news/bin/innd, Pid 27558
Reading symbols from /home/news/lib/libstorage.so.2...done.
Reading symbols from /home/news/lib/libinn.so.2...done.
Reading symbols from /lib/libnsl.so.1...done.
Reading symbols from /lib/libdl.so.2...done.
Reading symbols from /lib/libm.so.6...done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/libpthread.so.0...done.
Reading symbols from /lib/libresolv.so.2...done.
Reading symbols from /lib/libcrypt.so.1...done.
Reading symbols from /lib/ld-linux.so.2...done.
Reading symbols from /lib/libnss_files.so.2...done.
Reading symbols from /usr/lib/python1.5/lib-dynload/stropmodule.so...done.
0x4015017e in __select () from /lib/libc.so.6
(gdb) b ARTpost
Breakpoint 1 at 0x8063f04: file art.c, line 1929.
(gdb) b ARTmakeoverview
Breakpoint 2 at 0x8063d49: file art.c, line 1842.
(gdb) b ARTmakekeys
Breakpoint 3 at 0x80638c7: file art.c, line 1664.
(gdb) c
Continuing.

Breakpoint 1, ARTpost (cp=0x4020cb68) at art.c:1929
1929        BOOL                ControlStore = FALSE;
(gdb) b 2018
Breakpoint 4 at 0x80642e0: file art.c, line 2018.
(gdb) c
Continuing.

Breakpoint 4, ARTpost (cp=0x4020cb68) at art.c:2018
2018        filterPath = HeaderFindMem(article->Data, article->Used, "Path", 4) ;
(gdb) n
2022        TMRstart(TMR_PYTHON);
(gdb) 
2023        filterrc = PYartfilter(Data.Body,
(gdb) 
2026        TMRstop(TMR_PYTHON);
(gdb) 
2027        if (filterrc != NULL) {
(gdb) 
2043        TMRstart(TMR_PERL);
(gdb) 
2044        filterrc = PLartfilter(Data.Body, Data.LinesValue);
(gdb) 

Program received signal SIGSEGV, Segmentation fault.
0x400fc712 in chunk_alloc (ar_ptr=0x40191d60, nb=24) at malloc.c:2764
2764    malloc.c: No such file or directory.
(gdb) bt
#0  0x400fc712 in chunk_alloc (ar_ptr=0x40191d60, nb=24) at malloc.c:2764
#1  0x400fc5ce in __libc_malloc (bytes=13) at malloc.c:2696
#2  0x809efc5 in Perl_safemalloc ()
#3  0x80a5205 in save_hek ()
#4  0x80a6b75 in Perl_share_hek ()
#5  0x80a56b8 in Perl_hv_store ()
#6  0x8071af9 in PLartfilter (
    artBody=0x81be11f "help all,\r\nI need to find a few items on my trip to LA area.  I will be in San Fernando\r\nValley and am looking for penis gag, and other bondage stuff to feminize\r\nmale sub.  I leave in a day and so re"..., 
    lines=9) at perl.c:92
#7  0x8064378 in ARTpost (cp=0x4020cb68) at art.c:2044
#8  0x806d8e7 in NCpostit (cp=0x4020cb68) at nc.c:196
#9  0x806ed21 in NCproc (cp=0x4020cb68) at nc.c:927
#10 0x806f3e9 in NCreader (cp=0x4020cb68) at nc.c:1155
#11 0x806a41b in CHANreadloop () at chan.c:975
#12 0x806d378 in main (ac=3, av=0xbffffe84) at innd.c:940
(gdb) 

Re: INN 2.3.0 public beta
#46204
Author: Karl Kleinpaste
Date: Sun, 30 Apr 2000 00:00
11 lines
1583 bytes
Russ Allbery <rra@stanford.edu> writes:
> The #if DB_VERSION_MAJOR != 3 will, I believe.

Oh!  "Duh."  That's what I get for staring at code in such a state as
I was in late last night.

Anyhow, the real point was that FreeBSD isn't alone in shipping
not-exactly-latest versions of BerkeleyDB.  RH6.2 is relatively
recent, but not recent enough for INN.

Re: INN 2.3.0 public beta
#46206
Author: Russ Allbery
Date: Sun, 30 Apr 2000 00:00
77 lines
3472 bytes
Karl Kleinpaste <karl@charcoal.com> writes:

> Well, things are looking progressively worse.  INND is now tripping over
> a SEGV in the perl handling code:

> Program received signal SIGSEGV, Segmentation fault.
> 0x400ea712 in chunk_alloc (ar_ptr=0x4017fd60, nb=24) at malloc.c:2764
> 2764    malloc.c: No such file or directory.
> (gdb) bt
> #0  0x400ea712 in chunk_alloc (ar_ptr=0x4017fd60, nb=24) at malloc.c:2764
> #1  0x400ea5ce in __libc_malloc (bytes=13) at malloc.c:2696
> #2  0x809efe5 in Perl_safemalloc ()

And... I think I found the arena corruption.  In the keywords code:

    hp->Value = malloc(innconf->keylimit+1);

The total allocated length starts at innconf->keylimit plus one byte for
the null termination.  l (the length of the keywords already in the
article) starts at:

    if (l > innconf->keylimit - (MAX_WORD_LENGTH+5))
        l = innconf->keylimit - (MAX_WORD_LENGTH+5);

And then there's a loop to copy found keywords into that space, which
starts with:

    for (chase = hp->Value + l + 2, word_index = 0;
         word_index < distinct_words;
         word_index++) {

so at the start of this loop, chase could point to a space at most
MAX_WORD_LENGTH + 4 from the end of the allocated space.  A word is copied
into that space:

        *chase++ = ',';
        strcpy(chase, word[word_vec[word_index].index]);
        chase += word_vec[word_index].length;

If the word is MAX_WORD_LENGTH long, chase now points three bytes from the
end of the allocated space.  If that's the case, we drop out of the loop:

        if (chase - hp->Value > (innconf->keylimit - (MAX_WORD_LENGTH + 4)))
            break;

but then the next code:

    /* note #words we didn't get to add. */
    if (word_index < distinct_words - 1)
        sprintf(chase, ",%d", (distinct_words - word_index) - 1);

just wrote past the end of the allocated buffer if the number of keywords
we found but couldn't add to the Keywords buffer if the number of words we
couldn't write was greater than 99.

Here's the trivial fix.  I don't trust a better fix without a lot clearer
logic to determine how much space is left.

--- art.c       2000/04/29 14:08:13     1.133
+++ art.c       2000/04/30 07:40:09
@@ -1811,9 +1811,6 @@
        if (chase - hp->Value > (innconf->keylimit - (MAX_WORD_LENGTH + 4)))
            break;
     }
-    /* note #words we didn't get to add. */
-    if (word_index < distinct_words - 1)
-       sprintf(chase, ",%d", (distinct_words - word_index) - 1);
     hp->Length = strlen(hp->Value);
 
 out:

Could you try this and see if it fixes your problem?

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

Re: INN 2.3.0 public beta
#46207
Author: Karl Kleinpaste
Date: Sun, 30 Apr 2000 00:00
33 lines
2205 bytes
Karl Kleinpaste <karl@charcoal.com> writes:
> Apr 30 00:24:33 mesquite innd: SERVER cant store overview for @05000000000F000000410000000000000000@

Found the bug.

--- inn-BETA-20000428/storage/ov.c	Fri Apr 28 06:08:25 2000
+++ inn-2.3.0b/storage/ov.c	Sun Apr 30 11:21:17 2000
@@ -189,7 +189,7 @@
 BOOL OVadd(TOKEN token, char *data, int len, time_t arrived, time_t expires) {
     char		*next;
     static char		*xrefdata, *patcheck, *overdata;
-    char		*xrefstart;
+    char		*xrefstart, *xrefend;
     static int		xrefdatalen = 0, overdatalen = 0;
     BOOL		found = FALSE;
     int			xreflen;
@@ -229,6 +229,14 @@
         next++;
     }
     xreflen = len - (next - data);
+
+    /*
+     * If there are other fields beyond Xref in overview, then
+     * we must find Xref's end, or data following is misinterpreted.
+     */
+    if (xrefend = memchr(next, '\t', xreflen))
+	xreflen = xrefend - next;
+
     if (xrefdatalen == 0) {
         xrefdatalen = BIG_BUFFER;
         xrefdata = NEW(char, xrefdatalen);

Re: INN 2.3.0 public beta
#46208
Author: Karl Kleinpaste
Date: Sun, 30 Apr 2000 00:00
42 lines
3050 bytes
Russ Allbery <rra@stanford.edu> writes:
> perl -V should tell you.  I don't have a Red Hat 6.2 machine around to
> check.  At least on Red Hat 6.0, usemymalloc is n, though, and from your
> backtrace I'm pretty sure that's not the problem.

Looks like nothing has changed in this dept for RH6.2:

Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
  Platform:
    osname=linux, osvers=2.2.5-22smp, archname=i386-linux
    uname='linux porky.devel.redhat.com 2.2.5-22smp #1 smp wed jun 2 09:11:51 edt 1999 i686 unknown '
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef useperlio=undef d_sfio=undef
  Compiler:
    cc='cc', optimize='-O2 -m486 -fno-strength-reduce', gccversion=egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
    cppflags='-Dbool=char -DHAS_BOOL -I/usr/local/include'
    ccflags ='-Dbool=char -DHAS_BOOL -I/usr/local/include'
    stdchar='char', d_stdstdio=undef, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -ldl -lm -lc -lposix -lcrypt
    libc=, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl): 
  Built under linux
  Compiled at Feb  2 2000 15:35:58
  @INC:
    /usr/lib/perl5/5.00503/i386-linux
    /usr/lib/perl5/5.00503
    /usr/lib/perl5/site_perl/5.005/i386-linux
    /usr/lib/perl5/site_perl/5.005
    .

Re: INN 2.3.0 public beta
#46209
Author: Russ Allbery
Date: Sun, 30 Apr 2000 00:00
10 lines
1058 bytes
Karl Kleinpaste <karl@charcoal.com> writes:

> Found the bug.

Ah, yeah, I should have seen that.  Applied, thanks.

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

Re: INN 2.3.0 public beta
#46210
Author: Karl Kleinpaste
Date: Sun, 30 Apr 2000 00:00
74 lines
4602 bytes
Karl Kleinpaste <karl@charcoal.com> wrote;
>> I spoke much too soon.  After a few dozen of these (there's probably
>> some I/O error limit in inn.conf I'm bumping into), innd throttles itself.

Katsuhiro Kondou <kondou@isc.org> writes:
> Which ovmethod are you running?  And how about
> 'ctlinnd mode'?

OK, all the ugly details:

Linux RedHat 6.2 using kernel 2.2.14 with glibc 2.1.3.
./configure --prefix=/home/news --enable-tagged-hash --enable-libtool --enable-setgid-inews
(Note perl and python are now both disabled.)
Traditional article spool and traditional overviews.�
Empty article and overview spools.
Empty (re-initialized) history.
Keyword generation disabled (though compiled in).�

I start to feed a test pile of 232 articles to innd.  Every single
article accepted generates this log entry:

Apr 30 00:24:33 mesquite innd: SERVER cant store overview for @05000000000F000000410000000000000000@

The 50th such article gets me:

Apr 30 00:24:33 mesquite innd: SERVER throttle No such file or directory writing creating overview file -- throttling
Apr 30 00:24:33 mesquite innd: SERVER cant store overview for @05000000000F000000420000000000000000@
Apr 30 00:24:33 mesquite innd: SERVER cant write history <sgm68i8ii50152@corp.supernews.com> No such file or directory

At this point, innd is dead in the water.  This is readily
reproducible with any set of articles -- every article generates the
complaint, and the 50th always stops it.  "ctlinnd mode" sayeth:

Server throttled No such file or directory writing creating overview file -- throttling
Allowing remote connections
Parameters c 14 i 50 (0) l 200000 o 1011 t 300 H 2 T 60 X 0 normal specified
Not reserved
Readers follow enabled

As near as I can tell from slightly more than casual perusal, all the
articles and overviews are in fact healthy and happy.  The articles
are linked in place properly, the 2 in those 1st 50 which are
crossposted show up correctly in both places, and overviews for all
articles appear correct.

I'll break out a debugger to look at this tomorrow, but right now I'm
dead due to having been on the road for 12 hours today, and I need
sleep.  Heaven alone knows what I'm doing looking at the matter this
far in my current state.  Bright suggestions for where to look for
this problem will be most welcome when I see them Sunday afternoon
sometime.

Once I get to a point where innd doesn't throttle, then I'll re-build
with perl enabled and go looking for the malloc failure/heap corruption.

--karl

� Yes, I really want "traditional".  The system is intended to take a
small, limited feed specifically to generate a very large corpus over
time of article files that can be stepped into The Old-Fashioned Way
as part of a document clustering system which expects to find distinct
document files.

� Oh, yeah, a sidelight: When I first built, I didn't have an -lregex
installed on the system.  "configure" turned on DO_KEYWORDS anyway,
having found regexec() in libc.  Seeing some problems and wondering
whether I had a good regexec(), I built my own libregex.a and put it
in /usr/local/lib.  When I next re-built, "configure" _didn't_ turn on
DO_KEYWORDS.  Odd; I had to edit config.h to enable it by hand.  I
note there's a FIXME in the inn.conf man page in this area -- this
could use a scrap of attention in order to get it right.  Maybe I'll
peek at that soon, too.

Re: INN 2.3.0 public beta
#46211
Author: Karl Kleinpaste
Date: Sun, 30 Apr 2000 00:00
48 lines
2872 bytes
This is just getting weirder by the minute.  Inside PLartfilter():

(gdb) n
89          hdr = perl_get_hv("hdr", 1);
(gdb) 
90          for (hp = ARTheaders; hp < ARTheadersENDOF; hp++) {
(gdb) p hdr
$6 = (HV *) 0x81810d8
(gdb) p *hdr
$7 = {sv_any = 0x81b6070, sv_refcnt = 1, sv_flags = 536870923}
(gdb) p *hdr->sv_any
$8 = {xhv_array = 0x0, xhv_fill = 0, xhv_max = 7, xhv_keys = 0, xnv_nv = 0, 
  xmg_magic = 0x0, xmg_stash = 0x0, xhv_riter = -1, xhv_eiter = 0x0, 
  xhv_pmroot = 0x0, xhv_name = 0x0}
(gdb) n
91              if (hp->Found && hp->Value && strcmp(hp->Name, "Path") != 0)
(gdb) p hp
$9 = (ARTHEADER *) 0x812b17c
(gdb) p *hp
$10 = {Name = 0x810ce5f "Approved", Type = HTstd, Size = 8, 
  Value = 0x81547c0 "", Length = 0, Found = 0, Allocated = 1}
(gdb) n
90          for (hp = ARTheaders; hp < ARTheadersENDOF; hp++) {
(gdb) 
91              if (hp->Found && hp->Value && strcmp(hp->Name, "Path") != 0)
(gdb) p *hp
$11 = {Name = 0x810ce57 "Control", Type = HTstd, Size = 7, 
  Value = 0x8154fc8 "", Length = 0, Found = 0, Allocated = 1}
(gdb) n
90          for (hp = ARTheaders; hp < ARTheadersENDOF; hp++) {
(gdb) 
91              if (hp->Found && hp->Value && strcmp(hp->Name, "Path") != 0)
(gdb) p *hp
$12 = {Name = 0x810ce52 "Date", Type = HTreq, Size = 4, 
  Value = 0x81557d0 "Sun, 30 Apr 2000 13:53:36 -0400", Length = 31, Found = 1, 
  Allocated = 1}
(gdb) n
92                  hv_store(hdr, (char *) hp->Name, strlen(hp->Name),
(gdb) 

Program received signal SIGSEGV, Segmentation fault.
0x400fc712 in chunk_alloc (ar_ptr=0x40191d60, nb=24) at malloc.c:2764

A simple Date header blows up?

I can't debug inside hv_store aka Perl_hv_store...

Re: INN 2.3.0 public beta
#46212
Author: Katsuhiro Kondou
Date: Sun, 30 Apr 2000 00:00
14 lines
1636 bytes
In article <ylu2gkgle2.fsf@windlord.stanford.edu>,
	Russ Allbery <rra@stanford.edu> wrote;

} of that?  That could break overview storage.  (I think this is a bug and
} INN should pass the newsgroup and article number list to OVadd() via some
} other mechanism, but that's how it stands at present.)

True, and group based expiry also uses Xref data and
I believe overview.fmt always needs to include 'Xref'
or 'Xref:full'.
-- 
Katsuhiro Kondou

Re: INN 2.3.0 public beta
#46213
Author: Russ Allbery
Date: Sun, 30 Apr 2000 00:00
30 lines
1674 bytes
Karl Kleinpaste <karl@charcoal.com> writes:
> bostic@bostic.com writes:

>> He notes that FreeBSD still ships the old code.  There are reasons for
>> that, but it's still not fair to blame us that FreeBSD ships
>> 10-year-old code.

> FTR, RedHat 6.2 ships with 2.4.14, which inn/storage/ovdb/ovdb.c
> complains still isn't sufficiently recent:

> (line 88)
> #if DB_VERSION_MAJOR == 2
> #if DB_VERSION_MINOR < 6
> #error Need BerkeleyDB 2.6.x, 2.7.x, or 3.x
> #endif
> #else
> #if DB_VERSION_MAJOR != 3
> #error Need BerkeleyDB 2.6.x, 2.7.x, or 3.x
> #endif
> #endif

> Interestingly, since it begins "#if DB_VERSION_MAJOR == 2", this test
> *won't* catch the even older 1.85.

The #if DB_VERSION_MAJOR != 3 will, I believe.

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

Re: INN 2.3.0 public beta
#46214
Author: Bill Cole
Date: Sun, 30 Apr 2000 00:00
25 lines
1789 bytes
In article <957123153.543651@news.netscum.dk>, Jeremy <bofh@netscum.dk> wrote:

>Russ Allbery  <rra@stanford.edu> wrote:
>
>> overview.fmt really should go away, since it implies that overview is more
>> configurable than it actually is.  None of the basic fields should be
>> removed or the order changed, since readers depend on them, and the only
>> thing that one can really do is add additional fields to the end of the
>> overview, all of which should have :full.
>
>I really do think that Xref should be optional.  It makes the overviews
>larger, which is very significant if you're reading over the Internet, and
>you can very often do just fine without it.

Not with a reasonably good newsreader. Xref has a use. Good newsreaders
use it to mark articles as read across groups. There's no other practical
way to do that, and it is a feature that users should expect in a
newsreader.

-- 
Bill Cole, Geek at large. 

1972nd at Freenix! On a 68LC040/33 with 9GB of disk and a joke OS!

Re: INN 2.3.0 public beta
#46215
Author: Russ Allbery
Date: Sun, 30 Apr 2000 00:00
27 lines
2043 bytes
Katsuhiro Kondou <kondou@isc.org> writes:
> Russ Allbery <rra@stanford.edu> wrote;

>> of that?  That could break overview storage.  (I think this is a bug
>> and INN should pass the newsgroup and article number list to OVadd()
>> via some other mechanism, but that's how it stands at present.)

> True, and group based expiry also uses Xref data and I believe
> overview.fmt always needs to include 'Xref' or 'Xref:full'.

Worse than even that, it looks like it needs to always be Xref:full, since
it looks for Xref.  But that's really equivalent, since any overview
fields beyond the basic ones should have :full so that readers can
interpret them properly.

overview.fmt really should go away, since it implies that overview is more
configurable than it actually is.  None of the basic fields should be
removed or the order changed, since readers depend on them, and the only
thing that one can really do is add additional fields to the end of the
overview, all of which should have :full.

I wonder if any clients actually use LIST OVERVIEW.FMT.

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

Re: INN 2.3.0 public beta
#46218
Author: Karl Kleinpaste
Date: Sun, 30 Apr 2000 00:00
23 lines
1762 bytes
bostic@bostic.com writes:
> He notes that FreeBSD still
> ships the old code.  There are reasons for that, but it's still
> not fair to blame us that FreeBSD ships 10-year-old code.

FTR, RedHat 6.2 ships with 2.4.14, which inn/storage/ovdb/ovdb.c
complains still isn't sufficiently recent:

(line 88)
#if DB_VERSION_MAJOR == 2
#if DB_VERSION_MINOR < 6
#error Need BerkeleyDB 2.6.x, 2.7.x, or 3.x
#endif
#else
#if DB_VERSION_MAJOR != 3
#error Need BerkeleyDB 2.6.x, 2.7.x, or 3.x
#endif
#endif

Interestingly, since it begins "#if DB_VERSION_MAJOR == 2", this test
*won't* catch the even older 1.85.

Re: INN 2.3.0 public beta
#46220
Author: Russ Allbery
Date: Sun, 30 Apr 2000 00:00
32 lines
2122 bytes
Jeremy <bofh@netscum.dk> writes:
> Russ Allbery  <rra@stanford.edu> wrote:

>> overview.fmt really should go away, since it implies that overview is
>> more configurable than it actually is.  None of the basic fields should
>> be removed or the order changed, since readers depend on them, and the
>> only thing that one can really do is add additional fields to the end
>> of the overview, all of which should have :full.

> I really do think that Xref should be optional.  It makes the overviews
> larger, which is very significant if you're reading over the Internet,
> and you can very often do just fine without it.

Oh, I agree.  I just think that the existing overview.fmt configuration
file should be replaced by a config parameter taking something like:

    extra-overview: "Xref, Keywords, Newsgroups"

with the default value being just Xref.

> Of course, this again makes me think of the HEADERS command we were
> talking about here not long ago.  Well, Curt and I were talking about
> it; not too many other people seemed very interested...

I'm mildly interested, but the architecture of INN currently isn't very
well suited to it, and there's a bunch of other stuff I keep finding to
fix.

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

Re: INN 2.3.0 public beta
#46221
Author: Karl Kleinpaste
Date: Sun, 30 Apr 2000 00:00
23 lines
1775 bytes
Russ Allbery <rra@stanford.edu> writes:
> First question:  It looks like the overview code now actually *requires*
> that Xref be one of the overview fields.  I noticed from your other
> message that you have Newsgroups:full; do you not have Xref:full because
> of that?

No.  The non-comment contents of my overview.fmt are:

Subject:
From:
Date:
Message-ID:
References:
Bytes:
Lines:
Xref:full
Keywords:full
Newsgroups:full

"Keywords:full" without keyword generation enabled is [or should be]
fine.  It'll behave just like any other Foo:full specification.

Re: INN 2.3.0 public beta
#46222
Author: Karl Kleinpaste
Date: Sun, 30 Apr 2000 00:00
39 lines
2846 bytes
Russ Allbery <rra@stanford.edu> writes:
> Hurm.

Yeah, I've been muttering monosyllables to myself a lot today. :-/

> I'm trying to think of things that you might have set up differently than
> other people who have tested.  I noticed from your debugging session that
> you have both the Python and the Perl filters enabled, but that shouldn't
> cause any problems.

Yes, I wondered about having both enabled, but it ought not to have
any bad effect.  Or so I would think -- they're very distinct, other
than both being called inside ARTpost().

> Can you think of anything else that might be different about your setup?

Not really.  The system is relatively bland, very vanilla RH6.2.  I
fed configure a few options, and I didn't touch config.h or
Makefile.global afterward.

> Your Perl is compiled to use the system malloc, yes?

I have no idea -- I would have to check RH's SRPMS for perl, to see
what configure directives it was given when built.  I don't have that
readily at hand, sorry.  (Again, it's perl-5.00503-10 as distributed
with RH6.2, of course.)

For now, I've just disabled both perl and python, because my new
server system is a pure leaf node and any filtering will have been
done upstream.  It's running really quite nicely now, with the
find-the-end-of-Xref bugfix in place. :-)

I could send you the resulting config.h that configure generated plus
my inn.conf and so forth, if you'd like to look them over, but I'm in
a state now where I'm simultaneously mystified, unable to debug it in
a contentful manner, and kinda lacking in motivation because it's a
feature I won't even be using.

Re: INN 2.3.0 public beta
#46233
Author: Curt Welch
Date: Mon, 01 May 2000 00:00
30 lines
2278 bytes
bill@scconsult.com (Bill Cole) wrote:
> In article <957123153.543651@news.netscum.dk>, Jeremy <bofh@netscum.dk>
> wrote:
>
> >Russ Allbery  <rra@stanford.edu> wrote:
> >
> >> overview.fmt really should go away, since it implies that overview is
> >> more configurable than it actually is.  None of the basic fields
> >> should be removed or the order changed, since readers depend on them,
> >> and the only thing that one can really do is add additional fields to
> >> the end of the overview, all of which should have :full.
> >
> >I really do think that Xref should be optional.  It makes the overviews
> >larger, which is very significant if you're reading over the Internet,
> >and you can very often do just fine without it.
>
> Not with a reasonably good newsreader. Xref has a use. Good newsreaders
> use it to mark articles as read across groups. There's no other practical
> way to do that, and it is a feature that users should expect in a
> newsreader.

Xref: in the article is needed for that, but not Xref: in overview (though
I suspect there are some newsreaders that won't work unless it's in
the overview).

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Re: INN 2.3.0 public beta
#46235
Author: Jeremy
Date: Mon, 01 May 2000 00:00
18 lines
1273 bytes
Bill Cole <bill@scconsult.com> wrote:

> Not with a reasonably good newsreader. Xref has a use. Good newsreaders
> use it to mark articles as read across groups. There's no other practical
> way to do that, and it is a feature that users should expect in a
> newsreader.

Right -- but if you don't care about that feature, the larger overviews
are a bit annoying.

Actually it only matters if you're marking unread articles read and want
those Xrefs chased.  If you've read the article, then you have the Xref
header anyway.

-- 
Jeremy  (  jeremy@exit109.com  |  bofh@netscum.dk  )

Re: INN 2.3.0 public beta
#46237
Author: Bill Cole
Date: Mon, 01 May 2000 00:00
17 lines
1194 bytes
In article <957160457.365327@news.netscum.dk>, Jeremy <bofh@netscum.dk> wrote:

>Actually it only matters if you're marking unread articles read and want
>those Xrefs chased.  If you've read the article, then you have the Xref
>header anyway.

One word:  


                           killfiles

-- 
Bill Cole, Geek at large. 

1972nd at Freenix! On a 68LC040/33 with 9GB of disk and a joke OS!

Re: INN 2.3.0 public beta
#46239
Author: Bill Cole
Date: Mon, 01 May 2000 00:00
27 lines
1812 bytes
In article <20000501010105.129$au@newsreader.com>, curt@kcwc.com (Curt
Welch) wrote:

>bill@scconsult.com (Bill Cole) wrote:

>> Not with a reasonably good newsreader. Xref has a use. Good newsreaders
>> use it to mark articles as read across groups. There's no other practical
>> way to do that, and it is a feature that users should expect in a
>> newsreader.
>
>Xref: in the article is needed for that, but not Xref: in overview (though
>I suspect there are some newsreaders that won't work unless it's in
>the overview).

Header-based filtering breaks too. 

Consider the newsreader that does header-based filtering by grabbing
headers that the user wants to filter on (using XOVER), filters based on
these headers, and marks the chaff read. Without Xref, it pulls the
headers for the same message again in other groups.

-- 
Bill Cole, Geek at large. 

1972nd at Freenix! On a 68LC040/33 with 9GB of disk and a joke OS!

Re: INN 2.3.0 public beta
#46245
Author: Jeremy
Date: Mon, 01 May 2000 00:00
13 lines
1078 bytes
Curt Welch <curt@kcwc.com> wrote:

> Xref: in the article is needed for that, but not Xref: in overview (though
> I suspect there are some newsreaders that won't work unless it's in
> the overview).

It has to be in the overview if you want crossposts marked read for articles
that you are marking as read without actually reading them.

-- 
Jeremy  (  jeremy@exit109.com  |  bofh@netscum.dk  )

Re: INN 2.3.0 public beta
#46242
Author: Mike Castle
Date: Tue, 02 May 2000 00:00
13 lines
1324 bytes
In article <8eevj5$s2c$1@nnrp1.deja.com>,  <bostic@bostic.com> wrote:
>about 3 days to run.  We're going through a release cycle now.

I hope an nvi using the new db will follow soon after.  ;->

mrc
-- 
       Mike Castle       Life is like a clock:  You can work constantly
  dalgoda@ix.netcom.com  and be right all the time, or not work at all
www.netcom.com/~dalgoda/ and be right at least twice a day.  -- mrc
    We are all of us living in the shadow of Manhattan.  -- Watchmen

Re: INN 2.3.0 public beta
#46249
Author: Jeremy
Date: Tue, 02 May 2000 00:00
30 lines
1796 bytes
Bill Cole <bill@scconsult.com> wrote:

>> Actually it only matters if you're marking unread articles read and
>> want those Xrefs chased.  If you've read the article, then you have
>> the Xref header anyway.
> 
> One word:  
> 
> 
>                            killfiles

Yeah, but if you don't have Xrefs in the overviews, and your killfile
needs them, they'll be grabbed from the server anyway.  At least, they
will with the reader I use.  This results in the user having to wait
longer than he might want.  But, if you almost never use Xref information
for killfiling, then *not* having to wait longer for the overviews in
the first place is a win.

This is why I'd like to see something like the HEADERS command implemented.
I almost always *don't* want Xrefs in my overviews when I'm reading over
the Internet, but others do, and I might sometimes, so it would be very
nice to have a choice at the client side.

Of course, killfiling still counts as "marking unread articles read", so
my original comment still applies. :)

-- 
Jeremy  (  jeremy@exit109.com  |  bofh@netscum.dk  )

Re: INN 2.3.0 public beta
#46252
Author: Brad Knowles
Date: Tue, 02 May 2000 00:00
47 lines
3157 bytes
In article <20000429132525.148$WB@newsreader.com>, curt@kcwc.com (Curt 
Welch) wrote:

> A little of both.  But mainly it was an issue of since I was burned once -
> and had created work-around patches which seemed to be holding, I just
> didn't want to waste my time upgrading to a yet another version of code
> (from at least one of the same authors) which I might once gain have to
> spend days debugging problems and creating new work-arounds.

    I understand the "once burned, twice shy" philosophy.  I feel that 
way myself about a lot of products.


    That said, I thought it was pretty widely known for a number of 
years that the old 1.x Berkeley DB stuff was seriously hosed enough that 
you can't really compare it against the more recent code.

    But then, I've been working with sendmail since 1990 or 1991 or so 
(my Bible was a single chapter from first edition of Craig Hunt's book 
_TCP/IP Network Administration_, the best available published reference 
at the time), I remember the early days when they first added Berkeley 
DB support, and I remember when they came out with support for the 2.x 
stuff.  And I remember how many problems I had with the old stuff, and 
how happy I was when they finally shipped a version that worked with the 
new stuff.


    I have to side with Keith here.  The new code is so radically 
changed from the old stuff that I just don't think that there is any 
comparison that can fairly be made.

    I understand your desire to have some simple hashing code that just 
plain works, and once you finally got something that kinda semi sorta 
does what you need (but not what you wanted), it's painful to change.  
But in the long run, I believe you would be much better off if you did 
make that change.

    I'd encourage you to try the new stuff, you might like it.  ;-)

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>

Are you a news server administrator outside of North America and Western
Europe?  If so, and you're interested in getting a newsfeed from a server
in the Freenix Top 50, please send me private e-mail for details.

Re: INN 2.3.0 public beta
#46253
Author: Brad Knowles
Date: Tue, 02 May 2000 00:00
24 lines
1921 bytes
In article <20000428200032.678$zG@newsreader.com>, curt@kcwc.com (Curt 
Welch) wrote:

> But the "old" stuff with this bug is still the verion of the DB code that
> ships with FreeBSD (well at least up to FreeBSD 3.4 which is the
> most current I have running here).

    Hmm.  Interestingly, from what I can gather, it appears that 1.85 is 
also what ships with FreeBSD 4.0-STABLE (at least, as of the last time I 
cvsup'ed).

    There is a port for db 2.7.7 (in /usr/ports/databases/db), but this 
is not what is integrated into the OS itself.  Now you've got me curious 
-- I'm going to have to go ask on the freebsd-current mailing list what 
it would take to get this updated....

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>

Are you a news server administrator outside of North America and Western
Europe?  If so, and you're interested in getting a newsfeed from a server
in the Freenix Top 50, please send me private e-mail for details.

Re: INN 2.3.0 public beta
#46255
Author: Brad Knowles
Date: Tue, 02 May 2000 00:00
27 lines
2068 bytes
In article <8eevj5$s2c$1@nnrp1.deja.com>, bostic@bostic.com wrote:

> Berkeley DB is a very solid package, folks.  And, you don't have
> to take my word for it.  We're an OpenSource product.  Download
> the software and evaluate it and our testing story for yourself.

    Indeed, it is a pretty solid product.


    I know of mid-range commercial e-mail systems that use it to 
implement a database method for storing e-mail messages (instead of the 
classic Unix mbox for each and every user), and there are probably 
hundreds of thousands of users at each site that uses this product that 
depend on it every day for all their e-mail.

    Of course, I think so poorly of this e-mail system that I will not 
publicly mention the name, but this is not a reflection on Berkeley DB 
or Keith Bostic.

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>

Are you a news server administrator outside of North America and Western
Europe?  If so, and you're interested in getting a newsfeed from a server
in the Freenix Top 50, please send me private e-mail for details.

Re: INN 2.3.0 public beta
#46259
Author: Bill Cole
Date: Tue, 02 May 2000 00:00
59 lines
2982 bytes
In article <957242886.971518@news.netscum.dk>, Jeremy <bofh@netscum.dk> wrote:

>Bill Cole <bill@scconsult.com> wrote:
>
>>> Actually it only matters if you're marking unread articles read and
>>> want those Xrefs chased.  If you've read the article, then you have
>>> the Xref header anyway.
>> 
>> One word:  
>> 
>> 
>>                            killfiles
>
>Yeah, but if you don't have Xrefs in the overviews, and your killfile
>needs them, they'll be grabbed from the server anyway. 

Even if they aren't in the overview? 

I do not often use my bandwidth provider's news facilities, but when I do
I am in fact hitting a major wholesaler, where one cannot pull headers
which are not in the overview. 

I would have expected you to be somewhat familiar with this. 


> At least, they
>will with the reader I use.  This results in the user having to wait
>longer than he might want.  But, if you almost never use Xref information
>for killfiling, then *not* having to wait longer for the overviews in
>the first place is a win.

You need Xref to know whether overview-based killing needs Xref. 

I don't *use* the Xref header to kill by, I just need it to do the kills right. 

>This is why I'd like to see something like the HEADERS command implemented.
>I almost always *don't* want Xrefs in my overviews when I'm reading over
>the Internet, but others do, and I might sometimes, so it would be very
>nice to have a choice at the client side.

If I understand it correctly (I drifted off that thread...) HEADERS would
be nice but not really much better than XOVER plus full XHDR
implementation. And of course there is an implementation issue: readers in
common use are unlikely to have support for years after the first
widespread server support. 

>Of course, killfiling still counts as "marking unread articles read", so
>my original comment still applies. :)

Right, but it's not a negligible activity. There is also some savings
because the overview is pulled once, not once in every group the article
is cross-posted to.

-- 
Bill Cole, Geek at large. 

1972nd at Freenix! On a 68LC040/33 with 9GB of disk and a joke OS!

Page 1 of 2 • 67 total messages
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