-- On Mon, 4/27/09, Wes Hardaker <[email protected]> wrote:

This output though better than nothing is still a bit confusing.  Any
chance you could run your core file through a real debugging analysis
like GDB. 

 
 
Dear Wes,
 
Thank you very much for your assistance. As per your request, I am submitting 
the debugging information of the core dump done with gdb tool. Below is the 
output 
 
# gdb /usr/local/sbin/snmpd ./core.snmpd.20701
This GDB was configured as "sparc-sun-solaris2.10"...
Reading symbols from /usr/local/lib/libnetsnmpagent.so.15...done.
Loaded symbols for /usr/local/lib/libnetsnmpagent.so.15
Reading symbols from /usr/local/lib/libnetsnmphelpers.so.15...done.
Loaded symbols for /usr/local/lib/libnetsnmphelpers.so.15
Reading symbols from /usr/local/lib/libnetsnmpmibs.so.15...done.
Loaded symbols for /usr/local/lib/libnetsnmpmibs.so.15
Reading symbols from /usr/lib/libkvm.so.1...done.
Loaded symbols for /usr/lib/libkvm.so.1
Reading symbols from /usr/local/lib/libnetsnmp.so.15...done.
Loaded symbols for /usr/local/lib/libnetsnmp.so.15
Reading symbols from /usr/lib/libadm.so.1...done.
Loaded symbols for /usr/lib/libadm.so.1
Reading symbols from /usr/lib/libkstat.so.1...done.
Loaded symbols for /usr/lib/libkstat.so.1
Reading symbols from /usr/local/ssl/lib/libcrypto.so.0.9.8...done.
Loaded symbols for /usr/local/ssl/lib/libcrypto.so.0.9.8
Reading symbols from /usr/lib/libelf.so.1...done.
Loaded symbols for /usr/lib/libelf.so.1
Reading symbols from /usr/lib/libnsl.so.1...done.
Loaded symbols for /usr/lib/libnsl.so.1
Reading symbols from /usr/lib/libsocket.so.1...done.
Loaded symbols for /usr/lib/libsocket.so.1
Reading symbols from /usr/lib/libc.so.1...done.
Loaded symbols for /usr/lib/libc.so.1
Reading symbols from /usr/local/lib/libgcc_s.so.1...done.
Loaded symbols for /usr/local/lib/libgcc_s.so.1
Reading symbols from /lib/libdl.so.1...
warning: Lowest section in /lib/libdl.so.1 is .hash at 000000b4
done.
Loaded symbols for /lib/libdl.so.1
Reading symbols from /platform/sun4v/lib/libc_psr.so.1...done.
Loaded symbols for /platform/SUNW,SPARC-Enterprise-T5220/lib/libc_psr.so.1
Reading symbols from /lib/ld.so.1...done.
Loaded symbols for /lib/ld.so.1
Core was generated by `/usr/local/sbin/snmpd'.
Program terminated with signal 11, Segmentation fault.
#0  0xfed31d50 in strlen () from /usr/lib/libc.so.1
-----------------------------------------------------------------------------------------------------
BACKTRACE
(gdb) bt
#0  0xfed31d50 in strlen () from /usr/lib/libc.so.1
#1  0xff26bdfc in var_hrswinst () from /usr/local/lib/libnetsnmpmibs.so.15
#2  0xff30dae4 in netsnmp_old_api_helper () from 
/usr/local/lib/libnetsnmphelpers.so.15
#3  0xff35a094 in netsnmp_call_handler () from 
/usr/local/lib/libnetsnmpagent.so.15
#4  0xff34f27c in handle_var_requests () from 
/usr/local/lib/libnetsnmpagent.so.15
#5  0xff34fec0 in handle_pdu () from /usr/local/lib/libnetsnmpagent.so.15
#6  0xff351188 in netsnmp_handle_request () from 
/usr/local/lib/libnetsnmpagent.so.15
#7  0xff351744 in handle_snmp_packet () from 
/usr/local/lib/libnetsnmpagent.so.15
#8  0xff13d2bc in _sess_process_packet () from /usr/local/lib/libnetsnmp.so.15
#9  0xff13e49c in _sess_read () from /usr/local/lib/libnetsnmp.so.15
#10 0xff13ee54 in snmp_sess_read () from /usr/local/lib/libnetsnmp.so.15
#11 0xff13eeb8 in snmp_read () from /usr/local/lib/libnetsnmp.so.15
#12 0x00013fcc in main ()
 
Below is another output of debug. I changed the executable from snmpd to 
snmpwalk and following below is the output:
# gdb /usr/local/bin/snmpwalk ./core.snmpd.20701
warning: core file may not match specified executable file.
Core was generated by `/usr/local/sbin/snmpd'.
Program terminated with signal 11, Segmentation fault.
#0  0xfed31d50 in _rt_boot () from /usr/lib/ld.so.1

Backtrace
(gdb) bt
#0  0xfed31d50 in _rt_boot () from /usr/lib/ld.so.1
#1  0xff26bdfc in ?? ()
#2  0xff26bdfc in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
 
Hope this helps. By the way I'm using the latest net-snmp (5.4.2.1).
 
Thank you very much and I greatly appreciate your assistance.
 
Regards,
A.Sundaram


      
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to