From owner-freebsd-sparc64@FreeBSD.ORG Fri Jul 6 02:00:10 2007 Return-Path: X-Original-To: freebsd-sparc64@hub.freebsd.org Delivered-To: freebsd-sparc64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D986F16A469 for ; Fri, 6 Jul 2007 02:00:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id BA9D213C459 for ; Fri, 6 Jul 2007 02:00:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l6620AR4040988 for ; Fri, 6 Jul 2007 02:00:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l6620ARa040987; Fri, 6 Jul 2007 02:00:10 GMT (envelope-from gnats) Resent-Date: Fri, 6 Jul 2007 02:00:10 GMT Resent-Message-Id: <200707060200.l6620ARa040987@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-sparc64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Scott Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CF2CB16A41F for ; Fri, 6 Jul 2007 01:55:32 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id B3DB913C4C8 for ; Fri, 6 Jul 2007 01:55:32 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l661tWSF016413 for ; Fri, 6 Jul 2007 01:55:32 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l661tWoP016353; Fri, 6 Jul 2007 01:55:32 GMT (envelope-from nobody) Message-Id: <200707060155.l661tWoP016353@www.freebsd.org> Date: Fri, 6 Jul 2007 01:55:32 GMT From: Scott To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: sparc64/114349: When executing snmpd it immediately stops with a segmentation fault in disman/event/mteObjects.c X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jul 2007 02:00:11 -0000 >Number: 114349 >Category: sparc64 >Synopsis: When executing snmpd it immediately stops with a segmentation fault in disman/event/mteObjects.c >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-sparc64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jul 06 02:00:10 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Scott >Release: FreeBSD 6.2-STABLE >Organization: >Environment: FreeBSD server-02.thismonkey.com 6.2-STABLE-200706 FreeBSD 6.2-STABLE-200706 #0: Thu Jun 7 11:49:55 UTC 2007 root@edmunds.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC sparc64 >Description: When executing /usr/local/sbin/snmpd -f -a -p /var/run/snmpd.pid -c /usr/local/share/snmp/snmpd.conf the daemo n immediately stops with a segmentation fault. I have compiled with WITH_DEBUG=YES, and run the deamon under the gdb debugger: [begin cut-and-paste] 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 "sparc64-marcel-freebsd"... (gdb) run -f -a -p /var/run/snmpd.pid -c /usr/local/share/snmp/snmpd.conf Starting program: /usr/local/sbin/snmpd -f -a -p /var/run/snmpd.pid -c /usr/local/share/snmp/snmpd.conf Program received signal SIGSEGV, Segmentation fault. 0x0000000040408320 in mteObjects_createEntry (owner=0x40425fb0 "_snmpd", oname=0x40425fb8 "_triggerFire", index=2, flags=20) at disman/event/mteObjects.c:164 164 row->oid_index.oids[row->oid_index.len]++; (gdb) bt #0 0x0000000040408320 in mteObjects_createEntry (owner=0x40425fb0 "_snmpd", oname=0x40425fb8 "_triggerFire", index=2, flags=20) at disman/event/mteObjects.c:164 #1 0x00000000404084a0 in mteObjects_addOID (owner=0x40425fb0 "_snmpd", oname=0x40425fb8 "_triggerFire", index=2, oid_name_buf=0x40425fe0 ".1.3.6.1.2.1.88.2.1.2", wild=0) at disman/event/mteObjects.c:207 #2 0x0000000040407d38 in _init_default_mteObject (oname=0x40425fb8 "_triggerFire", object=0x40425fe0 ".1.3.6.1.2.1.88.2.1.2", index=2, wcard=0) at disman/event/mteObjects.c:50 #3 0x0000000040407e28 in _init_default_mteObject_lists (majorID=0, minorID=0, serverargs=0x0, clientarg=0x0) at disman/event/mteObjects.c:67 #4 0x00000000409ad43c in snmp_call_callbacks (major=0, minor=0, caller_arg=0x0) at callback.c:326 #5 0x0000000040998a0c in read_configs () at read_config.c:860 #6 0x000000004096094c in init_snmp (type=0x1078c8 "snmpd") at snmp_api.c:839 #7 0x00000000001052c4 in main (argc=7, argv=0x7fdffffeb98) at snmpd.c:906 [end cut-and-paste] The snmpd.conf file is: [begin cut-and-paste] syslocation "somewhere" syscontact bit-bucket@thismonkey.com sysservices 76 rocommunity hidden rwcommunity hidden trap2sink mail-01 public [end cut-and-paste] >How-To-Repeat: start snmpd, either by hand with "/usr/local/sbin/snmpd -f -a -p /var/run/snmpd.pid -c /usr/local/share/snmp/s nmpd.conf" or with "/usr/local/etc/rc.d/snmpd start" >Fix: Not known. >Release-Note: >Audit-Trail: >Unformatted: X-REMOTE_ADDR-Is-Open-Proxy: Maybe X-Send-Pr-Version: www-3.0