5.3.1.pre3 agent coring when walking proxied Squid MIB
John Hardin <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
I am getting snmpd cores each time I walk the Squid MIB, which I am proxying with the Net-SNMP agent using the following line in snmpd.conf. proxy -v 1 -c public 127.0.0.1:3401 .1.3.6.1.4.1.3495 I have recompiled the agent to add -g to the cflags so you can see the calling parameters in the following gdb backtrace. #0 0x000000370062f3b0 in raise () from /lib64/libc.so.6 #1 0x0000003700630860 in abort () from /lib64/libc.so.6 #2 0x0000003700664caf in __libc_message () from /lib64/libc.so.6 #3 0x000000370066a94e in _int_free () from /lib64/libc.so.6 #4 0x000000370066ae7e in free () from /lib64/libc.so.6 #5 0x00002aaaaad0d77e in netsnmp_free_delegated_cache (dcache=0x61df40) at agent_handler.c:732 #6 0x00002aaaaaaf1446 in proxy_got_response (operation=1, sess=0x5fb530, reqid=1132777213, pdu=0x60c2f0, cb_data=0x61df40) at ucd-snmp/proxy.c:646 #7 0x00002aaaaaf97f20 in _sess_process_packet (sessp=0x5fb490, sp=0x5fb530, isp=0x5fb4c0, transport=0x5fb830, opaque=0x60c290, olength=16, packetptr=0x60c690 "0\202", length=59) at snmp_api.c:5253 #8 0x00002aaaaaf9974a in _sess_read (sessp=0x5fb490, fdset=0x7fffff882e30) at snmp_api.c:5753 #9 0x00002aaaaaf9979b in snmp_sess_read (sessp=0x5fb490, fdset=0x7fffff882e30) at snmp_api.c:5772 #10 0x00002aaaaaf982d0 in snmp_read (fdset=0x7fffff882e30) at snmp_api.c:5392 #11 0x0000000000404274 in receive () at snmpd.c:1152 #12 0x0000000000403c69 in main (argc=7, argv=0x7fffff8830d8) at snmpd.c:1001 The core was produced when I did a getnext against the last OID in the Squid MIB: snmpgetnext -c public -v2c 192.168.2.12 \ SQUID-MIB::cacheClientIcpHitKb.127.0.0.1 Looks to me like the agent is passing a bad handle to free(). The agent is compiled for a 64-bit athelon processor and is running on a 2.6.14 Linux kernel. Has anyone else seen this behavior? -John _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users