Hi Thomas,
Had to get gdb compiled on the box so it took a bit longer than I liked
to get back to you. Here is the backtrace. Recall the snmpwalk that
causes the SEGFAULT is:
% snmpwalk -v1 -cpublic sys01 .1.3.6.1.2.1.25.1
HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (1841499111) 213 days,
3:16:31.11
Timeout: No Response from sys01
Backtrace:
[EMAIL PROTECTED]:/home/snmp/gdb-6.1.1/gdb# ./gdb /usr/local/sbin/snmpd
GNU gdb 6.1.1
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 "sparc-sun-solaris2.9"...
Setting up the environment for debugging gdb.
Function "internal_error" not defined.
Function "info_command" not defined.
.gdbinit:8: Error in sourced command file:
No breakpoint number 0.
(gdb) run -f -C -c /etc/snmpd.conf -Lo
Starting program: /usr/local/sbin/snmpd -f -C -c /etc/snmpd.conf -Lo
NET-SNMP version 5.4
Program received signal SIGSEGV, Segmentation fault.
0xfefc5804 in load_zoneinfo () from /usr/lib/libc.so.1
(gdb) bt
#0 0xfefc5804 in load_zoneinfo () from /usr/lib/libc.so.1
#1 0xfefc44e4 in load_localinfo () from /usr/lib/libc.so.1
#2 0xfefc4364 in ltzset_u () from /usr/lib/libc.so.1
#3 0xfefc3b18 in localtime () from /usr/lib/libc.so.1
#4 0x0010cd30 in date_n_time (when=0xffbfced4, length=0xffbfef54) at
snmp-tc.c:150
#5 0x0007307c in var_hrsys (vp=0xffbfef58, name=0x2cbde0,
length=0x2cbdd0, exact=0,
var_len=0xffbfef54, write_method=0xffbfef50) at
mibgroup/host/hr_system.c:245
#6 0x000c0dfc in netsnmp_old_api_helper (handler=0xa, reginfo=0x2442e8,
reqinfo=0x2b2ff0,
requests=0x2af260) at old_api.c:281
#7 0x000a5ca8 in netsnmp_call_handler (next_handler=0x2438a0,
reginfo=0x2442e8, reqinfo=0x2b2ff0,
requests=0x2af260) at agent_handler.c:435
#8 0x0009d07c in handle_var_requests (asp=0x299360) at
snmp_agent.c:2491
#9 0x0009d91c in handle_getnext_loop (asp=0x299360) at
snmp_agent.c:2924
#10 0x0009e1cc in handle_pdu (asp=0x299360) at snmp_agent.c:3293
#11 0x0009ddfc in netsnmp_handle_request (asp=0x299360, status=0) at
snmp_agent.c:3076
#12 0x0009be34 in handle_snmp_packet (op=1, session=0x2b9b58,
reqid=79870610, pdu=0x2ba428,
magic=0x299360) at snmp_agent.c:1850
#13 0x000ed3f0 in _sess_process_packet (sessp=0x2b2eb8, sp=0x2b9b58,
isp=0x280d80,
transport=0x2ba428, opaque=0x0, olength=20, packetptr=0x2ba568 "0*
\002\001", length=44)
at snmp_api.c:5360
#14 0x000ee014 in _sess_read (sessp=0x2b2eb8, fdset=0x2ba568) at
snmp_api.c:5779
#15 0x000ee5e0 in snmp_sess_read (sessp=0x2b2eb8, fdset=0x2ba568) at
snmp_api.c:5798
#16 0x000ed71c in snmp_read (fdset=0xffbff970) at snmp_api.c:5412
#17 0x00032838 in receive () at snmpd.c:1173
#18 0x000319d8 in main (argc=6, argv=0xffbffb64) at snmpd.c:1014
(gdb)
Thanks,
John
On Fri, 2007-02-16 at 00:48 +0100, Thomas Anders wrote:
> John Clinton wrote:
> > write(3, " 9 : v a c m : c h e c k".., 21) = 21
> > 9:vacm:checkSubtree: write(2, " 9 : v a c m : c h e c k".., 21) = 21
> > Incurred fault #6, FLTBOUNDS %pc = 0xFEFB4478
> > siginfo: SIGSEGV SEGV_MAPERR addr=0x00000000
> > Received signal #11, SIGSEGV [default]
> > siginfo: SIGSEGV SEGV_MAPERR addr=0x00000000
>
> Can you get us a backtrace, please?
> See http://www.net-snmp.org/wiki/index.php/Debugger .
>
>
> +Thomas
>
--
===========================================
John Clinton, Netcool Administrator
Mobile 678.717.8864 Office: 678.689.6589
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders