netsnmp crash in netsnmp_table_array_ext_data_helper_handler

"Gouri Singaraju" <[email protected]>
Newsgroups gmane.network.net-snmp.devel,gmane.network.net-snmp.user
Message-ID <D08E523D6D8ADC4781765A448CEE225961317C@nevmail03.pune.nevisnetworks.com>
Hi,

I am getting a crash in 

While running snmpgetnext -v 2c -t 240 -n "" -c public 192.168.4.246
ifIndex.256  ifNumber.0

 

Here is the backtrace

#0  0x4061aa48 in strcmp () from /opt/Nevis/gcc-v3.2.2/lib/libc.so.6

#1  0x4054f483 in netsnmp_get_list_data (head=0x80bf060, name=0x8058360
"ifTable")

    at data_list.c:159q

#2  0x4002449d in netsnmp_agent_get_list_data (ari=0x8058360,

    name=0x11 <Address 0x11 out of bounds>) at snmp_agent.c:3140

#3  0x402e1724 in process_get_requests (reginfo=0x8058688,
agtreq_info=0x809d7d0,

    requests=0x80be288, tad=0x8058a20, handler_name=0x8058360 "ifTable")

    at table_array_ext_data.c:313

#4  0x402e1500 in netsnmp_table_array_ext_data_helper_handler
(handler=0x80586b8,

    reginfo=0x8058688, agtreq_info=0x809d7d0, requests=0x80be288)

    at table_array_ext_data.c:655

#5  0x4002b425 in netsnmp_call_handler (next_handler=0x8058a20,
reginfo=0x8058688,

    reqinfo=0x809d7d0, requests=0x80be288) at agent_handler.c:314

#6  0x4002c24a in netsnmp_call_next_handler (current=0x8058a20,
reginfo=0x11,

    reqinfo=0x8058360, requests=0x11) at agent_handler.c:397

#7  0x402e61e8 in table_helper_handler (handler=0x8058a38,
reginfo=0x8058688,

    reqinfo=0x809d7d0, requests=0x80be288) at table.c:545

#8  0x4002b425 in netsnmp_call_handler (next_handler=0x8058a38,
reginfo=0x8058688,

    reqinfo=0x809d7d0, requests=0x80be288) at agent_handler.c:314

#9  0x4002c24a in netsnmp_call_next_handler (current=0x8058a38,
reginfo=0x11,

    reqinfo=0x8058360, requests=0x11) at agent_handler.c:397

#10 0x402dc552 in netsnmp_bulk_to_next_helper (handler=0x8058360,
reginfo=0x11,

    reqinfo=0x809d7d0, requests=0x80be288) at bulk_to_next.c:84

#11 0x4002b425 in netsnmp_call_handler (next_handler=0x8058a38,
reginfo=0x8058688,

    reqinfo=0x809d7d0, requests=0x80be288) at agent_handler.c:314

 

both get next and getnext on individual elements is working fine.

 

 

Any pointers to the possible problems are welcome

 

Regards

S. Gouri Sankar
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.