[Interest] Destructor appearing twice in the stack trace?

Thiago Macieira thiago.macieira at intel.com
Tue Nov 10 08:10:26 CET 2015


On Tuesday 10 November 2015 08:01:53 Etienne Sandré-Chardonnal wrote:
> Hi,
> 
> I have fixed the crash problem, but the double destructor is still there.
> For the record, what is the compiler mechanism behind this?

Without knowing the source code and the assembly, I could only guess.

The most likely guess is that there is no recursion, it's just a side-effect 
of how the frame pointers are manipulated on the tail-call to destroy the base 
class.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list