[AGENT++] crash due to a call to a __pure_virtual function
Jacquemin, Jean-Philippe
jean-philippe.jacquemin at barco.com
Mon Sep 24 08:39:30 CEST 2007
Hi Frank,
Thanks a lot, but I did it and still have the same issue ... :((
What else can it be ??
I have some more information now :
the call giving the __pure_virtual is : MibLeaf.get_value() in mib.cpp
Vbx MibLeaf::get_value() const
{
Vbx vb(get_oid());
if (value)
vb.set_value(*value);
return vb;
}
which then goes to vb.set_value(*value) in vb.h:
void set_value(const SnmpSyntax &val)
{ free_vb(); iv_vb_value = val.clone(); };
And this is the clone() method that is declared virtual and leads to the
crash.
Extra information : this happens after a couple of hours...
Difficult to debugg....
Thanks for your help !!
Best regards,
Jean-Philippe
-----Original Message-----
From: Frank Fock [mailto:fock at agentpp.com]
Sent: dinsdag 18 september 2007 18:30
To: Jacquemin, Jean-Philippe
Cc: agentpp at agentpp.org
Subject: Re: [AGENT++] crash due to a call to a __pure_virtual function
Hi Jean-Philippe,
You have simply an inconsistent build. Rebuild everything (I really mean
everything) and the problem will go away.
Best regards,
Frank
Jacquemin, Jean-Philippe wrote:
> Hi,
> I am using agent++ for a snmp agent on a i386 target and am facing a
> crash due to a call to a pure virtual function.
> If I look at my core dump I find a call to "__pure_virtual"
> and when I go up I end up in the destructor
> Agentpp::Oidx::~Oidx (this=0x81bb8cc, __in_chrg=107378216) at
> snmp_pp_ext.cpp:791
>
> which is indeed declared "virtual" in the Oidx class definition.
> virtual ~Oidx();
> and implemented like this :
> Oidx::~Oidx() { }
>
> this=0x81bb8cc refers to "_GLOBAL_OFFSET_TABLE" when looking at the
> symbols
>
> Here is an excerpt of the symbol table where the "__pure_virtual"
> symbol can be found :
> 1095: 08105ea0 74 FUNC WEAK DEFAULT 13
> clear__Q27Agentppt4List1Z
> 1096: 0804aeec 59 FUNC GLOBAL DEFAULT UND rename@@GLIBC_2.0
> 1097: 08125800 4 OBJECT GLOBAL DEFAULT 15
> _11CXXProtocol.m_dwExtraD
> 1098: 080ae430 212 FUNC GLOBAL DEFAULT 13
> clone__Q27Agentpp15SnmpAd
> 1099: 0810400c 27 FUNC GLOBAL DEFAULT 13 __pure_virtual
> 1100: 080d69f0 75 FUNC GLOBAL DEFAULT 13
> set_port__10UdpAddressUs
> 1101: 0804c1a4 40 FUNC GLOBAL DEFAULT 13
> ReleaseDataAccess__8CComm
> 1102: 0808f2e4 3687 FUNC GLOBAL DEFAULT 13
> from_asn1__Q27Agentpp3Vbx
>
> Can someone explain me how to further debug this program ?
>
> Thanks in advance !
>
> Best regards,
>
> JPJ
>
>
>
>
>
> DISCLAIMER:
> Unless indicated otherwise, the information contained in this message
is privileged and confidential, and is intended only for the use of the
addressee(s) named above and others who have been specifically
authorized to receive it. If you are not the intended recipient, you are
hereby notified that any dissemination, distribution or copying of this
message and/or attachments is strictly prohibited. The company accepts
no liability for any damage caused by any virus transmitted by this
email. Furthermore, the company does not warrant a proper and complete
transmission of this information, nor does it accept liability for any
delays. If you have received this message in error, please contact the
sender and delete the message. Thank you.
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/agentpp
--
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com
DISCLAIMER:
Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message. Thank you.
More information about the AGENTPP
mailing list