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

Zheng Niejun steed at huawei.com
Sat Oct 8 11:48:22 CEST 2005


Hello Mr. Frank,
    I couldn't fix up the follow problem yet. I run the same code in other platforms(AIX/Solairs/Windows), the result is correct.
Could you give me more advice? 
    Thanks.
    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