🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
24 messages
24 total messages Started by James Brister Tue, 29 Jul 1997 00:00
ANNOUNCE: inn-1.5.1sec
#19820
Author: James Brister
Date: Tue, 29 Jul 1997 00:00
25 lines
1086 bytes
Is available at

	ftp://ftp.isc.org/isc/inn/inn-1.5.1sec.tar.gz

a diff from 1.5.1 to 1.5.1sec is available as:

	ftp://ftp.isc.org/isc/inn/inn-1.5.1-to-inn-1.5.1sec.diff.gz

This is 1.5.1 with various security related bug fixes. There are no new
features. 

Make sure to read the file README.1st.

Also, make sure to email any bug reports to inn-bugs@isc.org, *even* if you
post them to some newsgroup.

Thank-you

James
-- 
James Brister                                            brister@vix.com
Internet Software Consortium      http://www.isc.org     inn@isc.org 

Re: ANNOUNCE: inn-1.5.1sec
#19855
Author: Mark G. Thomas
Date: Wed, 30 Jul 1997 00:00
29 lines
1461 bytes
In <5roi2a$bul$1@news3.texas.net>,
Michael Douglass <mikedoug@staff2.texas.net> wrote:

> : Has anyone tried it?  It is dying for me and I am having a hell of a
> : time tracking why.  I think one case it dies is on a free and very
> : likely triggered by a newgroup.  Another case is a memcpy that seems
> : related to posting through inews.  I haven't yet found out more.
> 
> NO SHIT........   I see the core file in my spool directory now....  What
> in the hell is up with this?  "Only bug fixes..."  How many servers did
> the ISC test this codebase on?  I'd really  like to know this...
> 
> -- 
> Michael Douglass
> Texas Networking, Inc.

Yup.  1.5.1sec core dumps for me too.  1.5.1 built identically is very stable.

This is under Solaris-2.5.1 on an UltraSPARC if it matters.

-Mark



-- 
Mark Thomas (Mark@Misty.com)

Re: ANNOUNCE: inn-1.5.1sec
#19916
Author: Julio Sanchez
Date: Wed, 30 Jul 1997 00:00
25 lines
1263 bytes
James Brister <brister@vix.com> writes:

> Is available at
> 
> 	ftp://ftp.isc.org/isc/inn/inn-1.5.1sec.tar.gz

Has anyone tried it?  It is dying for me and I am having a hell of a
time tracking why.  I think one case it dies is on a free and very
likely triggered by a newgroup.  Another case is a memcpy that seems
related to posting through inews.  I haven't yet found out more.

This is a Linux RedHat 4.2.

Any feedback, anyone?

Julio

-- 
Julio Sanchez, SGI Soluciones Globales Internet
Tel: (91) 804 28 37 Fax: (91) 804 14 05  WWW: http://www.esegi.es
jsanchez@esegi.es jsanchez@gmv.es
 PGP Key fingerprint =  E5 29 93 6F 41 4E 00 E2  90 11 A1 8C 72 D0 DE 71 

Re: ANNOUNCE: inn-1.5.1sec
#19917
Author: Michael Douglass
Date: Wed, 30 Jul 1997 00:00
19 lines
1352 bytes
: Has anyone tried it?  It is dying for me and I am having a hell of a
: time tracking why.  I think one case it dies is on a free and very
: likely triggered by a newgroup.  Another case is a memcpy that seems
: related to posting through inews.  I haven't yet found out more.

NO SHIT........   I see the core file in my spool directory now....  What
in the hell is up with this?  "Only bug fixes..."  How many servers did
the ISC test this codebase on?  I'd really  like to know this...

-- 
Michael Douglass
Texas Networking, Inc.

   <de> 'hail sparc, full of rammage'
   <de> 'the kernel is with thee'
   <de> 'blessed art thou amongst processors'

Re: ANNOUNCE: inn-1.5.1sec
#19929
Author: aos
Date: Wed, 30 Jul 1997 00:00
21 lines
1526 bytes
Julio Sanchez <jsanchez@esegi.es> wrote:
> Has anyone tried it?  It is dying for me and I am having a hell of a
> time tracking why.  I think one case it dies is on a free and very
> likely triggered by a newgroup.  Another case is a memcpy that seems
> related to posting through inews.  I haven't yet found out more.

