2009/4/8 down Load <engl...@yahoo.com>:
> 1)  /usr/local/sbin/snmpd -f -Le -Dall
> trace: header_hrstoreEntry(): host/hr_storage.c, 476:
> host/hr_storage: var_hrstoreEntry: process
>     HOST-RESOURCES-MIB::hrStorageType.45 (ffffffff)
> Segmentation fault(coredump)

Yup - that's what I suspected you'd see.

The next debug line ought to have been
   trace: netsnmp_call_handler(): agent_handler.c, 438:
   handler:returned: handler old_api returned 0

which is printed immediately after the var_hrstore()
routine returns.   So the problem clearly lies somewhere
within this routine.   (Which is not too surprising).

I'm afraid you're going to have fire up a debugger to
find out anything further.
   Hopefully the following will work, but no promises.

Please try the following:

    $ cd /usr/local/sbin
    $ gdb snmpd
    gdb>  run -f -Le

(then invoke the "snmpget" command,
 which should crash the agent once more).

What output do you see from the gdb command?
Also, what is the output of the following gdb commands
once the agent has crashed:

   gdb>    print HRFS_entry
   gdb>    print *HRFS_entry
   gdb>    print storage_type_id
   gdb>    print storage_type_len
   gdb>    print storage_type_id[ storage_type_len-1 ]
   gdb>    print var_len

[I'm guessing that the crash does occur within the var_hrstore
routine]

Dave

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to