[parisc-linux] double destructor call

Carlos O'Donell carlos at systemhalted.org
Tue Jun 27 16:18:47 MDT 2006


On 6/27/06, John David Anglin <dave at hiauly1.hia.nrc.ca> wrote:
> > Can someone give me a hint what to do to debug this further?
>
> Constructors are called from __do_global_ctors_aux.  You should be able
> to determine whether there is duplication in the list or whether
> __do_global_ctors_aux is somehow called twice.

We are currently failing libc/elf/order and libc/elf/order2, which
means that __attribute__ ((constructor)) and
__attribute__((destructor)) are running in the wrong order. I'm not
sure if this is a sign of something broken?

It looks like constructors might be working, but the last constructor
seems to run twice (garbage?) and the destructors are not run at all.

I'll see if I can poke at this.

Cheers,
Carlos.



More information about the parisc-linux mailing list