After hacking away at it for a bit (removing the 'unofficial' security
patches, applying ISC's patches (which were almost exactly the same
incidentally), working ISC's patches around all of my own, etc. etc.),
I've got it up and running quite nicely on Solaris 2.5.1.

Be sure you apply the (trivial) patch you can find on ftp.isc.org in
/isc/inn/unoff-patches (I think) to fix a bug in nnrpd.

-- 
Andrew Smith -- Sysadmin, Insync Internet Services   | "Whatever you do, take
PGP: 2A 50 AE 6D 51 53 18 77 F7 6C E9 2E E9 E1 59 2C | care of your shoes."
     (finger -l aos@insync.net for full key)         |       - Tom Marhsall

Re: ANNOUNCE: inn-1.5.1sec
#19939
Author: aos
Date: Thu, 31 Jul 1997 00:00
33 lines
2200 bytes
Mark G. Thomas <mark@misty.com> wrote:
> Mine is.  Solaris-2.5.1, gcc-2.7.2.2, UltraSPARC with 196MB RAM, 16 GB disk.

This is all pretty strange.  It seems to be happening to people with all kinds
of setups, both gcc and Sun cc, and yet mine's been running just great since
day one.  I'm really at a loss as to what I did differently to make it work.

The only real change I made to anything was to comment out the #include
<math.h> in snprintf/vfprintf.c (it's not needed on Solaris, and actually
introduces massive compiler spewage followed by failure).

Other than that (and all the other strange patches, which shouldn't make much
of a difference), it sounds like I've compiled pretty much the same as
everyone else has.  INN originally occupied about 25MB of RAM and has since
expanded to just under 150MB (pretty normal for our setup), where it's stayed.
So it looks like it's malloc()ing just fine.

The only other differences I can think of are patches on the OS itself.  I've
got all the relevant Sun patches installed (which pretty much everyone should
do in any case).

Failing any solution to your situation from the above info, I really don't
know what to say.

Does anyone have a good stacktrace from the coredumps?

-- 
Andrew Smith -- Sysadmin, Insync Internet Services   | "Whatever you do, take
PGP: 2A 50 AE 6D 51 53 18 77 F7 6C E9 2E E9 E1 59 2C | care of your shoes."
     (finger -l aos@insync.net for full key)         |       - Tom Marhsall

Re: ANNOUNCE: inn-1.5.1sec
#19941
Author: aos
Date: Thu, 31 Jul 1997 00:00
31 lines
1965 bytes
Ronald Hello <hello@cs.utwente.nl> wrote:
> I am interested in your patches ...

Well, they're not "mine" so to speak, but just a well-crafted conglomeration
of lots of other patches.  It's taken a lot of work to get them all working
together, and I'm really pleased with the results.  (Really busy machine,
about 60 feeds going in and out at the same time, lots of readers, etc. etc.
and it still gets the NNRPD banner up in about 0.5 seconds)

If you'd like (and anyone else for that matter), I can generate a big
mega-diff against a stock 1.5.1sec and send it to you.  It won't be easy to
pick out what patches are where, but you might want to give 'em all a shot
at once, particularly since we're running essenstially the same hardware and
compiler.

> I patched it so it would use __snprintf and __vsnprintf from libc. But I
> also saw it crash with people that used INN snprintf. It seems it's not in
> the snprintf adjustments but somewhere else.

Quite possible.  Incidentally, I'm using the 1.5.1sec copy of snprintf
(again, with some modifications, but hey, I never like stock source <g>).

HTH.  HAND.

-- 
Andrew Smith -- Sysadmin, Insync Internet Services   | "Whatever you do, take
PGP: 2A 50 AE 6D 51 53 18 77 F7 6C E9 2E E9 E1 59 2C | care of your shoes."
     (finger -l aos@insync.net for full key)         |       - Tom Marhsall

Re: ANNOUNCE: inn-1.5.1sec
#19944
Author: Trevor Fiatal
Date: Thu, 31 Jul 1997 00:00
23 lines
1492 bytes
On 30 Jul 1997 23:54:39 GMT, mark@misty.com (Mark G. Thomas) wrote:


