🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #15702

Re: innd 1.5.1 dumps core. buffer overflow?

#15702
From: Matt Dillon
Date: Mon, 10 Mar 1997 00:00
58 lines
3129 bytes
:In article <5g10ej$9o9$2@halon.vggas.com>,
:James Youngman <JYoungman@vggas.com> wrote:
:>In article <5fmjjf$qcg$1@news1.xs4all.nl>, johnpc@xs4all.nl says...
:>>
:>>I'm seeing very frequent (like once or twice a day) innd 1.5.1 coredumps,
:>>it looks like a buffer overflow to me. Here's some information from
:>>gdb on the latest core:
:>
:>[ snip ]
:>
:>I keep getting crashes from innd 1.5.1 (whereas 1.4unoff3 never did this);
:>
:>[root@halon news]# gdb /usr/sbin/innd
:>GDB is free software and you are welcome to distribute copies of it
:> under certain conditions; type "show copying" to see the conditions.
:>There is absolutely no warranty for GDB; type "show warranty" for details.
:>GDB 4.16 (i586-unknown-linux), Copyright 1996 Free Software Foundation, Inc...
:>(no debugging symbols found)...
:>(gdb) core core
:>Core was generated by `/usr/sbin/innd -p8 -i0 -L'.
:>Program terminated with signal 11, Segmentation fault.
:>Reading symbols from /lib/libc.so.5.3.12...(no debugging symbols found)...done.
:>Reading symbols from /lib/ld-linux.so.1...(no debugging symbols found)...done.
:>#0  0x40041840 in __libc_realloc ()
:>(gdb) info shared
:>From        To          Syms Read   Shared Object Library
:>0x40008000  0x400d206c  Yes         /lib/libc.so.5.3.12
:>0x40000000  0x400059bc  Yes         /lib/ld-linux.so.1                 
:>
:>I realise this is not teribly useful, since there are no symbols, but OTOH 
:>since it is a problem with free(), it's probably caused by a pointer error 
:>elsewhere in the program anyway, in which case the current call stack is of 
:>dubious usefulness.
:>
:>
:>-- 
:>James Youngman       VG Gas Analysis Systems  The trouble with the rat-race 
:>Before sending advertising material, read     is, even if you win, you're 
:>http://www.law.cornell.edu/uscode/47/227.html         still a rat.

    Make sure the process isn't running out of memory.  Check the resource
    limits for the machine:  The 'limit' from csh. 

    innd takes a shitload of VM.  The datasize limit needs to be a minimum
    of 128 megabytes (131072).  You may have to adjust the rc.news
    startup script for innd to fix the resource limits before it runs innd.

    If that isn't the problem, it's more likely a memory corruption problem.
    Not so much a bug in malloc/realloc/free as a bug in innd somewhere.

    It might also be helpful if you did a stack backtrace from the
    core dump.. the 'back' command in gdb, I believe.

						-Matt


Technical Details
Message-ID: <5g1udm$q8o@flea.best.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <5fmjjf$qcg$1@news1.xs4all.nl> <5g10ej$9o9$2@halon.vggas.com>

Show Full Headers
Complete Article Headers
Message-ID: <5g1udm$q8o@flea.best.net>
Subject: Re: innd 1.5.1 dumps core. buffer overflow?
Date: Mon, 10 Mar 1997 00:00:00 +0000
From: dillon@flea.best.net (Matt Dillon)
References: <5fmjjf$qcg$1@news1.xs4all.nl> <5g10ej$9o9$2@halon.vggas.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 224488906
Organization: BEST Internet Communications, Inc.
Newsgroups: news.software.nntp