[AGENT++] help: problem about snmpV3 in hp-ux 11i

Zheng Niejun steed at huawei.com
Thu Sep 29 03:25:30 CEST 2005


Thank you for you idea. 

But in fact I recompile both snmp++ and agent++ after changing the file config_snmp_pp.h.
I also run the same exmaple in windows, AIX and Solaris, it is all OK.

I just want to know if anyone tests SNMPv3 with pthread in HP-UX 11i. I use aCC compiler
with compile options "-AA +DAportable -D_REENTRANT -D_RWSTD_MULTI_THREAD".
Maybe something wrong with compile options or link options? but it's OK when receiving SNMPv1 request.

Best regards.
    Zheng Niejun

----- Original Message ----- 
From: "Frank Fock" <fock at agentpp.com>
To: "Zheng Niejun" <steed at huawei.com>
Cc: <agentpp at agentpp.org>
Sent: Thursday, September 29, 2005 2:16 AM
Subject: Re: [AGENT++] help: problem about snmpV3 in hp-ux 11i


> This is a FAQ:
> 
> When changing the #defines then *please* recompile and relink
> *everything* - and that is *everything*.
> 
> Best regards,
> Frank
> 
> Zheng Niejun wrote:
> 
> > Hi all,
> >     I compile snmp++ 3.2.16 & agent++ 3.5.22c with macro '_NO_THREADS' in hp-ux 11i.
> > i try to run an example of agent++. It seems OK. I then modify the example by adding 
> > a thread and make it receive snmp request in the thread, and run again. When it 
> > receives snmpV1 request, it is OK. But when it reveives snmpV3 request, it core down!
> >     
> >     I debug it. The detail is as follow:
> > Program received signal SIGBUS, Bus error.
> > 0xaa7e0 in USM::build_sec_params (this=0x40031770, outBuf=0x7a20642c "",
> >     maxLength=0x7a207438, sp={
> >       msgAuthoritativeEngineID = "\200\000\023p\005socagent\006M\000\000\000\000\004\000\000\000\017\000\000\0000z Bt", msgAuthoritativeEngineIDLength = 15,
> >       msgAuthoritativeEngineBoots = 0, msgAuthoritativeEngineTime = 0,
> >       msgUserName = "\000\t\262#\000\t\261\353", '\000' <repeats 16 times>, "z \021@\000\000\000", msgUserNameLength = 0, msgAuthenticationParameters = 0x0,
> >       msgAuthenticationParametersLength = 0, msgPrivacyParameters = 0x0,
> >       msgPrivacyParametersLength = 0}, position=0x7a2052e0) at usm_v3.cpp:2213
> > 2213      unsigned char *bufPtr = (unsigned char*)&buf;
> >      
> >     Thank you so much for your time.
> >     Best regards. 
> >         steed.
> > _______________________________________________
> > AGENTPP mailing list
> > AGENTPP at agentpp.org
> > http://lists.agentpp.org/mailman/listinfo/agentpp
> 
> 



More information about the AGENTPP mailing list