>Yup.  1.5.1sec core dumps for me too.  1.5.1 built identically is very stable.
>
>This is under Solaris-2.5.1 on an UltraSPARC if it matters.

It's happening to me, too.  This occurs on both my Ultra2 stand-alone
testbed and my E4000 HA servers, Sol-2.5.1.  <sigh>

If it's not one thing, it's another.  Guess a few coredumps per day
are better than a root-shell exploit, but not by much.

-Trevor

/--------------------------------=-----------------------------------\
|Trevor Fiatal - trevor@home.net |                                   |
|Internet Applications Architect | "Entropy sucks."                  | 
|@Home Network, SF Bay Area, CA  |                                   | 
\--------------------------------|-----------------------------------/

Re: ANNOUNCE: inn-1.5.1sec
#19952
Author: Julio Sanchez
Date: Thu, 31 Jul 1997 00:00
17 lines
1112 bytes
aos@insync.net writes:

> Be sure you apply the (trivial) patch you can find on ftp.isc.org in
> /isc/inn/unoff-patches (I think) to fix a bug in nnrpd.

Sorry if I did not make clear:  It is innd that SIGSEGVs, not nnrpd.

Julio

-- 
Julio Sanchez, SGI Soluciones Globales Internet
Tel: (91) 804 28 37 Fax: (91) 804 14 05  WWW: http://www.esegi.es
jsanchez@esegi.es jsanchez@gmv.es
 PGP Key fingerprint =  E5 29 93 6F 41 4E 00 E2  90 11 A1 8C 72 D0 DE 71 

Re: ANNOUNCE: inn-1.5.1sec
#19958
Author: Ronald Hello
Date: Thu, 31 Jul 1997 00:00
28 lines
1401 bytes
In article <33e03e09.105393645@news.rdc1.occa.home.com>, trevor@home.net (Trevor Fiatal) writes:
>On 30 Jul 1997 23:54:39 GMT, mark@misty.com (Mark G. Thomas) wrote:
>
>
>>Yup.  1.5.1sec core dumps for me too.  1.5.1 built identically is very stable.
>>
>>This is under Solaris-2.5.1 on an UltraSPARC if it matters.
>
>It's happening to me, too.  This occurs on both my Ultra2 stand-alone
>testbed and my E4000 HA servers, Sol-2.5.1.  <sigh>

It happens here too. Ultra-1 on Solaris 2.5. I can trigger it with
expire. And that happens at night, so innd will be down most of the
early morning this way.

Ronald.


-- 
// Ronald Hello  (Ronald.Hello@cs.utwente.nl)
// University of Twente
// Department of Computer Science
// The Netherlands



Re: ANNOUNCE: inn-1.5.1sec
#19965
Author: Michael Douglass
Date: Thu, 31 Jul 1997 00:00
33 lines
1790 bytes

: Yup.  1.5.1sec core dumps for me too.  1.5.1 built identically is very stable.

: This is under Solaris-2.5.1 on an UltraSPARC if it matters.

This is also on a solaris 2.5.1 box; did you use the supplied
snprintf() function that came with the inn distribution?  I did
-Dsnprintf=__snprintf -Dvsnprintf=__vsnprintf; not sure if that is
a problem--I doubt it.

Strangely enough, it is core dumping in a call to malloc--but 1.5.1 was
stable.... :)  Here is a back trace:

(gdb) bt
#0  0xef3cb4b0 in _malloc_unlocked ()
#1  0xef3cb370 in malloc ()
#2  0x3cc3c in xmalloc (i=1024) at xmalloc.c:22
#3  0x2a5c0 in NCcheck (cp=0x5dc50) at nc.c:1490
#4  0x28e80 in NCproc (cp=0x5dc50) at nc.c:997
#5  0x29dbc in NCreader (cp=0x5dc50) at nc.c:1321
#6  0x20f48 in CHANreadloop () at chan.c:874
#7  0x254c8 in main (ac=0, av=0xeffffe74) at innd.c:972

-- 
Michael Douglass
Texas Networking, Inc.

   <de> 'hail sparc, full of rammage'
   <de> 'the kernel is with thee'
   <de> 'blessed art thou amongst processors'

Re: ANNOUNCE: inn-1.5.1sec
#19973
Author: Mark G. Thomas
Date: Thu, 31 Jul 1997 00:00
40 lines
2308 bytes
In <5rq6qp$kt9$1@synthemesc.insync.net>,
aos@insync.net <aos@insync.net> wrote:

> Julio Sanchez <jsanchez@esegi.es> wrote:
> > Sorry if I did not make clear:  It is innd that SIGSEGVs, not nnrpd.
> 
> Strange.  Is yours getting the SIGSEGV on a malloc like lots of other peoples'
> seem to be doing?

Mine is.  Solaris-2.5.1, gcc-2.7.2.2, UltraSPARC with 196MB RAM, 16 GB disk.

> I just find this all kinda odd, since I've been running 1.5.1sec (albeit with
> about 15 other patches <g>) since its release several days ago with no
> crashes at all.
> 
> Mine's on a SS20, Solaris 2.5.1, 512MB, 32GB RAID0 yadda yadda yadda.
> The only notable difference I've seen between my setup and those that are
> crashing is I compiled with Sun cc, not gcc.  As far as I can recall, each
> person experiencing the crashes who specified was using gcc.
> 
> Also of note, however, is that I had to hoark with the include files quite
> a bit to get snprintf library to compile properly.  Some advice on doing
> that:  When compiling it, try to get it to ignore as many of your standard
> include files as possible.  What I did was find the ones it wants, copy them
> into the snprintf directory, remove the unnecessary #includes from inside them
> (trial and error), and compile.  And it's been working great.
> 
> YMMV HTH.
> 
> -- 
> Andrew Smith -- Sysadmin, Insync Internet Services   | "Whatever you do, take
> PGP: 2A 50 AE 6D 51 53 18 77 F7 6C E9 2E E9 E1 59 2C | care of your shoes."
>      (finger -l aos@insync.net for full key)         |       - Tom Marhsall


-- 
Mark Thomas (Mark@Misty.com)

Re: ANNOUNCE: inn-1.5.1sec
#19977
Author: Mark G. Thomas
Date: Thu, 31 Jul 1997 00:00
39 lines
1883 bytes
In <5rokp0$dka$1@news3.texas.net>,
Michael Douglass <mikedoug@staff2.texas.net> wrote:

> 
> : Yup.  1.5.1sec core dumps for me too.  1.5.1 built identically is very stable.
> 
> : This is under Solaris-2.5.1 on an UltraSPARC if it matters.
> 
> This is also on a solaris 2.5.1 box; did you use the supplied
> snprintf() function that came with the inn distribution?  I did
> -Dsnprintf=__snprintf -Dvsnprintf=__vsnprintf; not sure if that is
> a problem--I doubt it.

I used the snprintf() that came with newlog-1.0.4 from the inn-1.6b2 
distribution.

> Strangely enough, it is core dumping in a call to malloc--but 1.5.1 was
> stable.... :)  Here is a back trace:
> 
> (gdb) bt
> #0  0xef3cb4b0 in _malloc_unlocked ()
> #1  0xef3cb370 in malloc ()
> #2  0x3cc3c in xmalloc (i=1024) at xmalloc.c:22
> #3  0x2a5c0 in NCcheck (cp=0x5dc50) at nc.c:1490
> #4  0x28e80 in NCproc (cp=0x5dc50) at nc.c:997
> #5  0x29dbc in NCreader (cp=0x5dc50) at nc.c:1321
> #6  0x20f48 in CHANreadloop () at chan.c:874
> #7  0x254c8 in main (ac=0, av=0xeffffe74) at innd.c:972

I guess I should recompile with "-g", and build gdb for the machine...

-Mark


-- 
Mark Thomas (Mark@Misty.com)

Re: ANNOUNCE: inn-1.5.1sec
#19986
Author: Frank 'Scruffy' Miller
Date: Thu, 31 Jul 1997 00:00
26 lines
1478 bytes
In article <5rpgpq$2ee$1@pandora.cs.utwente.nl>,
Ronald Hello <hello@cs.utwente.nl> wrote:
>
>It happens here too. Ultra-1 on Solaris 2.5. I can trigger it with
>expire. And that happens at night, so innd will be down most of the
>early morning this way.
>
>Ronald.

