netSnmpHostsTable.so segmentation fault

"Elias Bou Rahal" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi All,

  i am trying to create the netSnmpHostsTable.so from the example in "
net-snmp-5.2\agent\mibgroup\examples". It s created successfully but when i
add it to dlmod, it appears like its added normally:
       UCD-DLMOD-MIB::dlmodName.1 = STRING: netSnmpHostsTable
       UCD-DLMOD-MIB::dlmodPath.1 = STRING:
/home/jinny/example/netSnmpHostsTable.so
       UCD-DLMOD-MIB::dlmodError.1 = STRING:
       UCD-DLMOD-MIB::dlmodStatus.1 = INTEGER: loaded(1)
When i running the snmpwalk on netSnmpHostsTable OID, the snmpd will exit
with the segmentation fault.
the part of the debug file related to netSnmpHostsTable is below:
      read_config: /home/jinny/net-snmp/local//share/snmp/snmpd.conf:68
examining: dlmod       netSnmpHostsTable
/home/jinny/example/netSnmpHostsTable.so
      trace: run_config_handler(): read_config.c, 474:
      read_config: Found a parser.  Calling it: dlmod / netSnmpHostsTable
/home/jinny/example/netSnmpHostsTable.so
      trace: dlmod_create_module(): ucd-snmp/dlmod.c, 106:
      dlmod: dlmod_create_module
      trace: dlmod_load_module(): ucd-snmp/dlmod.c, 145:
      dlmod: dlmod_load_module netSnmpHostsTable:
/home/jinny/example/netSnmpHostsTable.so
      trace: initialize_table_netSnmpHostsTable(): netSnmpHostsTable.c, 93
      initialize_table_netSnmpHostsTable: Registering table
netSnmpHostsTable as a table iterator
      trace: netsnmp_inject_handler_before(): agent_handler.c, 336:
      handler:inject: injecting table_iterator before netSnmpHostsTable
      netsnmp_get_table_handler(NULL) called
      netsnmp_inject_handler() called illegally
      netsnmp_assert handler != ((void *)0) failed agent_handler.c:329
netsnmp_inject_handler_before()
      trace: netsnmp_register_handler(): agent_handler.c, 212:
      handler::register: Registering netSnmpHostsTable
(::table_iterator::netSnmpHostsTable) at NET-SNMP-MIB::netSnmp.2.2.2
      trace: netsnmp_inject_handler_before(): agent_handler.c, 336:
      handler:inject: injecting bulk_to_next before table_iterator
      trace: netsnmp_register_mib(): agent_registry.c, 587:
      register_mib: registering "netSnmpHostsTable" at NET-SNMP-MIB::
netSnmp.2.2.2
      trace: netsnmp_subtree_find_first(): agent_registry.c, 155:
      subtree: looking for subtree for context: ""



I am waiting ur reply,

Thanks

Best Regards
    Elias

-------------------------------------------------------------------------
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-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.