In 5.2.1, on Win2K Pro, I have an agent with code generated from mib2c  with  
create-dataset.
I can run snmpset with 1 PDU fine, as far as I can tell.
But if I run it with multiple PDU's on a table with no rows, the first time 
through it creates a row and sets the values fine.  But the second time, I get 
an error: "Unhandled exception in snmpd.exe: 0xC0000005: Access Violation".
Same thing happens if I create the rows in code.

Here's a stack trace.  Notice the 0xfeeefeee passed to 
netsnmp_table_data_set_find_column().

Looking at handle_set_loop(), the asp-mode is 3, which I think is COMMIT, if 
that helps.

Anyone else seen this?

Thanks,

Phil Gillis

netsnmp_table_data_set_find_column(netsnmp_table_data_set_storage_s * 
0xfeeefeee, unsigned int 3) line 163 + 9 bytes
netsnmp_table_data_set_helper_handler(netsnmp_mib_handler_s * 0x01032c20, 
netsnmp_handler_registration_s * 0x01032758, netsnmp_agent_request_info_s * 
0x012445d8, netsnmp_request_info_s * 0x01244630) line 524 + 15 bytes
netsnmp_call_handler(netsnmp_mib_handler_s * 0x01032c20, 
netsnmp_handler_registration_s * 0x01032758, netsnmp_agent_request_info_s * 
0x012445d8, netsnmp_request_info_s * 0x01244630) line 386 + 19 bytes
netsnmp_call_next_handler(netsnmp_mib_handler_s * 0x01032cd0, 
netsnmp_handler_registration_s * 0x01032758, netsnmp_agent_request_info_s * 
0x012445d8, netsnmp_request_info_s * 0x01244630) line 469 + 24 bytes
netsnmp_table_data_helper_handler(netsnmp_mib_handler_s * 0x01032cd0, 
netsnmp_handler_registration_s * 0x01032758, netsnmp_agent_request_info_s * 
0x012445d8, netsnmp_request_info_s * 0x01244630) line 496 + 21 bytes
netsnmp_call_handler(netsnmp_mib_handler_s * 0x01032cd0, 
netsnmp_handler_registration_s * 0x01032758, netsnmp_agent_request_info_s * 
0x012445d8, netsnmp_request_info_s * 0x01244630) line 386 + 19 bytes
netsnmp_call_next_handler(netsnmp_mib_handler_s * 0x01032d70, 
netsnmp_handler_registration_s * 0x01032758, netsnmp_agent_request_info_s * 
0x012445d8, netsnmp_request_info_s * 0x01244630) line 469 + 24 bytes
table_helper_handler(netsnmp_mib_handler_s * 0x01032d70, 
netsnmp_handler_registration_s * 0x01032758, netsnmp_agent_request_info_s * 
0x012445d8, netsnmp_request_info_s * 0x01244630) line 566 + 21 bytes
netsnmp_call_handler(netsnmp_mib_handler_s * 0x01032d70, 
netsnmp_handler_registration_s * 0x01032758, netsnmp_agent_request_info_s * 
0x012445d8, netsnmp_request_info_s * 0x01244630) line 386 + 19 bytes
netsnmp_call_next_handler(netsnmp_mib_handler_s * 0x01032e10, 
netsnmp_handler_registration_s * 0x01032758, netsnmp_agent_request_info_s * 
0x012445d8, netsnmp_request_info_s * 0x01244630) line 469 + 24 bytes
netsnmp_bulk_to_next_helper(netsnmp_mib_handler_s * 0x01032e10, 
netsnmp_handler_registration_s * 0x01032758, netsnmp_agent_request_info_s * 
0x012445d8, netsnmp_request_info_s * 0x01244630) line 86 + 21 bytes
netsnmp_call_handler(netsnmp_mib_handler_s * 0x01032e10, 
netsnmp_handler_registration_s * 0x01032758, netsnmp_agent_request_info_s * 
0x012445d8, netsnmp_request_info_s * 0x01244630) line 386 + 19 bytes
netsnmp_call_handlers(netsnmp_handler_registration_s * 0x01032758, 
netsnmp_agent_request_info_s * 0x012445d8, netsnmp_request_info_s * 0x01244630) 
line 449 + 24 bytes
handle_var_requests(netsnmp_agent_session_s * 0x01246d90) line 2249 + 33 bytes
handle_set(netsnmp_agent_session_s * 0x01246d90) line 2730 + 9 bytes
handle_set_loop(netsnmp_agent_session_s * 0x01246d90) line 2746 + 9 bytes
handle_pdu(netsnmp_agent_session_s * 0x01246d90) line 3031 + 9 bytes
netsnmp_handle_request(netsnmp_agent_session_s * 0x01246d90, int 0) line 2803 + 
9 bytes
handle_snmp_packet(int 1, snmp_session * 0x012327d8, int 21700, snmp_pdu * 
0x01246c70, void * 0x00000000) line 1659 + 13 bytes
_sess_process_packet(void * 0x01232050, snmp_session * 0x012327d8, 
snmp_internal_session * 0x012320a8, netsnmp_transport_s * 0x01231fc8, void * 
0x01232770, int 16, unsigned char * 0x01233a98, int 109) line 5128 + 30 bytes
_sess_read(void * 0x01232050, fd_set * 0x0012fc58) line 5526 + 37 bytes
snmp_sess_read(void * 0x01232050, fd_set * 0x0012fc58) line 5544 + 13 bytes
snmp_read(fd_set * 0x0012fc58) line 5179 + 13 bytes
receive() line 1154 + 12 bytes
SnmpDaemonMain(int 7, char * * 0x00e24200) line 990
main(int 7, char * * 0x00e24200) line 1372 + 13 bytes
mainCRTStartup() line 338 + 17 bytes
KERNEL32! 7c59893d()

Thanks,

Phil Gillis



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to