[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Crash during program clean-up
From:       "Peter M. Groen" <pgroen () osdev ! nl>
Date:       2008-04-28 7:45:55
Message-ID: 22623.171.21.80.126.1209368755.squirrel () webmail ! osdev ! nl
[Download RAW message or body]

Hi,

You can try starting the application under direction of Valgrind. It isn't
fast, but it will give you a great idea where possible mem-leaks or
invalid pointers are located. Bear in mind, though that all the
static-variables in the KDE-SDK and Qt are reported also. You have to look
through those.

Good Luck,
-- 
Peter M. Groen
Open Systems Development
Klipperwerf 12
2317 DZ  Leiden
Tel   : +31-(0)71-5216317
Mobile: +31-(0)6-29563390
Email : pgroen@osdev.nl
Skype : peter_m_groen

> I'm getting a crash during cleanup after quitting the application, which I
> can't manage to debug. Any ideas either on why it's crashing or on a
> strategy
> to find what's going wrong would be gratefully received.
>
> I tried single stepping through the cleanup, but eventually it reached a
> point
> where it wouldn't let me single step any more - here's the gdb console
> interaction (where the blank gdb command lines are equivalent to 'fin'
> followed by 's'):
>
> 0xb61caef4 in exit () from /lib/i686/cmov/libc.so.6
> Single stepping until exit from function exit,
> which has no line number information.
> __tcf_0 () at /usr/include/c++/4.2/iostream:77
> 77        static ios_base::Init __ioinit;
> (gdb)
> 0xb61caef4 in exit () from /lib/i686/cmov/libc.so.6
> Single stepping until exit from function exit,
> which has no line number information.
> 0xb641a520 in pthread_mutex_lock () from /lib/i686/cmov/libpthread.so.0
> (gdb)
> 0xb7fbae3d in ?? () from /lib/ld-linux.so.2
> Cannot find bounds of current function
> (gdb) s
> Cannot find bounds of current function
> (gdb) bt
> #0  0xb7fbae3d in ?? () from /lib/ld-linux.so.2
> #1  0xb7fc8260 in _rtld_global () from /lib/ld-linux.so.2
> #2  0xb6cbec10 in ?? () from /usr/lib/libqt-mt.so.3
> #3  0xbfb67838 in ?? ()
> #4  0xb6860221 in ~QMetaObject (this=0x0) at kernel/qmetaobject.cpp:298
> #5  0xb61caef4 in exit () from /lib/i686/cmov/libc.so.6
> #6  0xb61b3458 in __libc_start_main () from /lib/i686/cmov/libc.so.6
> #7  0x08089ac1 in _start ()
>
> The final debug trace is:
>
> Program received signal SIGSEGV, Segmentation fault.
> 0xb6206c80 in ?? () from /lib/i686/cmov/libc.so.6
> (gdb) bt
> #0  0xb6206c80 in ?? () from /lib/i686/cmov/libc.so.6
> #1  0xbfb675a8 in ?? ()
> #2  0xb7fc87c4 in ?? ()
> #3  0x00000021 in ?? ()
> #4  0xb62086fe in ?? () from /lib/i686/cmov/libc.so.6
> #5  0xb6fb1000 in ?? ()
> #6  0xb6dc9f13 in ?? () from /usr/lib/libkdecore.so.4
> #7  0x03d66f09 in ?? ()
> #8  0xb6208251 in ?? () from /lib/i686/cmov/libc.so.6
> #9  0xb62e8148 in ?? () from /lib/i686/cmov/libc.so.6
> #10 0xb620c360 in free () from /lib/i686/cmov/libc.so.6
> #11 0xb620c360 in free () from /lib/i686/cmov/libc.so.6
> #12 0xb7e13151 in operator delete () from /usr/lib/libstdc++.so.6
> #13 0xb7e131ad in operator delete[] () from /usr/lib/libstdc++.so.6
> #14 0xb6e561c5 in ~KZoneAllocator (this=0xb6fae800)
>     at /build/buildd/kdelibs-3.5.9.dfsg.1/./kdecore/kallocator.cpp:67
> #15 0xb6e56230 in __tcf_39 ()
> at /build/buildd/kdelibs-3.5.9.dfsg.1/./kdecore/kcompletion.cpp:884
> #16 0xb61cb221 in __cxa_finalize () from /lib/i686/cmov/libc.so.6
> #17 0xb6e29433 in __do_global_dtors_aux () from /usr/lib/libkdecore.so.4
> #18 0xb6f8da4c in _fini () from /usr/lib/libkdecore.so.4
> #19 0xb7fbafdf in ?? () from /lib/ld-linux.so.2
> #20 0xb7fc8260 in _rtld_global () from /lib/ld-linux.so.2
> #21 0x00000000 in ?? ()
>
> I don't knowingly use KCompletion, and don't know where that has been
> used.
>
> --
> David Jarvie.
> KAlarm author and maintainer.
> http://www.astrojar.org.uk/kalarm
>
>>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
>>> unsubscribe <<
>

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic