Hi Robert,
You should find attached a couple of files with the debug you requested.
File "crashMultiRow-patch1.txt" contains the debug when I tried to add
multiple rows to the table with 1 snmpset command:
snmpset -v1 -c public localhost elemCommandParameterRowStatus.1 i "4" \
elemCommandParameterKey.1 s "Key_1" \
elemCommandParameterValue.1 s "value_1"
\
elemCommandParameterCmdId.1 u "1234" \
elemCommandParameterRowStatus.2 i "4" \
elemCommandParameterKey.2 s "Key_2" \
elemCommandParameterValue.2 s "value_2"
\
elemCommandParameterCmdId.2 u "9876"
File "singleRow-patch1.txt" shows the debug when I add only 1 row with
the snmpset command (this is successful). I don't know if this is
helpful to you but I thought I would include it as it shows the normal
route through the code when I successfully add a row.
You may want to know that the table is empty when I execute the snmpset
commands above.
Thanks for your help
Regards
Graeme.
> -----Original Message-----
> From: Robert Story [mailto:[EMAIL PROTECTED]
> Sent: 02 August 2006 12:57
> To: Graeme Wilson
> Cc: [email protected]
> Subject: Re: add multiple rows with 1 set - crash
>
> On Tue, 1 Aug 2006 10:07:14 +0100 Graeme wrote:
> GW> Unfortunately I didn't get any attached patch - could you try
> GW> resending it to me and I'll give it a go.
>
> Sorry.. here it is..
>
table_container: Mode SET_RESERVE1, Got request:
table_container: data_lookup
oid:SNMPv2-SMI::enterprises.162.1.1.1.1.6.2.4.1.2.1
table_container: no row found
table_container: data_lookup
oid:SNMPv2-SMI::enterprises.162.1.1.1.1.6.2.4.1.3.1
table_container: no row found
table_container: data_lookup
oid:SNMPv2-SMI::enterprises.162.1.1.1.1.6.2.4.1.4.1
table_container: no row found
table_container: data_lookup
oid:SNMPv2-SMI::enterprises.162.1.1.1.1.6.2.4.1.5.1
table_container: no row found
table_container: data_lookup
oid:SNMPv2-SMI::enterprises.162.1.1.1.1.6.2.4.1.2.2
table_container: no row found
table_container: data_lookup
oid:SNMPv2-SMI::enterprises.162.1.1.1.1.6.2.4.1.3.2
table_container: no row found
table_container: data_lookup
oid:SNMPv2-SMI::enterprises.162.1.1.1.1.6.2.4.1.4.2
table_container: no row found
table_container: data_lookup
oid:SNMPv2-SMI::enterprises.162.1.1.1.1.6.2.4.1.5.2
table_container: no row found
internal:elemCommandParameterTable:_mfd_elemCommandParameterTable_pre_request:
called
verbose:elemCommandParameterTable:elemCommandParameterTable_pre_request: called
internal:elemCommandParameterTable:_mfd_elemCommandParameterTable_object_lookup:
called
internal:elemCommandParameterTable:_mfd_elemCommandParameterTable_rowreq_from_index:
called
verbose:elemCommandParameterTable:elemCommandParameterTable_index_from_oid:
called
internal:elemCommandParameterTable:elemCommandParameterTable_allocate_rowreq_ctx:
called
verbose:elemCommandParameterTable:elemCommandParameterTable_rowreq_ctx_init:
called
internal:elemCommandParameterTable:_elemCommandParameterTable_check_indexes:
called
verbose:elemCommandParameterTable:elemCommandParameterTable_elemActiveCmdIndex_check_index:
called
verbose:elemCommandParameterTable:elemCommandParameterTable_validate_index:
called
table_container:row_insert: primary request oid:SNMPv2-SMI::zeroDotZero.1
table_container:row_insert: request[0] oid:SNMPv2-SMI::zeroDotZero.1
table_container:row_insert: matched!table_container:row_insert:
request[1] oid:SNMPv2-SMI::zeroDotZero.1
table_container:row_insert: matched!table_container:row_insert:
request[2] oid:SNMPv2-SMI::zeroDotZero.1
table_container:row_insert: matched!table_container:row_insert:
request[3] oid:SNMPv2-SMI::zeroDotZero.1
verbose:elemCommandParameterTable:elemCommandParameterTable_row_prep: called
internal:elemCommandParameterTable:_mfd_elemCommandParameterTable_check_objects:
called
internal:elemCommandParameterTable:_elemCommandParameterTable_check_column:
called for 2
verbose:elemCommandParameterTable:elemCommandParameterRowStatus_check_value:
called
internal:elemCommandParameterTable:_elemCommandParameterTable_check_column:
called for 3
verbose:elemCommandParameterTable:elemCommandParameterKey_check_value: called
internal:elemCommandParameterTable:_elemCommandParameterTable_check_column:
called for 4
verbose:elemCommandParameterTable:elemCommandParameterValue_check_value: called
internal:elemCommandParameterTable:_elemCommandParameterTable_check_column:
called for 5
verbose:elemCommandParameterTable:elemCommandParameterId_check_value: called
internal:elemCommandParameterTable:_mfd_elemCommandParameterTable_pre_request:
called
internal:elemCommandParameterTable: skipping additional pre_request
internal:elemCommandParameterTable:_mfd_elemCommandParameterTable_object_lookup:
called
internal:elemCommandParameterTable:_mfd_elemCommandParameterTable_rowreq_from_index:
called
verbose:elemCommandParameterTable:elemCommandParameterTable_index_from_oid:
called
internal:elemCommandParameterTable:elemCommandParameterTable_allocate_rowreq_ctx:
called
verbose:elemCommandParameterTable:elemCommandParameterTable_rowreq_ctx_init:
called
internal:elemCommandParameterTable:_elemCommandParameterTable_check_indexes:
called
verbose:elemCommandParameterTable:elemCommandParameterTable_elemActiveCmdIndex_check_index:
called
verbose:elemCommandParameterTable:elemCommandParameterTable_validate_index:
called
table_container:row_insert: primary request oid:SNMPv2-SMI::zeroDotZero.2
table_container:row_insert: request[0] oid:SNMPv2-SMI::zeroDotZero.1
table_container:row_insert: request[1] oid:SNMPv2-SMI::zeroDotZero.1
table_container:row_insert: request[2] oid:SNMPv2-SMI::zeroDotZero.1
table_container:row_insert: request[3] oid:SNMPv2-SMI::zeroDotZero.1
verbose:elemCommandParameterTable:elemCommandParameterTable_row_prep: called
internal:elemCommandParameterTable:_mfd_elemCommandParameterTable_check_objects:
called
netsnmp_assert ((void *)0) != rowreq_ctx failed
elemCommanding/elemCommandParameterTable_interface.c:1130
_mfd_elemCommandParameterTable_check_objects()
internal:elemCommandParameterTable:_elemCommandParameterTable_check_column:
called for 2
netsnmp_assert ((void *)0) != rowreq_ctx failed
elemCommanding/elemCommandParameterTable_interface.c:968
_elemCommandParameterTable_check_column()
verbose:elemCommandParameterTable:elemCommandParameterRowStatus_check_value:
called
netsnmp_assert ((void *)0) != rowreq_ctx failed
elemCommanding/elemCommandParameterTable_data_set.c:515
elemCommandParameterRowStatus_check_value()
internal:elemCommandParameterTable:_elemCommandParameterTable_check_column:
called for 3
netsnmp_assert ((void *)0) != rowreq_ctx failed
elemCommanding/elemCommandParameterTable_interface.c:968
_elemCommandParameterTable_check_column()
verbose:elemCommandParameterTable:elemCommandParameterKey_check_value: called
netsnmp_assert ((void *)0) != rowreq_ctx failed
elemCommanding/elemCommandParameterTable_data_set.c:699
elemCommandParameterKey_check_value()
internal:elemCommandParameterTable:_elemCommandParameterTable_check_column:
called for 4
netsnmp_assert ((void *)0) != rowreq_ctx failed
elemCommanding/elemCommandParameterTable_interface.c:968
_elemCommandParameterTable_check_column()
verbose:elemCommandParameterTable:elemCommandParameterValue_check_value: called
netsnmp_assert ((void *)0) != rowreq_ctx failed
elemCommanding/elemCommandParameterTable_data_set.c:883
elemCommandParameterValue_check_value()
internal:elemCommandParameterTable:_elemCommandParameterTable_check_column:
called for 5
netsnmp_assert ((void *)0) != rowreq_ctx failed
elemCommanding/elemCommandParameterTable_interface.c:968
_elemCommandParameterTable_check_column()
verbose:elemCommandParameterTable:elemCommandParameterId_check_value: called
netsnmp_assert ((void *)0) != rowreq_ctx failed
elemCommanding/elemCommandParameterTable_data_set.c:1061
elemCommandParameterId_check_value()
table_container: Mode SET_RESERVE2, Got request:
internal:elemCommandParameterTable:_mfd_elemCommandParameterTable_undo_setup:
called
verbose:elemCommandParameterTable:elemCommandParameterTable_allocate_data:
called
verbose:elemCommandParameterTable:elemCommandParameterTable_undo_setup: called
internal:elemCommandParameterTable:_elemCommandParameterTable_undo_setup_column:
called for 2
verbose:elemCommandParameterTable:elemCommandParameterRowStatus_undo_setup:
called
internal:elemCommandParameterTable:_elemCommandParameterTable_undo_setup_column:
called for 3
verbose:elemCommandParameterTable:elemCommandParameterKey_undo_setup: called
internal:elemCommandParameterTable:_elemCommandParameterTable_undo_setup_column:
called for 4
verbose:elemCommandParameterTable:elemCommandParameterValue_undo_setup: called
internal:elemCommandParameterTable:_elemCommandParameterTable_undo_setup_column:
called for 5
verbose:elemCommandParameterTable:elemCommandParameterId_undo_setup: called
internal:elemCommandParameterTable:_mfd_elemCommandParameterTable_undo_setup:
called
netsnmp_assert ((void *)0) != rowreq_ctx failed
elemCommanding/elemCommandParameterTable_interface.c:1255
_mfd_elemCommandParameterTable_undo_setup()
verbose:elemCommandParameterTable:elemCommandParameterTable_allocate_data:
called
Segmentation fault
internal:elemCommandParameterTable:_cache_load: called
verbose:elemCommandParameterTable:elemCommandParameterTable_container_load:
called
table_container: Mode SET_RESERVE1, Got request:
table_container: data_lookup
oid:SNMPv2-SMI::enterprises.162.1.1.1.1.6.2.4.1.2.1
table_container: no row found
table_container: data_lookup
oid:SNMPv2-SMI::enterprises.162.1.1.1.1.6.2.4.1.3.1
table_container: no row found
table_container: data_lookup
oid:SNMPv2-SMI::enterprises.162.1.1.1.1.6.2.4.1.4.1
table_container: no row found
table_container: data_lookup
oid:SNMPv2-SMI::enterprises.162.1.1.1.1.6.2.4.1.5.1
table_container: no row found
internal:elemCommandParameterTable:_mfd_elemCommandParameterTable_pre_request:
called
verbose:elemCommandParameterTable:elemCommandParameterTable_pre_request: called
internal:elemCommandParameterTable:_mfd_elemCommandParameterTable_object_lookup:
called
internal:elemCommandParameterTable:_mfd_elemCommandParameterTable_rowreq_from_index:
called
verbose:elemCommandParameterTable:elemCommandParameterTable_index_from_oid:
called
internal:elemCommandParameterTable:elemCommandParameterTable_allocate_rowreq_ctx:
called
verbose:elemCommandParameterTable:elemCommandParameterTable_rowreq_ctx_init:
called
internal:elemCommandParameterTable:_elemCommandParameterTable_check_indexes:
called
verbose:elemCommandParameterTable:elemCommandParameterTable_elemActiveCmdIndex_check_index:
called
verbose:elemCommandParameterTable:elemCommandParameterTable_validate_index:
called
table_container:row_insert: primary request oid:SNMPv2-SMI::zeroDotZero.1
table_container:row_insert: request[0] oid:SNMPv2-SMI::zeroDotZero.1
table_container:row_insert: matched!table_container:row_insert:
request[1] oid:SNMPv2-SMI::zeroDotZero.1
table_container:row_insert: matched!table_container:row_insert:
request[2] oid:SNMPv2-SMI::zeroDotZero.1
table_container:row_insert: matched!table_container:row_insert:
request[3] oid:SNMPv2-SMI::zeroDotZero.1
verbose:elemCommandParameterTable:elemCommandParameterTable_row_prep: called
internal:elemCommandParameterTable:_mfd_elemCommandParameterTable_check_objects:
called
internal:elemCommandParameterTable:_elemCommandParameterTable_check_column:
called for 2
verbose:elemCommandParameterTable:elemCommandParameterRowStatus_check_value:
called
internal:elemCommandParameterTable:_elemCommandParameterTable_check_column:
called for 3
verbose:elemCommandParameterTable:elemCommandParameterKey_check_value: called
internal:elemCommandParameterTable:_elemCommandParameterTable_check_column:
called for 4
verbose:elemCommandParameterTable:elemCommandParameterValue_check_value: called
internal:elemCommandParameterTable:_elemCommandParameterTable_check_column:
called for 5
verbose:elemCommandParameterTable:elemCommandParameterId_check_value: called
table_container: Mode SET_RESERVE2, Got request:
internal:elemCommandParameterTable:_mfd_elemCommandParameterTable_undo_setup:
called
verbose:elemCommandParameterTable:elemCommandParameterTable_allocate_data:
called
verbose:elemCommandParameterTable:elemCommandParameterTable_undo_setup: called
internal:elemCommandParameterTable:_elemCommandParameterTable_undo_setup_column:
called for 2
verbose:elemCommandParameterTable:elemCommandParameterRowStatus_undo_setup:
called
internal:elemCommandParameterTable:_elemCommandParameterTable_undo_setup_column:
called for 3
verbose:elemCommandParameterTable:elemCommandParameterKey_undo_setup: called
internal:elemCommandParameterTable:_elemCommandParameterTable_undo_setup_column:
called for 4
verbose:elemCommandParameterTable:elemCommandParameterValue_undo_setup: called
internal:elemCommandParameterTable:_elemCommandParameterTable_undo_setup_column:
called for 5
verbose:elemCommandParameterTable:elemCommandParameterId_undo_setup: called
table_container: Mode SET_ACTION, Got request:
internal:elemCommandParameterTable:_mfd_elemCommandParameterTable_set_values:
called
internal:elemCommandParameterTable:_elemCommandParameterTable_set_column:
called for 2
verbose:elemCommandParameterTable:elemCommandParameterRowStatus_set: called
internal:elemCommandParameterTable:_elemCommandParameterTable_set_column:
called for 3
verbose:elemCommandParameterTable:elemCommandParameterKey_set: called
internal:elemCommandParameterTable:_elemCommandParameterTable_set_column:
called for 4
verbose:elemCommandParameterTable:elemCommandParameterValue_set: called
internal:elemCommandParameterTable:_elemCommandParameterTable_set_column:
called for 5
verbose:elemCommandParameterTable:elemCommandParameterId_set: called
internal:elemCommandParameterTable:_mfd_elemCommandParameterTable_check_dependencies:
called
internal:elemCommandParameterTable:elemCommandParameterTable_check_dependencies:
called
internal:elemCommandParameterTable:_mfd_elemCommandParameterTable_commit: called
verbose:elemCommandParameterTable:elemCommandParameterTable_commit: called
elemCommandParameterTable:elemCommandParameterTable_dirty_set: called. was 0,
now 1
table_container: Mode SET_COMMIT, Got request:
internal:elemCommandParameterTable:_mfd_elemCommandParameterTable_irreversible:commit:
called
internal:elemCommandParameterTable:_mfd_elemCommandParameterTable_undo_cleanup:
called
verbose:elemCommandParameterTable:elemCommandParameterTable_undo_cleanup: called
verbose:elemCommandParameterTable:elemCommandParameterTable_release_data: called
internal:elemCommandParameterTable:_mfd_elemCommandParameterTable_post_request:
called
verbose:elemCommandParameterTable:elemCommandParameterTable_post_request: called
internal:elemCommandParameterTable:_elemCommandParameterTable_container_col_save:
processing column 2
internal:elemCommandParameterTable:_elemCommandParameterTable_container_col_save:
processing column 3
internal:elemCommandParameterTable:_elemCommandParameterTable_container_col_save:
processing column 4
internal:elemCommandParameterTable:_elemCommandParameterTable_container_col_save:
processing column 5
internal:elemCommandParameterTable:_elemCommandParameterTable_container_row_save:
saving line 'elemCommandParameterTable .1 2:1 3:"hello" 4:0x76616c75655f31
5:1234 $'
elemCommandParameterTable:elemCommandParameterTable_dirty_set: called. was 1,
now 0
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders