Menu

#2508 snmp 5.5.44 - agentx crash on agentx_realloc_build_varbind()

linux
closed
nobody
None
3
2014-08-24
2013-11-08
No

Hi,
I am working with HCL on a cisco product the uses net-snmp. Recently we are trying to move from rhel 5.1 to rhel 6.4
We are trying to snmpwalk some of the trees in rhel6.4 where it throws an error. After sometime the associated agent crashes with the stack trace attached below. Can you please help us with this error?
As far as i have searched I have not found it in the bug archive. If this has already been solved, please bear with me and point me in the right direction

Please see the details below. Please get back to me in case you need more details

[root@odin-iptv core]# snmpd --version

version of net-snmp / ucd-snmp used :-

NET-SNMP version: 5.5
Web: http://www.net-snmp.org/
Email: net-snmp-coders@lists.sourceforge.net

operating system version :-

Linux 2.6.32-358.el6.x86_64 #1 SMP Tue Jan 29 11:47:41 EST 2013 x86_64 x86_64 x86_64 GNU/Linux

operating system distribution :-

redhat enterprise Linux 6.4

Sample output :-

snmpwalk -v2c -c public localhost snmpUsmMIB
SNMP-USER-BASED-SM-MIB::usmStatsUnsupportedSecLevels.0 = Counter32: 0
SNMP-USER-BASED-SM-MIB::usmStatsNotInTimeWindows.0 = Counter32: 0
SNMP-USER-BASED-SM-MIB::usmStatsUnknownUserNames.0 = Counter32: 0
SNMP-USER-BASED-SM-MIB::usmStatsUnknownEngineIDs.0 = Counter32: 0
SNMP-USER-BASED-SM-MIB::usmStatsWrongDigests.0 = Counter32: 0
SNMP-USER-BASED-SM-MIB::usmStatsDecryptionErrors.0 = Counter32: 0
SNMP-USER-BASED-SM-MIB::usmUserSpinLock.0 = INTEGER: 0
SNMP-USER-BASED-SM-MIB::usmUserSecurityName.".....n..ij${R...."."_internal" = STRING: _internal
SNMP-USER-BASED-SM-MIB::usmUserSecurityName.".....n..ij${R...."."_internal.9.2." = STRING: _internal�9�2
SNMP-USER-BASED-SM-MIB::usmUserSecurityName.".....n..ij${R...."."_internal.9.2." = STRING: _internal�9�2
Error: OID not increasing: SNMP-USER-BASED-SM-MIB::usmUserSecurityName.".....n..ij${R...."."_internal.9.2."

= SNMP-USER-BASED-SM-MIB::usmUserSecurityName.".....n..ij${R...."."_internal.9.2."

snmpwalk -v2c -c public localhost ciscoSyslogMIB
CISCO-SYSLOG-MIB::clogNotificationsSent.0 = Counter32: 0 notifications
CISCO-SYSLOG-MIB::clogNotificationsEnabled.0 = INTEGER: true(1)
CISCO-SYSLOG-MIB::clogMaxSeverity.0 = INTEGER: error(4)
CISCO-SYSLOG-MIB::clogMsgIgnores.0 = Counter32: 0 messages
CISCO-SYSLOG-MIB::clogMsgDrops.0 = Counter32: 0 messages
CISCO-SYSLOG-MIB::clogOriginIDType.0 = INTEGER: hostName(3)
CISCO-SYSLOG-MIB::clogOriginID.0 = STRING: odin-iptv
CISCO-SYSLOG-MIB::clogHistTableMaxLength.0 = INTEGER: 1 entries
CISCO-SYSLOG-MIB::clogHistMsgsFlushed.0 = Counter32: 0 messages
CISCO-SYSLOG-MIB::clogHistFacility.1 = STRING:
Error in packet.
Reason: (genError) A general failure occured
Failed object: CISCO-SYSLOG-MIB::clogHistFacility.1

External Libraries :-

openssl-1.0.0-27.el6.x86_64
rsyslog-5.8.10-6.el6.x86_64
syslog-ng-3.2.5-3.el6.x86_64

stack trace :-

0 0x0806f146 in agentx_realloc_build_varbind (buf=0xff94821c, buf_len=0xff948218, out_len=0xff948214, allow_realloc=1, vp=0x878f4e0, network_order=0) at mibgroup/agentx/protocol.c:465

465 mibgroup/agentx/protocol.c: No such file or directory.
in mibgroup/agentx/protocol.c
Missing separate debuginfos, use: debuginfo-install vqetools-3.8.0-0.x86_64
(gdb) bt

0 0x0806f146 in agentx_realloc_build_varbind (buf=0xff94821c, buf_len=0xff948218, out_len=0xff948214, allow_realloc=1, vp=0x878f4e0, network_order=0) at mibgroup/agentx/protocol.c:465

1 0x08071676 in _agentx_realloc_build (session=0x877f0f0, pdu=0x8790e08, buf=0xff94821c, buf_len=0xff948218, out_len=0xff948214) at mibgroup/agentx/protocol.c:950

