From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 12 16:53:50 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D50F24C2 for ; Wed, 12 Dec 2012 16:53:50 +0000 (UTC) (envelope-from nonesuch@longcount.org) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 69FA48FC08 for ; Wed, 12 Dec 2012 16:53:50 +0000 (UTC) Received: by mail-vc0-f182.google.com with SMTP id fo14so1069168vcb.13 for ; Wed, 12 Dec 2012 08:53:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:content-type:x-gm-message-state; bh=f/a6ViVyDoSQ6se65jRRN2GaDch9ypGcsS6PJrgdf3o=; b=eccWvIafa7gABq50NWexjJgGMxYDLo7HLd85eP1PijnpAvXyxNcl5+ZH+wZAN9OvzQ HxTtcAHjHP/wDchZzkGO6h9K9Injmn2GgvJb3LzSm9tkgZcxDVnABnbT7YCK8Nq7qmZN KzfFhldejeZoYl63bmExhxEGArqL7kiHnXOtP1kkBU8KceGb1oYC3ZDNCsRVbqGBhdl0 UMPDi28i9xHUgfDTvqw5LDIG7MswnitkbPMy6+fCp69YLYu3N11zPUk65dKwuGLMmKjH ObsQOEUUvAvTcosW16MxZnKt26S+/0jHR4Vqv59Y1rmsW5j8BlYdR6f7Mr+xmXaUoLpj jQNw== MIME-Version: 1.0 Received: by 10.220.240.141 with SMTP id la13mr866758vcb.39.1355331229018; Wed, 12 Dec 2012 08:53:49 -0800 (PST) Received: by 10.58.210.34 with HTTP; Wed, 12 Dec 2012 08:53:48 -0800 (PST) X-Originating-IP: [216.223.13.216] In-Reply-To: References: Date: Wed, 12 Dec 2012 11:53:48 -0500 Message-ID: Subject: Re: Syslog-ng weirdness on 9.1-RELEASE From: Mark Saad To: "freebsd-hackers@freebsd.org" X-Gm-Message-State: ALoCoQlCNwybm2FRnCdaoBsu0pQ1faHYVfduS3Yj7yjtze+JWGQM7Cn0RYXlgJaPfpXeZa+AFTFp Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Dec 2012 16:53:50 -0000 looks like i jumped the gun its a bug in syslog-ng https://bugzilla.balabit.com/show_bug.cgi?id=193 On Wed, Dec 12, 2012 at 11:50 AM, Mark Saad wrote: > All > I am wondering if anyone has seen this. I pulled down the 9.1-RELEASE > install media and did a clean install . After installing some ports from > the packages on > ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9-stable > > I noticed that syslog-ng is spinning out of control with a stock config. > > ps shows I have two syslog-ng pids > > the lower numbed pid is idle and the higher numbed pid is spinning out of > control > > Here is a truss of each > > # truss -p 20979 > SIGNAL 17 (SIGSTOP > > # truss -p 20980 > kevent(3,{},0,{0xb,EVFILT_READ,0x0,0,0x56fb,0x80251b5f0},8,{10.861307840 > }) = 1 (0x1) > clock_gettime(4,{2199.064214776 }) = 0 (0x0) > kevent(3,{},0,{0xb,EVFILT_READ,0x0,0,0x56fb,0x80251b5f0},8,{10.860672308 > }) = 1 (0x1) > clock_gettime(4,{2199.064899380 }) = 0 (0x0) > kevent(3,{},0,{0xb,EVFILT_READ,0x0,0,0x56fb,0x80251b5f0},8,{10.859987704 > }) = 1 (0x1) > clock_gettime(4,{2199.065608622 }) = 0 (0x0) > kevent(3,{},0,{0xb,EVFILT_READ,0x0,0,0x56fb,0x80251b5f0},8,{10.859278462 > }) = 1 (0x1) > clock_gettime(4,{2199.066240031 }) = 0 (0x0) > kevent(3,{},0,{0xb,EVFILT_READ,0x0,0,0x56fb,0x80251b5f0},8,{10.858647053 > }) = 1 (0x1) > clock_gettime(4,{2199.066876796 }) = 0 (0x0) > kevent(3,{},0,{0xb,EVFILT_READ,0x0,0,0x56fb,0x80251b5f0},8,{10.858010288 > }) = 1 (0x1 > > # procstat -f 20979 > PID COMM FD T V FLAGS REF OFFSET PRO NAME > 20979 syslog-ng text v r r-------- - - - > /usr/local/sbin/syslog-ng > 20979 syslog-ng cwd v d r-------- - - - > / > 20979 syslog-ng root v d r-------- - - - > / > 20979 syslog-ng 0 v c r-------- 1 0 - > /dev/null > 20979 syslog-ng 1 v c -w------- 2 0 - > /dev/null > 20979 syslog-ng 2 v c -w------- 2 0 - > /dev/null > > > # procstat -f 20980 > PID COMM FD T V FLAGS REF OFFSET PRO NAME > 20980 syslog-ng text v r r-------- - - - > /usr/local/sbin/syslog-ng > 20980 syslog-ng cwd v d r-------- - - - > /var/db > 20980 syslog-ng root v d r-------- - - - > / > 20980 syslog-ng 0 v c r-------- 1 0 - > /dev/null > 20980 syslog-ng 1 v c -w------- 2 0 - > /dev/null > 20980 syslog-ng 2 v c -w------- 2 0 - > /dev/null > 20980 syslog-ng 3 k - rw------- 1 0 - > - > 20980 syslog-ng 4 p - rw------- 1 0 - > - > 20980 syslog-ng 5 s - rw---n--- 2 0 UDS > /var/db/syslog-ng.ctl > 20980 syslog-ng 6 p - rw---n--- 2 0 - > - > 20980 syslog-ng 7 p - rw---n--- 1 0 - > - > 20980 syslog-ng 8 v r rw------- 1 16384 - > - > 20980 syslog-ng 9 s - rw---n--- 2 0 UDD /var/run/log > 20980 syslog-ng 10 s - rw---n--- 2 0 UDD /var/run/logpriv > 20980 syslog-ng 11 v c r----n--- 2 0 - > /dev/klog > 20980 syslog-ng 12 p - rw---n--- 2 0 - > - > 20980 syslog-ng 13 p - rw---n--- 1 0 - > - > 20980 syslog-ng 14 p - rw---n--- 2 0 - > - > 20980 syslog-ng 15 p - rw---n--- 1 0 - > - > 20980 syslog-ng 16 p - rw---n--- 2 0 - > - > 20980 syslog-ng 17 p - rw---n--- 1 0 - > - > 20980 syslog-ng 18 p - rw---n--- 2 0 - > - > 20980 syslog-ng 19 p - rw---n--- 1 0 - - > > Here is the config > > # cat /usr/local/etc/syslog-ng.conf > > > ############################################################################# > # Default syslog-ng.conf file which collects all local logs into a > # single file called /var/log/messages. > # > > @version: 3.3 > @include "scl.conf" > > source s_local { > system(); > internal(); > }; > > source s_network { > udp(); > }; > > destination d_local { > file("/var/log/messages"); > }; > > log { > source(s_local); > > # uncomment this line to open port 514 to receive messages > #source(s_network); > destination(d_local); > }; > > > Here are the packages I installed. > > bash-4.2.37 > ca_root_nss-3.13.6 > cciss_vol_status-1.10 > compat6x-amd64-6.4.604000.200810_3 > compat7x-amd64-7.3.703000.201008_1 > curl-7.24.0_1 > db41-4.1.25_4 > dejavu-2.33 > dmidecode-2.11 > eventlog-0.2.12 > expat-2.0.1_2 > figlet-2.2.4 > fontconfig-2.9.0,1 > freetype2-2.4.9_1 > gamin-0.1.10_4 > gettext-0.18.1.1 > gio-fam-backend-2.28.8_1 > glib-2.28.8_4 > gmake-3.82_1 > inputproto-2.0.2 > java-zoneinfo-2012.f > javavmwrapper-2.4 > jpeg-8_3 > kbproto-1.0.5 > libICE-1.0.7,1 > libSM-1.2.0,1 > libX11-1.4.4,1 > libXau-1.0.6 > libXaw-1.0.9,2 > libXdmcp-1.1.0 > libXext-1.3.0_1,1 > libXft-2.1.14 > libXi-1.4.5,1 > libXmu-1.1.0,1 > libXp-1.0.1,1 > libXpm-3.5.9 > libXrender-0.9.6 > libXt-1.1.1,1 > libXtst-1.2.0 > libiconv-1.14 > libpthread-stubs-0.3_3 > libxcb-1.7 > mcelog-1.0.p3 > net-snmp-5.7.2 > nspr-4.9.2 > nss-3.13.6_1 > open-motif-2.3.3_2 > openjdk6-b26_1 > openldap-client-2.4.33 > openssl-1.0.1_4 > pam_ldap-1.8.6_2 > pam_mkhomedir-0.2 > pcre-8.31_1 > perl-5.14.2_2 > pkgconf-0.8.9 > png-1.5.12 > portaudit-0.6.0 > portupgrade-2.4.10,2 > printproto-1.0.5 > python27-2.7.3_3 > recordproto-1.14.1 > renderproto-0.11.1 > rsync-3.0.9_2 > ruby-1.8.7.370,1 > ruby18-bdb-0.6.6 > sqlite3-3.7.14.1 > sudo-1.8.6.p3_1 > syslog-ng-3.3.6_3 > unzip-6.0_1 > vim-lite-7.3.669 > xbitmaps-1.1.1 > xextproto-7.2.0 > xproto-7.0.22 > > > Anyone have any ideas ? > > -- > mark saad | nonesuch@longcount.org > > -- mark saad | nonesuch@longcount.org