From owner-freebsd-questions@FreeBSD.ORG Tue Sep 3 20:41:10 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E3753106 for ; Tue, 3 Sep 2013 20:41:10 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: from mail-wg0-x22c.google.com (mail-wg0-x22c.google.com [IPv6:2a00:1450:400c:c00::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 41613281B for ; Tue, 3 Sep 2013 20:41:10 +0000 (UTC) Received: by mail-wg0-f44.google.com with SMTP id b13so1096909wgh.23 for ; Tue, 03 Sep 2013 13:41:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=UiO6VfBYcwDKcXRpnCyxmh2yk7RT3FLQ4R8qH5YIdn4=; b=X6kQ8lqvJ9WgMk1ttkIDjKEz5M74BzH7k+mcfLZRMH7/wbSafh5/9l+NC70132HCyl raxEWWEzQK3O53WQ0BI4Z8787fMO6a63Pe7kATORGdfk1GIlem3MePjXi3q5icy5ySYw Rtxho+d33lKwBO/tslZ1fO5iboyqSz+pSWfeQKNYkoONkI5bSjZ7cRMl9jLqsy7H5wdC K3Ezn/fRTot0Bv1+x8kDRf8j1tdSwI5n4gkjLyzcxf4cFSiNBa6Wu0zh0lK4GGQIcVvV uRT2mhlwzBspsq5d7bzTfJDXwQSUA4cdi2OGEBX5UGO+otWiaUq5WqdBCZLB15qRA7yB JMRw== MIME-Version: 1.0 X-Received: by 10.180.187.41 with SMTP id fp9mr19582624wic.33.1378240868571; Tue, 03 Sep 2013 13:41:08 -0700 (PDT) Received: by 10.180.8.38 with HTTP; Tue, 3 Sep 2013 13:41:08 -0700 (PDT) Received: by 10.180.8.38 with HTTP; Tue, 3 Sep 2013 13:41:08 -0700 (PDT) In-Reply-To: References: Date: Tue, 3 Sep 2013 22:41:08 +0200 Message-ID: Subject: Re: f9 snmpd[4517]: stack overflow detected; terminated From: =?ISO-8859-1?Q?Fernando_Apestegu=EDa?= To: alexus Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: User Questions , James Gosnell X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Sep 2013 20:41:11 -0000 El 03/09/2013 21:47, "alexus" escribi=F3: > > I use bsnmpd w/ mrtg (have been for very long time and everything was ok, till recently), mrtg just monitors interface(s) as it always did, nothing special.. > > any ideas how to solve it though? I'm really sorry. I don't use SNMP. I would try to configure snmpd to be as verbose as possible and see if it can log something interesting before it crashes. Maybe someone who uses it can step in and help you to debug the problem. > > > On Tue, Sep 3, 2013 at 3:40 PM, Fernando Apestegu=EDa < fernando.apesteguia@gmail.com> wrote: >> >> >> >> >> On Tue, Sep 3, 2013 at 9:22 PM, alexus wrote: >>> >>> #13156 0x0000000000000000 in ?? () >>> #13157 0x0000000000000001 in ?? () >>> #13158 0x00007fffffffae80 in ?? () >>> #13159 0x000000080063c400 in ?? () >>> #13160 0x00007fffffffae90 in ?? () >>> #13161 0x00007fffffffae30 in ?? () >>> #13162 0x000000080063c000 in ?? () >>> #13163 0x0000000800624244 in dlclose () from /libexec/ld-elf.so.1 >>> Previous frame inner to this frame (corrupt stack?) >>> (gdb) >>> >>> http://pastebin.com/qhQGC5A4 >> >> >> It was long indeed :) >> >> It seems to me you are receiving a very long query from the network and somehow, the snmp_input_finish() function is blowing up. >> >> >> >>> >>> >>> >>> >>> On Tue, Sep 3, 2013 at 3:18 PM, Fernando Apestegu=EDa < fernando.apesteguia@gmail.com> wrote: >>>> >>>> >>>> El 03/09/2013 21:11, "alexus" escribi=F3: >>>> >>>> >>>> > >>>> > it's _REALLY_ long, but if you want I can upload it somewhere... >>>> > >>>> > last couple of lines is following: >>>> > >>>> > #13163 0x0000000800624244 in dlclose () from /libexec/ld-elf.so.1 >>>> > Previous frame inner to this frame (corrupt stack?) >>>> >>>> Not much there. >>>> >>>> Paste the last 10 or 20 lines please. Let's see if that throws some light. >>>> >>>> > >>>> > >>>> > >>>> > On Tue, Sep 3, 2013 at 3:08 PM, Fernando Apestegu=EDa < fernando.apesteguia@gmail.com> wrote: >>>> >> >>>> >> >>>> >> >>>> >> >>>> >> On Tue, Sep 3, 2013 at 9:04 PM, alexus wrote: >>>> >>> >>>> >>> can you guide me through to get "whole backtrace" please? >>>> >> >>>> >> >>>> >> After opening the core like you did, type "bt" and press enter. >>>> >> >>>> >>> >>>> >>> >>>> >>> >>>> >>> On Tue, Aug 27, 2013 at 5:19 PM, Fernando Apestegu=EDa < fernando.apesteguia@gmail.com> wrote: >>>> >>>> >>>> >>>> >>>> >>>> El 27/08/2013 05:03, "alexus" escribi=F3: >>>> >>>> >>>> >>>> >>>> >>>> > >>>> >>>> > f9# gdb `which bsnmpd` /bsnmpd.core >>>> >>>> > GNU gdb 6.1.1 [FreeBSD] >>>> >>>> > Copyright 2004 Free Software Foundation, Inc. >>>> >>>> > GDB is free software, covered by the GNU General Public License, and you are >>>> >>>> > welcome to change it and/or 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. >>>> >>>> > This GDB was configured as "amd64-marcel-freebsd"...(no debugging symbols >>>> >>>> > found)... >>>> >>>> > Core was generated by `bsnmpd'. >>>> >>>> > Program terminated with signal 6, Aborted. >>>> >>>> > Reading symbols from /lib/libbegemot.so.4...(no debugging symbols >>>> >>>> > found)...done. >>>> >>>> > Loaded symbols for /lib/libbegemot.so.4 >>>> >>>> > Reading symbols from /usr/lib/libbsnmp.so.6...(no debugging symbols >>>> >>>> > found)...done. >>>> >>>> > Loaded symbols for /usr/lib/libbsnmp.so.6 >>>> >>>> > Reading symbols from /usr/lib/libwrap.so.6...(no debugging symbols >>>> >>>> > found)...done. >>>> >>>> > Loaded symbols for /usr/lib/libwrap.so.6 >>>> >>>> > Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done. >>>> >>>> > Loaded symbols for /lib/libc.so.7 >>>> >>>> > Reading symbols from /lib/libcrypto.so.6...(no debugging symbol= s >>>> >>>> > found)...done. >>>> >>>> > Loaded symbols for /lib/libcrypto.so.6 >>>> >>>> > Reading symbols from /usr/lib/snmp_mibII.so...(no debugging symbols >>>> >>>> > found)...done. >>>> >>>> > Loaded symbols for /usr/lib/snmp_mibII.so >>>> >>>> > Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols >>>> >>>> > found)...done. >>>> >>>> > Loaded symbols for /libexec/ld-elf.so.1 >>>> >>>> > #0 0x0000000800f54d6c in kill () from /lib/libc.so.7 >>>> >>>> > (gdb) >>>> >>>> >>>> >>>> Is that the whole backtrace? >>>> >>>> >>>> >>>> > >>>> >>>> > >>>> >>>> > >>>> >>>> > On Mon, Aug 26, 2013 at 10:42 PM, James Gosnell < jamesgosnell@gmail.com>wrote: >>>> >>>> > >>>> >>>> > > What's the core dump and your config file look like? >>>> >>>> > > >>>> >>>> > > >>>> >>>> > > On Mon, Aug 26, 2013 at 9:28 PM, alexus wrote: >>>> >>>> > > >>>> >>>> > > > My bsnmpd(1) keep crashing( >>>> >>>> > > > >>>> >>>> > > > f9# uname -a >>>> >>>> > > > FreeBSD f9.alexus.org 9.1-RELEASE-p6 FreeBSD 9.1-RELEASE-p6 #0: Wed Aug >>>> >>>> > > 21 >>>> >>>> > > > 20:40:52 UTC 2013 >>>> >>>> > > > root@amd64-builder.daemonology.net: /usr/obj/usr/src/sys/GENERIC >>>> >>>> > > > amd64 >>>> >>>> > > > f9# bzip2 -cd all.log.1.bz2 | grep snmpd >>>> >>>> > > > Aug 24 20:59:55 f9 snmpd[4517]: stack overflow detected; terminated >>>> >>>> > > > Aug 24 20:59:55 f9 kernel: Aug 24 20:59:55 f9 snmpd[4517]: stack overflow >>>> >>>> > > > detected; terminated >>>> >>>> > > > Aug 24 20:59:56 f9 kernel: pid 4517 (bsnmpd), uid 0: exited on signal 6 >>>> >>>> > > > (core dumped) >>>> >>>> > > > f9# head -1 /etc/snmpd.config >>>> >>>> > > > # $FreeBSD: release/9.1.0/etc/snmpd.config 216595 2010-12-20 17:28:15Z >>>> >>>> > > > syrinx $ >>>> >>>> > > > f9# >>>> >>>> > > > >>>> >>>> > > > What can I do to resolve it? >>>> >>>> > > > >>>> >>>> > > > -- >>>> >>>> > > > http://alexus.org/ >>>> >>>> > > > _______________________________________________ >>>> >>>> > > > freebsd-questions@freebsd.org mailing list >>>> >>>> > > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>>> >>>> > > > To unsubscribe, send any mail to " >>>> >>>> > > > freebsd-questions-unsubscribe@freebsd.org" >>>> >>>> > > > >>>> >>>> > > >>>> >>>> > > >>>> >>>> > > >>>> >>>> > > -- >>>> >>>> > > James Gosnell, ACP >>>> >>>> > > _______________________________________________ >>>> >>>> > > freebsd-questions@freebsd.org mailing list >>>> >>>> > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>>> >>>> > > To unsubscribe, send any mail to " >>>> >>>> > > freebsd-questions-unsubscribe@freebsd.org" >>>> >>>> > > >>>> >>>> > >>>> >>>> > >>>> >>>> > >>>> >>>> > -- >>>> >>>> > http://alexus.org/ >>>> >>>> > _______________________________________________ >>>> >>>> > freebsd-questions@freebsd.org mailing list >>>> >>>> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>>> >>>> > To unsubscribe, send any mail to " freebsd-questions-unsubscribe@freebsd.org" >>>> >>> >>>> >>> >>>> >>> >>>> >>> >>>> >>> -- >>>> >>> http://alexus.org/ >>>> >> >>>> >> >>>> > >>>> > >>>> > >>>> > -- >>>> > http://alexus.org/ >>> >>> >>> >>> >>> -- >>> http://alexus.org/ >> >> > > > > -- > http://alexus.org/