2 agentx_realloc_build (session=0x877f0f0, pdu=0x8790e08, buf=0xff94821c, buf_len=0xff948218, out_len=0xff948214) at mibgroup/agentx/protocol.c:1032

3 0x080ac5c6 in _sess_async_send (sessp=0x877eea0, pdu=0x8790e08, callback=0, cb_data=0x0) at snmp_api.c:5074

4 snmp_sess_async_send (sessp=0x877eea0, pdu=0x8790e08, callback=0, cb_data=0x0) at snmp_api.c:5245

5 0x080acdf8 in snmp_send (session=0x877f0f0, pdu=0x8790e08) at snmp_api.c:4919

6 0x0806310a in handle_subagent_response (op=1, session=0x8778080, reqid=31, pdu=0x8790e08, magic=0x878f768) at mibgroup/agentx/subagent.c:607

7 0x080ae5cc in _sess_process_packet (sessp=0x8778030, sp=0x8778080, isp=0x8778048, transport=0x8777fb8, opaque=0x0, olength=0, packetptr=0x877f4d8 "", length=1) at snmp_api.c:5552

8 0x080aedcd in _sess_read (sessp=0x8778030, fdset=0xff9483e8) at snmp_api.c:6079

9 0x080afd19 in snmp_sess_read2 (sessp=0x8778030, fdset=0xff9483e8) at snmp_api.c:6111

10 0x080afdc4 in snmp_read2 (fdset=0xff9483e8) at snmp_api.c:5703

11 0x080afe17 in snmp_read (fdset=0xff9484a0) at snmp_api.c:5693

12 0x08054205 in agent_check_and_process (block=1) at snmp_agent.c:665

13 0x0804ae68 in main (argc=1, argv=0xff9486b4) at ../../snmp/syslog_subagent.c:176

(gdb) where

0 0x0806f146 in agentx_realloc_build_varbind (buf=0xff94821c, buf_len=0xff948218, out_len=0xff948214, allow_realloc=1, vp=0x878f4e0, network_order=0) at mibgroup/agentx/protocol.c:465

1 0x08071676 in _agentx_realloc_build (session=0x877f0f0, pdu=0x8790e08, buf=0xff94821c, buf_len=0xff948218, out_len=0xff948214) at mibgroup/agentx/protocol.c:950

2 agentx_realloc_build (session=0x877f0f0, pdu=0x8790e08, buf=0xff94821c, buf_len=0xff948218, out_len=0xff948214) at mibgroup/agentx/protocol.c:1032

3 0x080ac5c6 in _sess_async_send (sessp=0x877eea0, pdu=0x8790e08, callback=0, cb_data=0x0) at snmp_api.c:5074

4 snmp_sess_async_send (sessp=0x877eea0, pdu=0x8790e08, callback=0, cb_data=0x0) at snmp_api.c:5245

5 0x080acdf8 in snmp_send (session=0x877f0f0, pdu=0x8790e08) at snmp_api.c:4919

6 0x0806310a in handle_subagent_response (op=1, session=0x8778080, reqid=31, pdu=0x8790e08, magic=0x878f768) at mibgroup/agentx/subagent.c:607

7 0x080ae5cc in _sess_process_packet (sessp=0x8778030, sp=0x8778080, isp=0x8778048, transport=0x8777fb8, opaque=0x0, olength=0, packetptr=0x877f4d8 "", length=1) at snmp_api.c:5552

8 0x080aedcd in _sess_read (sessp=0x8778030, fdset=0xff9483e8) at snmp_api.c:6079

9 0x080afd19 in snmp_sess_read2 (sessp=0x8778030, fdset=0xff9483e8) at snmp_api.c:6111

10 0x080afdc4 in snmp_read2 (fdset=0xff9483e8) at snmp_api.c:5703

11 0x080afe17 in snmp_read (fdset=0xff9484a0) at snmp_api.c:5693

12 0x08054205 in agent_check_and_process (block=1) at snmp_agent.c:665

13 0x0804ae68 in main (argc=1, argv=0xff9486b4) at ../../snmp/syslog_subagent.c:176

(gdb) list
460 in mibgroup/agentx/protocol.c
(gdb) q

Thanks and Regards,
Venkat

Discussion

  • Venkateswaran

    Venkateswaran - 2013-11-15

    Hi,
    Any updates on this?

    Regards,
    Venkat

     
  • Bill Fenner

    Bill Fenner - 2013-11-29

    Have you tried a more recent version of net-snmp (e.g., 5.5.2 is the most recent release in the 5.5 train, or 5.7.2 is the current version)?

     
  • Venkateswaran

    Venkateswaran - 2013-12-04

    Thanks for the reply Bill. This was solved after we regenerated a piece of code using the new mib2c component

     
  • Bill Fenner

    Bill Fenner - 2013-12-04
    • status: open --> closed
     
  • Bill Fenner

    Bill Fenner - 2013-12-04

    Reporter fixed his problem:

    This was solved after we regenerated a piece of code using the new mib2c component

     

Log in to post a comment.