Swell ;{  I'm  not getting it here with a full feed and have gone through
two expires.  I'm utilizing 1.5.1sec with the unoff nnrpd patch.  I will
recompile/install with the symbol table and await a SEGV with bated breath.

It's on a  5.5 Generic_103093-06 in that is due for a 5.5.1 upgrade.

Frank


-- 
----------------------------------------------------------------
Frank Miller                     |    frankm@master.cna.tek.com
Technical Computing Group Leader |    "Laugh while you can, 
Tektronix CNA Division           |    monkey-boy!!!!"

Re: ANNOUNCE: inn-1.5.1sec
#19990
Author: aos
Date: Thu, 31 Jul 1997 00:00
31 lines
2000 bytes
Julio Sanchez <jsanchez@esegi.es> wrote:
> Sorry if I did not make clear:  It is innd that SIGSEGVs, not nnrpd.

Strange.  Is yours getting the SIGSEGV on a malloc like lots of other peoples'
seem to be doing?

I just find this all kinda odd, since I've been running 1.5.1sec (albeit with
about 15 other patches <g>) since its release several days ago with no
crashes at all.

Mine's on a SS20, Solaris 2.5.1, 512MB, 32GB RAID0 yadda yadda yadda.
The only notable difference I've seen between my setup and those that are
crashing is I compiled with Sun cc, not gcc.  As far as I can recall, each
person experiencing the crashes who specified was using gcc.

Also of note, however, is that I had to hoark with the include files quite
a bit to get snprintf library to compile properly.  Some advice on doing
that:  When compiling it, try to get it to ignore as many of your standard
include files as possible.  What I did was find the ones it wants, copy them
into the snprintf directory, remove the unnecessary #includes from inside them
(trial and error), and compile.  And it's been working great.

YMMV HTH.

-- 
Andrew Smith -- Sysadmin, Insync Internet Services   | "Whatever you do, take
PGP: 2A 50 AE 6D 51 53 18 77 F7 6C E9 2E E9 E1 59 2C | care of your shoes."
     (finger -l aos@insync.net for full key)         |       - Tom Marhsall

Re: ANNOUNCE: inn-1.5.1sec
#19992
Author: Julio Sanchez
Date: Thu, 31 Jul 1997 00:00
22 lines
1428 bytes
trevor@home.net (Trevor Fiatal) writes:

> If it's not one thing, it's another.  Guess a few coredumps per day
> are better than a root-shell exploit, but not by much.

I do not agree.  If it SIGSEGVs and *if* this can be externally
induced, there *can* be a way to exploit it.  Not always, but I want
to know if it is so.

No, I am not happy with it dying for more than reliability reasons.
But I may be doing something wrong and the code may be all OK.

Julio

-- 
Julio Sanchez, SGI Soluciones Globales Internet
Tel: (91) 804 28 37 Fax: (91) 804 14 05  WWW: http://www.esegi.es
jsanchez@esegi.es jsanchez@gmv.es
 PGP Key fingerprint =  E5 29 93 6F 41 4E 00 E2  90 11 A1 8C 72 D0 DE 71 

Re: ANNOUNCE: inn-1.5.1sec
#19996
Author: Ronald Hello
Date: Thu, 31 Jul 1997 00:00
50 lines
2406 bytes
In article <5rq6qp$kt9$1@synthemesc.insync.net>, aos@insync.net writes:
>Julio Sanchez <jsanchez@esegi.es> wrote:
>> Sorry if I did not make clear:  It is innd that SIGSEGVs, not nnrpd.
>
>Strange.  Is yours getting the SIGSEGV on a malloc like lots of other peoples'
>seem to be doing?

Not only malloc, but mostly. I also had a crash in I believe NGfind.

>
>I just find this all kinda odd, since I've been running 1.5.1sec (albeit with
>about 15 other patches <g>) since its release several days ago with no
>crashes at all.

I am interested in your patches ...

>
>Mine's on a SS20, Solaris 2.5.1, 512MB, 32GB RAID0 yadda yadda yadda.
>The only notable difference I've seen between my setup and those that are
>crashing is I compiled with Sun cc, not gcc.  As far as I can recall, each
>person experiencing the crashes who specified was using gcc.

