Bug 263477

Summary: Applications crashed after exiting [KDirWatch cleanup]
Product: [Unmaintained] kdelibs Reporter: Christoph Feck <cfeck>
Component: kdecoreAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED FIXED    
Severity: crash CC: faure, frank78ac
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Christoph Feck 2011-01-17 22:10:38 UTC
Application: okteta (0.5.60)
KDE Platform Version: 4.6.41 (4.7 >= 20110106) (Compiled from sources)
Qt Version: 4.7.2
Operating System: Linux 2.6.34.7-0.7-desktop i686
Distribution: "openSUSE 11.3 (i586)"

-- Information about the crash:
- What I was doing when the application crashed:

Happens in today's trunk, after KDirWatch cleanup changes done by David, but may also be an Okteta bug.

The crash can be reproduced every time.

-- Backtrace:
Application: Okteta (okteta), signal: Aborted
[KCrash Handler]
#7  0xffffe424 in __kernel_vsyscall ()
#8  0xb5db87ff in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#9  0xb5dba140 in abort () at abort.c:92
#10 0xb60ca8d3 in qt_message_output (msgType=QtFatalMsg, buf=
    0x81ab640 "Fatal Error: Accessed global static 'KDirWatch *s_pKDirWatchSelf()' after destruction. Defined at /local/svn/kde/trunk/KDE/kdelibs/kdecore/io/kdirwatch.cpp:1722")
    at /local/git/Qt/qt/src/corelib/global/qglobal.cpp:2282
#11 0xb60caa3e in qt_message (msgType=QtFatalMsg, msg=0xb6630cf8 "Fatal Error: Accessed global static '%s *%s()' after destruction. Defined at %s:%d", ap=
    0xbfaa4134 "\356\fc\266\335\fc\266P\005c\266\272\006") at /local/git/Qt/qt/src/corelib/global/qglobal.cpp:2328
#12 0xb60cae6a in qFatal (msg=0xb6630cf8 "Fatal Error: Accessed global static '%s *%s()' after destruction. Defined at %s:%d") at /local/git/Qt/qt/src/corelib/global/qglobal.cpp:2511
#13 0xb64fa810 in operator-> (this=0xb6670dd8) at /local/svn/kde/trunk/KDE/kdelibs/kdecore/io/kdirwatch.cpp:1722
#14 0xb64fa7a1 in operator KDirWatch* (this=0xb6670dd8) at /local/svn/kde/trunk/KDE/kdelibs/kdecore/io/kdirwatch.cpp:1722
#15 0xb64fa966 in KDirWatch::self () at /local/svn/kde/trunk/KDE/kdelibs/kdecore/io/kdirwatch.cpp:1725
#16 0xb5c55b34 in KNFSShare::~KNFSShare (this=0x8240f18, __in_chrg=<value optimized out>) at /local/svn/kde/trunk/KDE/kdelibs/kio/kio/knfsshare.cpp:178
#17 0xb5c55bad in KNFSShare::~KNFSShare (this=0x8240f18, __in_chrg=<value optimized out>) at /local/svn/kde/trunk/KDE/kdelibs/kio/kio/knfsshare.cpp:181
#18 0xb5c55f1d in destroy () at /local/svn/kde/trunk/KDE/kdelibs/kio/kio/knfsshare.cpp:217
#19 0xb5b86969 in KCleanUpGlobalStatic::~KCleanUpGlobalStatic (this=0xb5d2eafc, __in_chrg=<value optimized out>) at /local/svn/kde/trunk/KDE/kdelibs/kdecore/kernel/kglobal.h:62
#20 0xb5dbb7cf in __run_exit_handlers (status=0, listp=0xb5ef4304, run_list_atexit=true) at exit.c:78
#21 0xb5dbb82d in exit (status=0) at exit.c:100
#22 0xb5da3c16 in __libc_start_main (main=0x804ee68 <main(int, char**)>, argc=1, ubp_av=0xbfaa4324, init=0x8051660 <__libc_csu_init>, fini=0x80516d0 <__libc_csu_fini>, rtld_fini=
    0xb78d9b30 <_dl_fini>, stack_end=0xbfaa431c) at libc-start.c:258
#23 0x0804ec91 in _start () at ../sysdeps/i386/elf/start.S:119

Reported using DrKonqi
Comment 1 Christoph Feck 2011-01-18 00:00:48 UTC
I just got the same crash with Dolphin and KolourPaint, so it is not related to Okteta at all.
Comment 2 Frank Reininghaus 2011-01-18 16:54:01 UTC
Caused by the fix for bug 261541.
Comment 3 Frank Reininghaus 2011-01-18 20:29:49 UTC
It seems it's fixed by r1215435. I don't get the crash any more :-)
Comment 4 David Faure 2011-01-20 20:18:45 UTC
Yep, fixed.