On Wed, 2006-02-15 at 07:51 -0500, Kyle Tucker wrote:
> Here's a rerun for verification.
>
> GNU gdb 6.0
> Copyright 2003 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB. Type "show warranty" for details.
> This GDB was configured as "sparc-sun-solaris2.8"...
> (gdb) run -DALL -f -Le
> Starting program: /usr/local/sbin/snmpd -DALL -f -Le
> 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 .0
> Program received signal SIGSEGV, Segmentation fault.
Aha!
I've just run the same command on my (Linux) 5.2.2 agent,
and got exactly the same output up to this line.
But the full text of this last debug line is actually:
register_mib: registering "" at .0 with context "(null)"
So that at least pinpoints where the agent is falling over.
Hmmm.... I wonder.....
Can you try the following patch, and see if it helps.
--- agent_registry.c.cln 2006-02-15 13:25:22.603744208 +0000
+++ agent_registry.c 2006-02-15 13:27:11.136244760 +0000
@@ -587,7 +587,8 @@
DEBUGMSGTL(("register_mib", "registering \"%s\" at ", moduleName));
DEBUGMSGOIDRANGE(("register_mib", mibloc, mibloclen, range_subid,
range_ubound));
- DEBUGMSG(("register_mib", " with context \"%s\"\n", context));
+ DEBUGMSG(("register_mib", " with context \"%s\"\n",
+ (context ? context : "(null)")));
/*
* verify that the passed context is equal to the context
Dave
-------------------------------------------------------
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