Sorry, mine is build with Sun cc and it crashes like a charm.
Running Solaris 2.5 on a Ultra-1.

>
>Also of note, however, is that I had to hoark with the include files quite
>a bit to get snprintf library to compile properly.  Some advice on doing
>that:  When compiling it, try to get it to ignore as many of your standard
>include files as possible.  What I did was find the ones it wants, copy them
>into the snprintf directory, remove the unnecessary #includes from inside them
>(trial and error), and compile.  And it's been working great.

I patched it so it would use __snprintf and __vsnprintf from libc. But I
also saw it crash with people that used INN snprintf. It seems it's not in
the snprintf adjustments but somewhere else.

Ronald.


-- 
// Ronald Hello  (Ronald.Hello@cs.utwente.nl)
// University of Twente
// Department of Computer Science
// The Netherlands



Re: ANNOUNCE: inn-1.5.1sec
#20004
Author: Mark G. Thomas
Date: Thu, 31 Jul 1997 00:00
57 lines
3103 bytes
In <5rqso6$a4k$1@synthemesc.insync.net>,
aos@insync.net <aos@insync.net> wrote:

> Mark G. Thomas <mark@misty.com> wrote:
> > Mine is.  Solaris-2.5.1, gcc-2.7.2.2, UltraSPARC with 196MB RAM, 16 GB disk.
> 
> This is all pretty strange.  It seems to be happening to people with all kinds
> of setups, both gcc and Sun cc, and yet mine's been running just great since
> day one.  I'm really at a loss as to what I did differently to make it work.
> 
> The only real change I made to anything was to comment out the #include
> <math.h> in snprintf/vfprintf.c (it's not needed on Solaris, and actually
> introduces massive compiler spewage followed by failure).

I think I've stumbled on something here.

I built 1.5.1sec2 linked against libnewlog.a for snprintf(), and it would
crap out after just a few minutes.  I would get error message like this:
   innd: SERVER cant remalloc 8192 bytes Cross-device link

I then just now built 1.5.1sec2 using the instructions for Solaris2 to
use the vfprintf stuff provided with 1.5.1sec2, and so far it has
been running fine.

I now suspect there might have been something serious wrong with the
libnewlog.a stuff that came with 1.6beta for snprintf.

I also had to disable the include of <math.h> in snprintf/vfprintf.c.

This is under Solaris-2.5.1 on an Ultra, with gcc.

> Other than that (and all the other strange patches, which shouldn't make much
> of a difference), it sounds like I've compiled pretty much the same as
> everyone else has.  INN originally occupied about 25MB of RAM and has since
> expanded to just under 150MB (pretty normal for our setup), where it's stayed.
> So it looks like it's malloc()ing just fine.
> 
> The only other differences I can think of are patches on the OS itself.  I've
> got all the relevant Sun patches installed (which pretty much everyone should
> do in any case).
> 
> Failing any solution to your situation from the above info, I really don't
> know what to say.
> 
> Does anyone have a good stacktrace from the coredumps?
> 
> -- 
> Andrew Smith -- Sysadmin, Insync Internet Services   | "Whatever you do, take
> PGP: 2A 50 AE 6D 51 53 18 77 F7 6C E9 2E E9 E1 59 2C | care of your shoes."
>      (finger -l aos@insync.net for full key)         |       - Tom Marhsall


-- 
Mark Thomas (Mark@Misty.com)

Re: ANNOUNCE: inn-1.5.1sec
#20007
Author: Heiko W.Rupp
Date: Thu, 31 Jul 1997 00:00
17 lines
1304 bytes
Michael Douglass wrote:
|Strangely enough, it is core dumping in a call to malloc--but 1.5.1 was
|stable.... :)  Here is a back trace:

A common problem with that is missalignement. On a ix86 you don't even see
it, while on Sparc it dumps core. Other reason might just be a
malloc(strlen(b+1)) instead of malloc(strlen(b)+1). I saw such code
running fine under NetBSD and Linux and bailing out the first second on a
Sparc.

-- 
Heiko W.Rupp hwr@pilhuhn.de
  INN FAQ can be found in ftp://ftp.xlink.net/pub/news/docs/
     It is also posted regularly to news.software.{b,nntp} and news.answers.

