[AGENT++] RE: memory violations
Gil Steiner
gils at tsoft-tele.com
Tue Mar 23 19:28:41 CET 2004
Sure,
This is part of the .plog file from purify
**** Purify instrumented testapp (pid 28542) ****
SBW: Stack array bounds write:
* This is occurring while in:
Pdu::Pdu() [pdu.cpp:74]
main [test.o]
_start [crt1.o]
* Writing 4 bytes to 0xffbef534.
* Frame pointer 0xffbef508
**** Purify instrumented testapp (pid 28542) ****
SBW: Stack array bounds write:
* This is occurring while in:
SnmpSyntax::SnmpSyntax() [smival.h:168]
OctetStr::OctetStr() [octet.cpp:78]
Pdu::Pdu() [pdu.cpp:74]
main [test.o]
_start [crt1.o]
* Writing 4 bytes to 0xffbef508.
* Frame pointer 0xffbef508
This is the 'test app' that the purify was run for.
#include "pdu.h"
#include "snmp_pp.h"
int main()
{
Pdu pdu;
return(0);
}
I get 22 errors for this tiny program. I suspect it's one for each member
variable initialized.
The compiler is:
gcc version 2.95.2 19991024 (release)
And this is my unix machine:
SunOS xxxxxx 5.8 Generic_108528-12 sun4u sparc SUNW,Ultra-4
(I said solaris 9 before - I'm sorry but I was wrong. It's 8)
Regards,
+gil
-----Original Message-----
From: M. Warner Losh [mailto:imp at bsdimp.com]
Sent: Tuesday, March 23, 2004 6:53 PM
To: gils at tsoft-tele.com
Cc: agentpp at agentpp.org
Subject: Re: [AGENT++] RE: memory violations
Maybe if you gave us the exact purify message it would be possible to help
more. Also, having the lines of source in your version around the lines
that purify points out would be useful.
Warner
More information about the AGENTPP
mailing list