RE: table_array core dump (V 5.0.9)

"George, Geo" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <87BC906A62A61A4E83399416B13704A7032DEF96@cacexc07.americas.cpqcorp.net>
Sorry for a second mail regarding the same problem. Just wanted to
attach a trace output. I Could see that there is some assert routines
added in recent versions of net_snmp_call_handler which is missing in
5.0.9.

Regards,
Geo

Trace Output
============

# ./demoapp -Dhelper,handler,array,result localhost
handler::register: Registering ::null at ccitt
handler:inject: injecting bulk_to_next before null
handler::register: Registering ::null at iso
handler:inject: injecting bulk_to_next before null
handler::register: Registering ::null at joint-iso-ccitt
handler:inject: injecting bulk_to_next before null
handler_registry: registering helper debug
handler_registry: registering helper serialize
handler_registry: registering helper read_only
handler_registry: registering helper bulk_to_next
handler:inject: injecting table before me1FileTable
handler::register: Registering ::table::me1FileTable at
iso.3.6.1.4.1.42.2.2.4.4.1.2.1
handler:inject: injecting bulk_to_next before table
example-demon is up and running.


<<<  ################################################ >>>>
<<<< SNMP SET ON iso.3.6.1.4.1.42.2.2.4.4.1.2.1 >>>>
<<<  ################################################ >>>>


handler:calling: calling main handler bulk_to_next
handler:calling: calling handler table
helper:table: Got request for handler table: base
oid:iso.3.6.1.4.1.42.2.2.4.4.1.2.1
helper:table:  SET_REQUEST for OID: iso.3.6.1.4.1.42.2.2.4.4.1.2.1.1.2
type=4(04), value=STRING: "test"
helper:table:   oid indexes not complete:
iso.3.6.1.4.1.42.2.2.4.4.1.2.1.1.2
handler:returned: handler table returned 0
results: request results (status = 2):
results:        iso.3.6.1.4.1.42.2.2.4.4.1.2.1.1.2 = STRING: "test"
handler:calling: calling main handler bulk_to_next
handler:calling: calling handler table
helper:table: Got request for handler table: base
oid:iso.3.6.1.4.1.42.2.2.4.4.1.2.1
handler:calling: calling handler me1FileTable
Segmentation fault (core dumped)
#
========================================================================
==



-----Original Message-----
From: George, Geo 
Sent: Thursday, August 11, 2005 11:03 AM
To: '[email protected]'
Subject: table_array core dump (V 5.0.9)


Hi All,
I have developed an Agentx based SNMP sub agent using, netsnmp v5.0.9.
Tables are implemented using mib2c.aray-user.conf. 

A typical problem:
When ever a SNMP set is performed with invalid index (ie No instance
number given) the agent core dumps. Tables implemented using
iterate.conf are fine. 

I tried with a very small experimental table, and the same behavior is
observed.

Any help appreciated.

Regards,
Geo

========================================================================
======
Description:
	MIB:
	Me1FileEntry ::=      // OID = 1.3.6.1.4.1.42.2.2.4
   	 SEQUENCE {
        me1FileIndex
                Unsigned32,
        me1FileName
                DisplayString,
        me1FileSize
                Unsigned32,
        me1FilePerm
                DisplayString
    }


How to repeat: Try snmpset on 1.3.6.1.4.1.42.2.2.4 without any index,
agent core dumps. With valid indexes, it works fine.
========================================================================
=====





-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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
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.