Hi all,

I am using the NET-SNMP version:  5.0.9. I have a class PMSNMPFacade.
class PMSNMPFacade 
{
PMSNMPFacade::PMSNMPFacade()
{

   init_snmp("snmpd");
}

};

The code of where it is getting used is as follows:

int main()
{
    foo();
}

void foo()
{
    PMSNMPFacade f;
}

The init_snmp function is core dumping. The problem is papering in the
setlocale() function of the init_snmp. Attached is the gdb trace for it.   
#0  0x0030aee0 in getenv () from /lib/tls/libc.so.6
#1  0x002ffa26 in setlocale () from /lib/tls/libc.so.6
#2  0x0016f30a in init_snmp () from /usr/lib/libnetsnmp.so.5

Can anybody please provide me a solution or a work around for the problem.

Regards,
Suresh


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

Reply via email to