I am trying to debug snmpd on Solaris 8 and have run into some snags. snmpd runs fine in the background, with just a -p arg. If I try -D, it just dies.
# snmpd -DALL -L /var/log/snmpd.log trace: main(): snmpd.c, 823: snmpd/main: optind 3, argc 4 trace: netsnmp_ds_set_string(): default_store.c, 283: netsnmp_ds_set_string: Setting APP:2 = "/var/log/snmpd.log" trace: main(): snmpd.c, 844: snmpd/main: port spec: /var/log/snmpd.log trace: netsnmp_ds_set_boolean(): default_store.c, 205: netsnmp_ds_set_boolean: Setting APP:1 = 0/False daemonize: deamonizing... daemonize: child continuing trace: netsnmp_ds_set_boolean(): default_store.c, 205: netsnmp_ds_set_boolean: Setting LIB:11 = 1/True trace: netsnmp_ds_set_boolean(): default_store.c, 205: netsnmp_ds_set_boolean: Setting APP:1 = 0/False trace: netsnmp_register_handler(): agent_handler.c, 212: handler::register: Registering (::null) at .0 trace: netsnmp_inject_handler_before(): agent_handler.c, 337: handler:inject: injecting bulk_to_next before null trace: netsnmp_register_mib(): agent_registry.c, 587: register_mib: registering "" at .0daemonize: first fork returned 88. daemonize: parent exiting If I give tell it to not fork, I get a seg fault. # snmpd -DALL -f Segmentation Fault(coredump) # snmpd -DALL -f -L trace: netsnmp_ds_set_boolean(): default_store.c, 205: netsnmp_ds_set_boolean: Setting APP:1 = 0/False trace: netsnmp_ds_set_boolean(): default_store.c, 205: netsnmp_ds_set_boolean: Setting LIB:11 = 1/True trace: netsnmp_ds_set_boolean(): default_store.c, 205: netsnmp_ds_set_boolean: Setting APP:1 = 0/False trace: netsnmp_register_handler(): agent_handler.c, 212: handler::register: Registering (::null) at .0 trace: netsnmp_inject_handler_before(): agent_handler.c, 337: handler:inject: injecting bulk_to_next before null trace: netsnmp_register_mib(): agent_registry.c, 587: register_mib: registering "" at .0Segmentation Fault(coredump) Any thoughts? -- - Kyle --------------------------------------------- [EMAIL PROTECTED] http://www.panix.com/~kylet --------------------------------------------- ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ 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
