Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 58364 - pppd or rp-pppoe fills system logs
Summary: pppd or rp-pppoe fills system logs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Dialup Developers
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2004-07-26 02:01 UTC by Cletus Lichte
Modified: 2004-09-27 03:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
fixes endless loop when pppd is killed (pppd.patch,339 bytes, patch)
2004-07-29 06:35 UTC, Michal Suchanek
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Cletus Lichte 2004-07-26 02:01:34 UTC
I'm using rp-pppoe and whenever I reboot or shutdown, pppd fills my logs with thousands of the following line:

Jul 26 01:39:28 lichte pppd[7249]: Terminating on signal 15.

At one time I used sed to remove all these lines and my log went from 300 meg to 17 meg in size.  It sometimes also causes my system to overload during shutdown and makes it come to a crawl, outputting these lines, at least until syslog-ng stops, then shutdown resumes at normal speed.

I don't know if rp-pppoe or pppd is the cause of this problem.  Is there a way that I can get pppd to no longer send output to my system logs until this can get fixed???

Here are the versions of both those software packages:

net-dialup/rp-pppoe-3.5-r1 +X
net-dialup/ppp-2.4.2-r2 +activefilter -atm -ipv6 +pam

emerge info:

Portage 2.0.50-r9 (default-x86-1.4, gcc-3.3.4, glibc-2.3.4.20040619-r0, 2.6.7-gentoo-r11)
=================================================================
System uname: 2.6.7-gentoo-r11 i686 VIA Samuel 2
Gentoo Base System version 1.5.1
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=c3 -O2 -pipe"
CHOST="i586-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=c3 -O2 -pipe"
DISTDIR="/tmp/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j1"
PKGDIR="/tmp/usr/portage/packages"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/tmp/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow 3ds X X509 Xaw3d acpi acpi4linux activefilter alsa apache2 athena atlas audiofile avi berkdb cddb cle266 crypt cscope cups curl dedicated dga dillo divx4linux djbfft dnd dv dvd emacs encode escreen ethereal f77 faac faad fdftk fftw flac flash fltk fluidsynth fmod foomaticdb gd gdbm ggi gif gimpprint glade gpm gstreamer gtk gtk2 icq idl imagemagick imap imlib imlib2 jabber jack jack-caps jack-tmpfs javascript jpeg ladcca lcms libwww live lufsusermount mad mbox mcal md5sum mikmod mmx mng motif mozilla moznocompose moznoirc moznomail mozsvg mpeg mpeg4 mpi mplayer msn ncurses net nogcj nomac objc oggvorbis opengl oscar oss pam parse-clocks pcap pda pdflib perl plotutils png ppds python qt quicktime radeon readline ruby ruby18 sdl skey slp sox speex spell sqlite ssl svg tcltk tcpd tetex tiff truetype unicode usb video_cards_radeon videos vim-with-x wmf wxwindows x86 xgetdefault xml xml2 xmms xprint xv xvid yahoo yv12 zlib"
Comment 1 Cletus Lichte 2004-07-26 02:24:24 UTC
Ok, I rewrote the /usr/sbin/adsl-stop script and put the kill adsl-connect part before the kill pppd part.  It seems that rp-pppoe tries to restart the connection if it notices that pppd has stopped and this my be causing the problem.  I also changed all the kill lines to kill -9.  The offending lines in my /var/log/messages no longer show up.

Question, are the adsl scripts in the rp-pppoe package written by Gentoo devs, or by someone else?  I'd like to send the changes I made on to whomever can make use of them.  Thanks!
Comment 2 Cletus Lichte 2004-07-26 02:31:53 UTC
Well, I just took out the kill -9 to see if that was the fix, or if moving the one block of code was the fix.  With out the kill -9, I still get the problem with output lines in my messages file.  I also just noticed that in addition to filling my log file, pppd and pppoe don't ever stop running.  Oh well, with kill -9 the problem seems to be solved.
Comment 3 Michal Suchanek 2004-07-29 06:35:36 UTC
Created attachment 36397 [details, diff]
fixes endless loop when pppd is killed
Comment 4 Michal Suchanek 2004-07-29 06:36:09 UTC
There is a bug in pppd 2.4.2 which causes it to loop endlessly when it receives a signal.

The problem is described here: http://marc.theaimsgroup.com/?l=linux-ppp&m=107498594022952&w=2

attaching patch
Comment 5 Cletus Lichte 2004-08-11 10:46:41 UTC
Will this make it into portage soon?
Comment 6 Michal Suchanek 2004-08-13 07:31:27 UTC
perhaps if you put the Inclusion keyword to this bug you wold attract some more attention?
I cannot even do that.
Comment 7 Heinrich Wendel (RETIRED) gentoo-dev 2004-09-27 03:42:04 UTC
added the patch.