From: <no...@so...> - 2001-10-29 21:15:34
|
Bugs item #412982, was opened at 2001-04-01 19:57 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=112694&aid=412982&group_id=12694 Category: None Group: None Status: Closed Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Linux 2.4.2 can't run snmp 4.2-4 src Initial Comment: We had complied ucd-snmp-4.2-3.src.rpm in RH 7.0 kernel 2.2.16 and run without problem. However after we upgraded the kernel into 2.4.2, we can recomplied the ucd-snmp without problem and started the daemon. While we try to use 'snmpwalk localhost public system'. The command end with : ..... system.sysORTable.sysOREntry.sysORUpTime.8 = Timeticks: (18) 0:00:00.18 system.sysORTable.sysOREntry.sysORUpTime.9 = Timeticks: (18) 0:00:00.18 Timeout: No Response from localhost Inside the /var/log/messages we could find : .... Apr 2 10:44:28 linux3 snmpd: snmpd startup succeeded Apr 2 10:45:34 linux3 kernel: end_request: I/O error, dev 02:00 (floppy), sector 0 And the snmpd was died. We had tried the whole setting in Kernel 2.4.3 and get the same result. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2001-10-29 13:15 Message: Logged In: NO It doesn't actually crash - it just gets hung up see also http://www.geocrawler.com/archives/3/61/1999/7/50/2458462/ (NOT only for SMP) gdb /usr/sbin/snmpd -c /etc/snmpd.conf GNU gdb 5.0rh-5 Red Hat Linux 7.1 Copyright 2001 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 "i386-redhat-linux"...(no debugging symbols found)... "/etc/snmpd.conf" is not a core dump: File format not recognized (gdb) r -f -L Starting program: /usr/sbin/snmpd -f -L (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)... UCD-SNMP version 4.2.2 bt (no debugging symbols found)... Program received signal SIGINT, Interrupt. 0x402fcefd in __libc_close () from /lib/i686/libc.so.6 (gdb) bt #0 0x402fcefd in __libc_close () from /lib/i686/libc.so.6 #1 0x40065f4b in Get_Next_HR_Partition () at eval.c:41 #2 0x40065a85 in header_hrpartition () at eval.c:41 #3 0x40065cf4 in var_hrpartition () at eval.c:41 #4 0x4002ebba in search_subtree_vars () at eval.c:41 #5 0x4002f2dc in getStatPtr () at eval.c:41 #6 0x4002e485 in handle_one_var () at eval.c:41 #7 0x4002e318 in handle_var_list () at eval.c:41 #8 0x4002e253 in handle_next_pass () at eval.c:41 #9 0x4002dcd9 in handle_snmp_packet () at eval.c:41 #10 0x400e5a3f in _sess_read () at eval.c:41 #11 0x400e5ab0 in snmp_sess_read () at eval.c:41 #12 0x400e4e6a in snmp_read () at eval.c:41 #13 0x0804aaf6 in strcpy () at ../sysdeps/generic/strcpy.c:31 #14 0x0804a72f in strcpy () at ../sysdeps/generic/strcpy.c:31 #15 0x4023f177 in __libc_start_main (main=0x8049bd0 <strcpy+836>, argc=3, ubp_av=0xbffffa3c, init=0x8049424 <_init>, fini=0x804b0d0 <_fini>, rtld_fini=0x4000e184 <_dl_fini>, stack_end=0xbffffa2c) at ../sysdeps/generic/libc-start.c:129 ---------------------------------------------------------------------- Comment By: Wes Hardaker (hardaker) Date: 2001-04-04 08:01 Message: Logged In: YES user_id=76242 Can you run snmpd in a debugger to find out where it's dying and give us a backtrace? IE, try: gdb snmpd gdb> r -f -L [crash after you run snmpwalk] gdb> bt ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=112694&aid=412982&group_id=12694 |