Re: ANNOUNCE: inn-1.5.1sec
#20009
Author: Mark G. Thomas
Date: Thu, 31 Jul 1997 00:00
75 lines
3616 bytes

In the below article I spoke to soon.  innd died right as I posted the article.

inn-1.5.1sec2 died with the following message:

Jul 31 18:17:12 news.misty.com 
      innd: SERVER cant remalloc 3094 bytes Cross-device link




In <slrn5u23ik.iuu.mark@marksys.misty.com>,
Mark G. Thomas <mark@misty.com> wrote:

> In <5rqso6$a4k$1@synthemesc.insync.net>,
> aos@insync.net <aos@insync.net> wrote:
> 
> > Mark G. Thomas <mark@misty.com> wrote:
> > > Mine is.  Solaris-2.5.1, gcc-2.7.2.2, UltraSPARC with 196MB RAM, 16 GB disk.
> > 
> > This is all pretty strange.  It seems to be happening to people with all kinds
> > of setups, both gcc and Sun cc, and yet mine's been running just great since
> > day one.  I'm really at a loss as to what I did differently to make it work.
> > 
> > The only real change I made to anything was to comment out the #include
> > <math.h> in snprintf/vfprintf.c (it's not needed on Solaris, and actually
> > introduces massive compiler spewage followed by failure).
> 
> I think I've stumbled on something here.
> 
> I built 1.5.1sec2 linked against libnewlog.a for snprintf(), and it would
> crap out after just a few minutes.  I would get error message like this:
>    innd: SERVER cant remalloc 8192 bytes Cross-device link
> 
> I then just now built 1.5.1sec2 using the instructions for Solaris2 to
> use the vfprintf stuff provided with 1.5.1sec2, and so far it has
> been running fine.
> 
> I now suspect there might have been something serious wrong with the
> libnewlog.a stuff that came with 1.6beta for snprintf.
> 
> I also had to disable the include of <math.h> in snprintf/vfprintf.c.
> 
> This is under Solaris-2.5.1 on an Ultra, with gcc.
> 
> > Other than that (and all the other strange patches, which shouldn't make much
> > of a difference), it sounds like I've compiled pretty much the same as
> > everyone else has.  INN originally occupied about 25MB of RAM and has since
> > expanded to just under 150MB (pretty normal for our setup), where it's stayed.
> > So it looks like it's malloc()ing just fine.
> > 
> > The only other differences I can think of are patches on the OS itself.  I've
> > got all the relevant Sun patches installed (which pretty much everyone should
> > do in any case).
> > 
> > Failing any solution to your situation from the above info, I really don't
> > know what to say.
> > 
> > Does anyone have a good stacktrace from the coredumps?
> > 
> > -- 
> > Andrew Smith -- Sysadmin, Insync Internet Services   | "Whatever you do, take
> > PGP: 2A 50 AE 6D 51 53 18 77 F7 6C E9 2E E9 E1 59 2C | care of your shoes."
> >      (finger -l aos@insync.net for full key)         |       - Tom Marhsall
> 
> 
> -- 
> Mark Thomas (Mark@Misty.com)


-- 
Mark Thomas (Mark@Misty.com)

Re: ANNOUNCE: inn-1.5.1sec
#20015
Author: Julio Sanchez
Date: Thu, 31 Jul 1997 00:00
27 lines
1561 bytes
aos@insync.net writes:

> Strange.  Is yours getting the SIGSEGV on a malloc like lots of
> other peoples' seem to be doing?

Most people seem to have problems on Solaris.  I use Linux.

One of my problems is in __libc_free.  This may be caused by the same
problem that causes malloc errors for other people (arena
corruption).  Both are "can't happen" under normal conditions.

I cannot determine where the error is, even if I cc -g and run under
gdb, I cannot get a good stack trace.  Maybe I have stack smashing as
well, and maybe everything has the same origin.

Still staring at the code,

Julio

-- 
Julio Sanchez, SGI Soluciones Globales Internet
Tel: (91) 804 28 37 Fax: (91) 804 14 05  WWW: http://www.esegi.es
jsanchez@esegi.es jsanchez@gmv.es
 PGP Key fingerprint =  E5 29 93 6F 41 4E 00 E2  90 11 A1 8C 72 D0 DE 71 

