>I am trying to use net-snmp version 5.5 that has been cross compiled for a 
>coldfire.
>
>If I launch net-snmp like this (I know...just wait):
>./snmpd -f -Lo
>I get a response like this:
>Warning: no access control information configured.
>  It's unlikely this agent can serve any useful purpose in this state.
>  Run "snmpconf -g basic_setup" to help you configure the snmpd.conf file for 
> this agent.
>
>Which I would expect (a -DALL) will show that it loads all the mibs etc and 
>does bunches of processing before exiting as it should The amount of debug 
>code that is produced leads me to believe that the compile must have gone as 
>planned, and the program terminates >itself appropriately.
>
>HOWEVER
>
>If I make a very simple config file like this:
>agentaddress 192.168.111.40
>syslocation Location
>syscontact Contact
>rwcommunity private
>
>and launch the net-snmp like this:
>
>./snmpd -f -DALL -Lo -Cc /tmp/snmp.conf
>
>The last lines will be:
>trace: read_config(): ../../snmplib/read_config.c, 777:
>read_config: /tmp/snmp.conf:4 examining: rwcommunity private
>trace: run_config_handler(): ../../snmplib/read_config.c, 498:
>read_config: Found a parser.  Calling it: rwcommunity / private
>and then the program exits. No code, no nothing just terminates. Any idea what 
>might be going on here? How would one start to debug this? Any suggestions are 
>greatly appreciated.


So it appears to revolve around the
Void vacm_create_simple(const char *token, char *confline, int parsetype, int 
viewtypes)

Function in vacm_conf.c

Apparently the three memset calls:
        memset(context, 0, sizeof(context));
        memset(secname, 0, sizeof(secname));
        memset(grpname, 0, sizeof(grpname));

Fail unexplained. They are all rather large so just for laughs I redefined
SPRINT_MAX_LEN from 2560 down to 256 and the problem went away.

I am going to assume that this is a stack issue revolving around my platform as 
I looked into the memset function and as expected see no rational for it to 
fail.
If anyone out there has any knowledge of some issue that is disguised around 
this I would appreciate the heads up, otherwise for small config files this 
seems to be working.

Thank You,
Jordan
IMPORTANT NOTICE:  This communication, including any attachments, is the 
property of FreeWave Technologies, Inc. and may contain proprietary, 
confidential, or privileged information. Unauthorized use or disclosure of this 
communication is strictly prohibited and may be unlawful. Information contained 
herein may be subject to a Proprietary Information / Non-Disclosure Agreement 
and shall be maintained in confidence and not disclosed to third parties 
without the written consent of FreeWave Technologies, Inc. If you have received 
this communication in error, please immediately notify the sender and destroy 
all copies of the communication and any attachments.

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to