[Qt-interest] TimerIds Destructor crashes when exiting application

Thiago Macieira thiago.macieira at trolltech.com
Wed Aug 12 07:49:06 CEST 2009


Marc Ferland wrote:
>Hi all,
>
>I'm having a really weird problem when I close my application and it
>seems to be related to timers. Here's the stack when the application
>is crashing:
>
>#0  0x00007f27c12d8ed5 in raise () from /lib/libc.so.6
>#1  0x00007f27c12da3f3 in abort () from /lib/libc.so.6
>#2  0x00007f27c13153a8 in ?? () from /lib/libc.so.6
>#3  0x00007f27c131a948 in ?? () from /lib/libc.so.6
>#4  0x00007f27c131ac10 in ?? () from /lib/libc.so.6
>#5  0x00007f27c131c708 in ?? () from /lib/libc.so.6
>#6  0x00007f27c131ca56 in free () from /lib/libc.so.6
>#7  0x00007f27c312c15e in timerIdsDestructorFunction () at
> kernel/qabstracteventdispatcher.cpp:74 #8  0x00007f27c312c769 in
> ~timerIdsDestructorFunction__dest_class__ (this=0x7f27c3479ac0) at
> kernel/qabstracteventdispatcher.cpp:76 #9  0x00007f27c12dbd88 in
> __cxa_finalize () from /lib/libc.so.6 #10 0x00007f27c3009a86 in
> __do_global_dtors_aux () from
> /usr/local/Trolltech/Qt-4.5.2/lib/libQtCore.so.4 #11 0x00000000004a5b90
> in ?? ()
>#12 0x00007fffd0f82a60 in ?? ()
>#13 0x00007f27c31a36e1 in _fini () from
> /usr/local/Trolltech/Qt-4.5.2/lib/libQtCore.so.4 #14 0x0000000000000052
> in ?? ()
>#15 0x00007f27c8d75d64 in ?? () from /lib64/ld-linux-x86-64.so.2
>Backtrace stopped: previous frame inner to this frame (corrupt stack?)
>
>Any of you seen this before?

No. It doesn't make sense to us, because the destructor function is called 
at unload time, when no timers are being added or removed. The timer 
structures are never deleted before this destructor.

Can you reproduce the issue while running inside valgrind? If so, can you 
post the valgrind output?

-- 
Thiago Macieira - thiago.macieira (AT) nokia.com
  Senior Product Manager - Nokia, Qt Development Frameworks
     Sandakerveien 116, NO-0402 Oslo, Norway

Qt Developer Days 2009 | Registration Now Open!
Munich, Germany: Oct 12 - 14     San Francisco, California: Nov 2 - 4
      http://qt.nokia.com/qtdevdays2009
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090812/102151f5/attachment.bin 


More information about the Qt-interest-old mailing list