[AGENT++] crash due to a call to a __pure_virtual function

Frank Fock fock at agentpp.com
Tue Sep 18 18:29:34 CEST 2007


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




More information about the AGENTPP mailing list