NetBSD Problem Report #47714

From www@NetBSD.org  Wed Apr  3 18:12:10 2013
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 05F8563F3BD
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  3 Apr 2013 18:12:10 +0000 (UTC)
Message-Id: <20130403181208.C4ED063F3BD@www.NetBSD.org>
Date: Wed,  3 Apr 2013 18:12:08 +0000 (UTC)
From: bbartlomiej@gmail.com
Reply-To: bbartlomiej@gmail.com
To: gnats-bugs@NetBSD.org
Subject: snmpd from pkgsrc 2013Q1 crashes with stack overflow
X-Send-Pr-Version: www-1.0

>Number:         47714
>Category:       pkg
>Synopsis:       snmpd from pkgsrc 2013Q1 crashes with stack overflow
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    gdt
>State:          feedback
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 03 18:15:00 +0000 2013
>Closed-Date:    
>Last-Modified:  Thu May 25 04:10:00 +0000 2017
>Originator:     Bartek Krawczyk
>Release:        6.1_RC2
>Organization:
>Environment:
NetBSD test.krawczyk.it 6.1_RC2 NetBSD 6.1_RC2 (XEN3_DOMU) amd64
>Description:
After upgrading to pkgsrc 2013Q1 and upgrading snmpd to 
5.7.2 it began to crash with stack overflow after doing snmpwalk -v 2c -c public localhost

Apr  3 20:00:03 test snmpd[1478]: Bad process status ^G (0x7) 
Apr  3 20:00:03 test snmpd[1478]: Bad process status ^C (0x3) 
Apr  3 20:00:03 test syslogd[150]: last message repeated 17 times
Apr  3 20:00:03 test snmpd[1478]: Bad process status ^G (0x7) 
Apr  3 20:00:03 test snmpd[1478]: Bad process status ^C (0x3) 
Apr  3 20:00:03 test syslogd[150]: last message repeated 28 times
Apr  3 20:00:03 test snmpd[1478]: Bad process status ^G (0x7) 
Apr  3 20:00:03 test -: test.krawczyk.it snmpd - - - stack overflow detected; terminated	

my snmpd.conf:
syscontact "Bartek Krawczyk <administrator@tveurosat.net>"
syslocation DMZ
rocommunity     public



>How-To-Repeat:
Upgrade pkgsrc to 2013Q1 and snmpd to 5.7.2, try to do snmpwalk on localhost
>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->gdt
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Wed, 03 Apr 2013 18:56:30 +0000
Responsible-Changed-Why:
Over to updater.


State-Changed-From-To: open->feedback
State-Changed-By: christos@NetBSD.org
State-Changed-When: Thu, 04 Apr 2013 19:54:59 -0400
State-Changed-Why:
I fixed the bad process status messages, could not reproduce the stack overflow
I updated the package to nb1.


From: christos@zoulas.com (Christos Zoulas)
To: gnats-bugs@NetBSD.org, gdt@NetBSD.org, pkgsrc-bugs@netbsd.org, 
	gnats-admin@netbsd.org, bbartlomiej@gmail.com
Cc: 
Subject: Re: pkg/47714 (snmpd from pkgsrc 2013Q1 crashes with stack overflow)
Date: Thu, 4 Apr 2013 21:09:52 -0400

 On Apr 4, 11:55pm, christos@NetBSD.org (christos@NetBSD.org) wrote:
 -- Subject: Re: pkg/47714 (snmpd from pkgsrc 2013Q1 crashes with stack overfl


 I was able to reproduce this once. It seems that something ends up calling
 itself recursively from a signal handler when things get slow? We need to
 investigate more.

From: Bartek Krawczyk <bbartlomiej@gmail.com>
To: gnats-bugs@netbsd.org
Cc: gdt@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/47714 (snmpd from pkgsrc 2013Q1 crashes with stack overflow)
Date: Fri, 5 Apr 2013 12:36:32 +0200

 On 5 April 2013 03:10, Christos Zoulas <christos@zoulas.com> wrote:
 > The following reply was made to PR pkg/47714; it has been noted by GNATS.
 >
 > From: christos@zoulas.com (Christos Zoulas)
 > To: gnats-bugs@NetBSD.org, gdt@NetBSD.org, pkgsrc-bugs@netbsd.org,
 >         gnats-admin@netbsd.org, bbartlomiej@gmail.com
 > Cc:
 > Subject: Re: pkg/47714 (snmpd from pkgsrc 2013Q1 crashes with stack overflow)
 > Date: Thu, 4 Apr 2013 21:09:52 -0400
 >
 >  On Apr 4, 11:55pm, christos@NetBSD.org (christos@NetBSD.org) wrote:
 >  -- Subject: Re: pkg/47714 (snmpd from pkgsrc 2013Q1 crashes with stack overfl
 >
 >
 >  I was able to reproduce this once. It seems that something ends up calling
 >  itself recursively from a signal handler when things get slow? We need to
 >  investigate more.
 >

 If you tell me how, I can help with debugging. What do you need?

 Regards,
 --
 Bartek Krawczyk

From: christos@zoulas.com (Christos Zoulas)
To: Bartek Krawczyk <bbartlomiej@gmail.com>, gnats-bugs@netbsd.org
Cc: gdt@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/47714 (snmpd from pkgsrc 2013Q1 crashes with stack overflow)
Date: Fri, 5 Apr 2013 08:43:19 -0400

 On Apr 5, 12:36pm, bbartlomiej@gmail.com (Bartek Krawczyk) wrote:
 -- Subject: Re: pkg/47714 (snmpd from pkgsrc 2013Q1 crashes with stack overfl

 | >  I was able to reproduce this once. It seems that something ends up calling
 | >  itself recursively from a signal handler when things get slow? We need to
 | >  investigate more.
 | >
 | 
 | If you tell me how, I can help with debugging. What do you need?

 What I would do is compile snmpd with -g to get symbols and link it statically.
 Then hopefully the core file will show me where this happens. Do you have a
 recipe to cause this on demand?

 christos

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/47714 (snmpd from pkgsrc 2013Q1 crashes with stack overflow)
Date: Thu, 25 May 2017 04:05:54 +0000

 On Fri, Apr 05, 2013 at 12:45:12PM +0000, Christos Zoulas wrote:
  >  On Apr 5, 12:36pm, bbartlomiej@gmail.com (Bartek Krawczyk) wrote:
  >  -- Subject: Re: pkg/47714 (snmpd from pkgsrc 2013Q1 crashes with stack overflow
  >  
  >|> I was able to reproduce this once. It seems that something ends up calling
  >|> itself recursively from a signal handler when things get slow? We need to
  >|> investigate more.
  >|>
  >| 
  >| If you tell me how, I can help with debugging. What do you need?
  >  
  > What I would do is compile snmpd with -g to get symbols and link it
  > statically.  Then hopefully the core file will show me where this
  > happens. Do you have a recipe to cause this on demand?

 What's the state of this issue? Any new data?

 -- 
 David A. Holland
 dholland@netbsd.org

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.