From: SourceForge.net <no...@so...> - 2003-02-26 19:19:08
|
Bugs item #675426, was opened at 2003-01-27 05:54 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=675426&group_id=12694 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: snmpd daemon die w/ generating core file Initial Comment: I have the following configuration: - Net-SNMP 5.0.7 - Solaris 7 - Net SNMP source was compiled on the solaris 7. I have 20 machines with solaris 7 and some machines the daemon snmpd dies with a core file dumped in the directory that the daemons was started. The detail is that some machines the daemon is working fine. Thanks, Mauricio mau...@ce... ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2003-02-26 11:28 Message: Logged In: NO I'm sorry Now follows the correct GDB output for net-snmp 5.0.7 thats the binary was downloaded on netsnmp site. Machine name : spos3073 Solaris 7 Net-SNMP 5.0.7 Thank you. Mauricio ======================================================= [spos3073]/etc/rc3.d>chmod 744 /usr/sbin/gdb [spos3073]/etc/rc3.d>gdb /usr/local/sbin/snmpd core GNU gdb 5.2.1 Copyright 2002 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"... Core was generated by `/usr/local/sbin/snmpd'. Program terminated with signal 6, Aborted. Reading symbols from /usr/lib/libdl.so.1...done. Loaded symbols for /usr/lib/libdl.so.1 Reading symbols from /usr/lib/libkvm.so.1...done. Loaded symbols for /usr/lib/libkvm.so.1 Reading symbols from /usr/lib/libkstat.so.1...done. Loaded symbols for /usr/lib/libkstat.so.1 Reading symbols from /usr/lib/libelf.so.1...done. Loaded symbols for /usr/lib/libelf.so.1 Reading symbols from /usr/lib/libm.so.1...done. Loaded symbols for /usr/lib/libm.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/libadm.so.1...done. Loaded symbols for /usr/lib/libadm.so.1 Reading symbols from /usr/lib/libc.so.1...done. Loaded symbols for /usr/lib/libc.so.1 Reading symbols from /usr/lib/libmp.so.2...done. Loaded symbols for /usr/lib/libmp.so.2 Reading symbols from /usr/platform/SUNW,Ultra-250/lib/libc_psr.so.1...done. Loaded symbols for /usr/platform/SUNW,Ultra-250/lib/libc_psr.so.1 Reading symbols from /usr/lib/nss_files.so.1...done. Loaded symbols for /usr/lib/nss_files.so.1 #0 0xff1981cc in _libc_kill () from /usr/lib/libc.so.1 (gdb) where #0 0xff1981cc in _libc_kill () from /usr/lib/libc.so.1 #1 0xff139450 in abort () from /usr/lib/libc.so.1 #2 0x00061724 in var_hrswrun (vp=0xffbeeb68, name=0x1323e8, length=0x150, exact=-14993096, var_len=0xffbeeb64, write_method=0xff198110) at host/hr_swrun.c:512 #3 0x000754d8 in netsnmp_old_api_helper (handler=0xc, reginfo=0x1d57b8, reqinfo=0x223d98, requests=0x1f0800) at old_api.c:288 #4 0x00021efc in netsnmp_call_next_handler (current=0x1d3d68, reginfo=0x1d57b8, reqinfo=0x223d98, requests=0x1f0800) at agent_handler.c:329 #5 0x00072f88 in netsnmp_bulk_to_next_helper (handler=0x1d3d88, reginfo=0x1d57b8, reqinfo=0x223d98, requests=0x1f0800) at bulk_to_next.c:84 #6 0x000211dc in netsnmp_call_handlers (reginfo=0x1d57b8, reqinfo=0x223d98, requests=0x1f0800) at agent_handler.c:298 #7 0x00019e50 in handle_var_requests (asp=0x1ebbe0) at snmp_agent.c:2002 #8 0x0001b0c0 in handle_pdu (asp=0x1ebbe0) at snmp_agent.c:2706 #9 0x0001acd4 in netsnmp_handle_request (asp=0x1ebbe0, status=0) at snmp_agent.c:2557 #10 0x000190d4 in handle_snmp_packet (op=1, session=0x1ef4b8, reqid=875345468, pdu=0x1ebb48, magic=0x1ebbe0) at snmp_agent.c:1457 #11 0x0009ba54 in _sess_process_packet (sessp=0x229380, sp=0x1ef4b8, isp=0x1f7f30, transport=0x1ebb48, opaque=0x0, olength=16, packetptr=0x22a960 "0A\002\001", length=67) at snmp_api.c:5038 #12 0x0009c9b4 in _sess_read (sessp=0x229380, fdset=0x22a960) at snmp_api.c:5436 #13 0x0009c9dc in snmp_sess_read (sessp=0x229380, fdset=0xffbef608) at snmp_api.c:5455 #14 0x0009bbb8 in snmp_read (fdset=0xffbef608) at snmp_api.c:5090 #15 0x000169bc in receive () at snmpd.c:1069 #16 0x00015f8c in main (argc=0, argv=0xffbefc0c) at snmpd.c:913 (gdb) quit [spos3073]/etc/rc3.d> ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2003-02-26 11:26 Message: Logged In: NO I'm sorry Now follows the correct GDB output for net-snmp 5.0.7 thats the binary was downloaded on netsnmp site. Machine name : spos3073 Solaris 7 Net-SNMP 5.0.7 Thank you. Mauricio ======================================================= [spos3073]/etc/rc3.d>chmod 744 /usr/sbin/gdb [spos3073]/etc/rc3.d>gdb /usr/local/sbin/snmpd core GNU gdb 5.2.1 Copyright 2002 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"... Core was generated by `/usr/local/sbin/snmpd'. Program terminated with signal 6, Aborted. Reading symbols from /usr/lib/libdl.so.1...done. Loaded symbols for /usr/lib/libdl.so.1 Reading symbols from /usr/lib/libkvm.so.1...done. Loaded symbols for /usr/lib/libkvm.so.1 Reading symbols from /usr/lib/libkstat.so.1...done. Loaded symbols for /usr/lib/libkstat.so.1 Reading symbols from /usr/lib/libelf.so.1...done. Loaded symbols for /usr/lib/libelf.so.1 Reading symbols from /usr/lib/libm.so.1...done. Loaded symbols for /usr/lib/libm.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/libadm.so.1...done. Loaded symbols for /usr/lib/libadm.so.1 Reading symbols from /usr/lib/libc.so.1...done. Loaded symbols for /usr/lib/libc.so.1 Reading symbols from /usr/lib/libmp.so.2...done. Loaded symbols for /usr/lib/libmp.so.2 Reading symbols from /usr/platform/SUNW,Ultra-250/lib/libc_psr.so.1...done. Loaded symbols for /usr/platform/SUNW,Ultra-250/lib/libc_psr.so.1 Reading symbols from /usr/lib/nss_files.so.1...done. Loaded symbols for /usr/lib/nss_files.so.1 #0 0xff1981cc in _libc_kill () from /usr/lib/libc.so.1 (gdb) where #0 0xff1981cc in _libc_kill () from /usr/lib/libc.so.1 #1 0xff139450 in abort () from /usr/lib/libc.so.1 #2 0x00061724 in var_hrswrun (vp=0xffbeeb68, name=0x1323e8, length=0x150, exact=-14993096, var_len=0xffbeeb64, write_method=0xff198110) at host/hr_swrun.c:512 #3 0x000754d8 in netsnmp_old_api_helper (handler=0xc, reginfo=0x1d57b8, reqinfo=0x223d98, requests=0x1f0800) at old_api.c:288 #4 0x00021efc in netsnmp_call_next_handler (current=0x1d3d68, reginfo=0x1d57b8, reqinfo=0x223d98, requests=0x1f0800) at agent_handler.c:329 #5 0x00072f88 in netsnmp_bulk_to_next_helper (handler=0x1d3d88, reginfo=0x1d57b8, reqinfo=0x223d98, requests=0x1f0800) at bulk_to_next.c:84 #6 0x000211dc in netsnmp_call_handlers (reginfo=0x1d57b8, reqinfo=0x223d98, requests=0x1f0800) at agent_handler.c:298 #7 0x00019e50 in handle_var_requests (asp=0x1ebbe0) at snmp_agent.c:2002 #8 0x0001b0c0 in handle_pdu (asp=0x1ebbe0) at snmp_agent.c:2706 #9 0x0001acd4 in netsnmp_handle_request (asp=0x1ebbe0, status=0) at snmp_agent.c:2557 #10 0x000190d4 in handle_snmp_packet (op=1, session=0x1ef4b8, reqid=875345468, pdu=0x1ebb48, magic=0x1ebbe0) at snmp_agent.c:1457 #11 0x0009ba54 in _sess_process_packet (sessp=0x229380, sp=0x1ef4b8, isp=0x1f7f30, transport=0x1ebb48, opaque=0x0, olength=16, packetptr=0x22a960 "0A\002\001", length=67) at snmp_api.c:5038 #12 0x0009c9b4 in _sess_read (sessp=0x229380, fdset=0x22a960) at snmp_api.c:5436 #13 0x0009c9dc in snmp_sess_read (sessp=0x229380, fdset=0xffbef608) at snmp_api.c:5455 #14 0x0009bbb8 in snmp_read (fdset=0xffbef608) at snmp_api.c:5090 #15 0x000169bc in receive () at snmpd.c:1069 #16 0x00015f8c in main (argc=0, argv=0xffbefc0c) at snmpd.c:913 (gdb) quit [spos3073]/etc/rc3.d> ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2003-02-19 09:06 Message: Logged In: NO Follows the gdb output from different host named "spos3073", this host is running net-snmp version 5.0.7 Solaris 7, this binary was downloaded on the Net-SNMP download page. [spow1027]/export/home/mauricio/snmp/spos3073>gdb snmpd core GNU gdb 5.2.1 Copyright 2002 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"...snmpd: No such file or directory. Core was generated by `/usr/local/sbin/snmpd'. Program terminated with signal 6, Aborted. #0 0xff1981cc in ?? () (gdb) where #0 0xff1981cc in ?? () #1 0x00061724 in ?? () #2 0x000754d8 in ?? () #3 0x00021efc in ?? () #4 0x00072f88 in ?? () #5 0x000211dc in ?? () #6 0x00019e50 in ?? () #7 0x0001b0c0 in ?? () #8 0x0001acd4 in ?? () #9 0x000190d4 in ?? () #10 0x0009ba54 in ?? () #11 0x0009c9b4 in ?? () #12 0x0009c9dc in ?? () #13 0x0009bbb8 in ?? () #14 0x000169bc in ?? () #15 0x00015f8c in ?? () (gdb) ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2003-02-17 05:42 Message: Logged In: NO Hi, Thanks for your response. Follows the gdb core output from 3 hosts, I tested different versions of net-snmp but the problem still occurring. Mauricio. ============================================================== The first output is the host named spos3073 and is running net-snmp version 5.0.7. This version is the Solaris 7 binary downloaded in net-snmp download page. [spow1027]/export/home/mauricio/snmp/spos3073>gdb snmpd core GNU gdb 5.2.1 Copyright 2002 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"...snmpd: No such file or directory. Core was generated by `/usr/local/sbin/snmpd'. Program terminated with signal 6, Aborted. #0 0xff1981cc in ?? () (gdb) where #0 0xff1981cc in ?? () #1 0x00061724 in ?? () #2 0x000754d8 in ?? () #3 0x00021efc in ?? () #4 0x00072f88 in ?? () #5 0x000211dc in ?? () #6 0x00019e50 in ?? () #7 0x0001b0c0 in ?? () #8 0x0001acd4 in ?? () #9 0x000190d4 in ?? () #10 0x0009ba54 in ?? () #11 0x0009c9b4 in ?? () #12 0x0009c9dc in ?? () #13 0x0009bbb8 in ?? () #14 0x000169bc in ?? () #15 0x00015f8c in ?? () (gdb) ============================================================== Follows two different output from spos3075 host that is running net-snmp version 4.2.5, I compiled this source code on Solaris 7. First core [spow1027]/export/home/mauricio/snmp/spos3075>gdb snmpd core GNU gdb 5.2.1 Copyright 2002 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"...snmpd: No such file or directory. Core was generated by `/usr/local/Net-SNMP/sbin/snmpd'. Program terminated with signal 6, Aborted. #0 0xfef9a538 in ?? () (gdb) where #0 0xfef9a538 in ?? () #1 0xff2bb484 in ?? () #2 0xff365984 in ?? () #3 0xff366068 in ?? () #4 0xff3652d0 in ?? () #5 0xff3651b0 in ?? () #6 0xff3650a0 in ?? () #7 0xff36498c in ?? () #8 0xff231a8c in ?? () #9 0xff231ae8 in ?? () #10 0xff231044 in ?? () #11 0x00013344 in ?? () #12 0x00012df4 in ?? () (gdb) Second core [spow1027]/export/home/mauricio/snmp/spos3075>gdb snmpd core2 GNU gdb 5.2.1 Copyright 2002 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"...snmpd: No such file or directory. Core was generated by `/usr/local/Net-SNMP/sbin/snmpd'. Program terminated with signal 6, Aborted. #0 0xfef9a538 in ?? () (gdb) where #0 0xfef9a538 in ?? () #1 0xff2bb484 in ?? () #2 0xff365984 in ?? () #3 0xff366068 in ?? () #4 0xff3652d0 in ?? () #5 0xff3651b0 in ?? () #6 0xff3650a0 in ?? () #7 0xff36498c in ?? () #8 0xff231a8c in ?? () #9 0xff231ae8 in ?? () #10 0xff231044 in ?? () #11 0x00013344 in ?? () #12 0x00012df4 in ?? () (gdb) ============================================================== The third output is from host named spos3074 that is running version 4.2.5, same version of host spos3075. [spow1027]/export/home/mauricio/snmp/spos3074>gdb snmpd core GNU gdb 5.2.1 Copyright 2002 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"...snmpd: No such file or directory. Core was generated by `/usr/local/Net-SNMP/sbin/snmpd'. Program terminated with signal 6, Aborted. #0 0xff0181cc in ?? () (gdb) where #0 0xff0181cc in ?? () #1 0xff2bb484 in ?? () #2 0xff365984 in ?? () #3 0xff366068 in ?? () #4 0xff3652d0 in ?? () #5 0xff3651b0 in ?? () #6 0xff3650a0 in ?? () #7 0xff36498c in ?? () #8 0xff231a8c in ?? () #9 0xff231ae8 in ?? () #10 0xff231044 in ?? () #11 0x00013344 in ?? () #12 0x00012df4 in ?? () (gdb) ---------------------------------------------------------------------- Comment By: Wes Hardaker (hardaker) Date: 2003-02-06 11:36 Message: Logged In: YES user_id=76242 Can you run gdb on it as follows: gdb snmpd core ... gdb> where And submit the output of the where command? Also, in the future this wasn't a patch so I'm moving it to the bug database. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=675426&group_id=12694 |