Re: ANNOUNCE: inn-1.5.1sec
#20038
Author: Michael Douglass
Date: Thu, 31 Jul 1997 00:00
20 lines
1584 bytes
Mark G. Thomas <mark@misty.com> wrote:

: I now suspect there might have been something serious wrong with the
: libnewlog.a stuff that came with 1.6beta for snprintf.

I would be willing to follow you there; but I used neither of libnewlog.a
snprintf nor the inn1.5.1sec[2] releases snprintf.  I used the snprintf
fount as __snprintf in solaris 2.5.1's libc.  Now unless __snprintf and
libnewlog.a both have the same problem, this may not be the case.

-- 
Michael Douglass
Texas Networking, Inc.

   <de> 'hail sparc, full of rammage'
   <de> 'the kernel is with thee'
   <de> 'blessed art thou amongst processors'

Re: ANNOUNCE: inn-1.5.1sec
#20071
Author: aos
Date: Fri, 01 Aug 1997 00:00
35 lines
1961 bytes
Ronald Hello <hello@cs.utwente.nl> wrote:
> Just a list of the ones you used would be nice.

Okay, here's what I've got:
	1> INN 1.5.1sec2 base distribution
	2> Joe Greco's split control.cancel into lots of dirs patch
	3> Expire hash improvement patch
	4> fastrm patch to fix symlink stuff
	5> Jeff Garzik's improved history cache patch
	6> makehistory fix patch
	7> MMAP overview patch
	8> null pointer patch
	9> Jeff Garzik's perl-filter-body patch
	10> Jeff Garzik's pre-commit cache patch
	11> Joe Greco's timer patch
	12> Joe Greco's active daemon patch (portable-ized)

They all coexist very nicely (with a little tweaking to make them go into
the source acceptably).  The most useful of the above IMHO is the active
daemon patch.  It's done wonderful things for our performance.

> When you have the time for it, it would be something to put on a website.
> Including the list of the patches you used of course .....

Excellent idea.  I've thrown together a little page with the patches I'm
currenty using at http://www.insync.net/~aos/inn.html.  Feel free to grab,
absorb, file to /dev/null, etc.

-- 
Andrew Smith -- Sysadmin, Insync Internet Services   | "Whatever you do, take
PGP: 2A 50 AE 6D 51 53 18 77 F7 6C E9 2E E9 E1 59 2C | care of your shoes."
     (finger -l aos@insync.net for full key)         |       - Tom Marhsall

Re: ANNOUNCE: inn-1.5.1sec
#20087
Author: Ronald Hello
Date: Fri, 01 Aug 1997 00:00
46 lines
2284 bytes
In article <5rq95l$m8d$1@synthemesc.insync.net>, aos@insync.net writes:
>Ronald Hello <hello@cs.utwente.nl> wrote:
>> I am interested in your patches ...
>
>Well, they're not "mine" so to speak, but just a well-crafted conglomeration
>of lots of other patches.  It's taken a lot of work to get them all working
>together, and I'm really pleased with the results.  (Really busy machine,
>about 60 feeds going in and out at the same time, lots of readers, etc. etc.
>and it still gets the NNRPD banner up in about 0.5 seconds)

Just a list of the ones you used would be nice.

>
>If you'd like (and anyone else for that matter), I can generate a big
>mega-diff against a stock 1.5.1sec and send it to you.  It won't be easy to
>pick out what patches are where, but you might want to give 'em all a shot
>at once, particularly since we're running essenstially the same hardware and
>compiler.

When you have the time for it, it would be something to put on a website.
Including the list of the patches you used of course .....

>
>> I patched it so it would use __snprintf and __vsnprintf from libc. But I
>> also saw it crash with people that used INN snprintf. It seems it's not in
>> the snprintf adjustments but somewhere else.
>
>Quite possible.  Incidentally, I'm using the 1.5.1sec copy of snprintf
>(again, with some modifications, but hey, I never like stock source <g>).

I just `upgraded' to 1.5.1sec2 and my innd suddenly survives an expire. The
1.5.1sec didn't ...

Ronald.


-- 
// Ronald Hello  (Ronald.Hello@cs.utwente.nl)
// University of Twente
// Department of Computer Science
// The Netherlands



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