Bug 302707

Summary: KMail Fatal Error: Accessed global static 'SchedulerPrivate *schedulerPrivate()'
Product: [Applications] kontact Reporter: Christopher Yeleighton <giecrilj>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: fizista, martin.ruessler
Priority: NOR    
Version: 4.8.x   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Christopher Yeleighton 2012-06-28 16:31:41 UTC
Application: kontact (4.7.2)
KDE Platform Version: 4.8.4 (4.8.4)
Qt Version: 4.8.2
Operating System: Linux 3.1.10-1.13-desktop x86_64
Distribution: "openSUSE 12.1 (x86_64)"

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

I was waiting for Kontact to display my e-mail.  Kontact would not update and then it crashed.

-- Backtrace:
Application: Kontact (kontact), signal: Aborted
[Current thread is 1 (Thread 0x7fbb3a5a9760 (LWP 4995))]

Thread 3 (Thread 0x7fbb216c5700 (LWP 5080)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fbb36dab9dc in WTF::TCMalloc_PageHeap::scavengerThread (this=0x7fbb37762200) at ../../../Source/JavaScriptCore/wtf/FastMalloc.cpp:2495
#2  0x00007fbb36dabb09 in WTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at ../../../Source/JavaScriptCore/wtf/FastMalloc.cpp:1618
#3  0x00007fbb3243bf05 in start_thread (arg=0x7fbb216c5700) at pthread_create.c:301
#4  0x00007fbb37ab610d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7fbb20dac700 (LWP 5089)):
#0  0x00007fbb37aacff3 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fbb310c5a98 in g_main_context_poll (n_fds=1, fds=0x7fbb1c0013e0, timeout=3909, context=0x7fbb1c0009a0, priority=<optimized out>) at gmain.c:3386
#2  g_main_context_iterate (context=0x7fbb1c0009a0, block=<optimized out>, dispatch=1, self=<optimized out>) at gmain.c:3068
#3  0x00007fbb310c5f59 in g_main_context_iteration (context=0x7fbb1c0009a0, may_block=1) at gmain.c:3136
#4  0x00007fbb38efee36 in QEventDispatcherGlib::processEvents (this=0x7fbb1c0008c0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007fbb38ece842 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007fbb38ecea97 in QEventLoop::exec (this=0x7fbb20dabe20, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007fbb38dce5f7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#8  0x00007fbb38dd161b in QThreadPrivate::start (arg=0x6454b0) at thread/qthread_unix.cpp:307
#9  0x00007fbb3243bf05 in start_thread (arg=0x7fbb20dac700) at pthread_create.c:301
#10 0x00007fbb37ab610d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7fbb3a5a9760 (LWP 4995)):
[KCrash Handler]
#6  0x00007fbb37a0fd95 in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007fbb37a112ab in __GI_abort () at abort.c:93
#8  0x00007fbb38dc6d44 in qt_message_output (msgType=<optimized out>, buf=<optimized out>) at global/qglobal.cpp:2260
#9  0x00007fbb38dc6eff in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, msg=0x7fbb35077bf8 "Fatal Error: Accessed global static '%s *%s()' after destruction. Defined at %s:%d", ap=0x7fff0c45e118) at global/qglobal.cpp:2306
#10 0x00007fbb38dc70a4 in qFatal (msg=<optimized out>) at global/qglobal.cpp:2489
#11 0x00007fbb34fc2c9c in operator-> (this=<optimized out>) at /usr/src/debug/kdelibs-4.8.4/kio/kio/scheduler.cpp:752
#12 operator-> (this=<optimized out>) at /usr/src/debug/kdelibs-4.8.4/kio/kio/scheduler.cpp:752
#13 0x00007fbb34fc6879 in KIO::Scheduler::cancelJob (job=0x34507f0) at /usr/src/debug/kdelibs-4.8.4/kio/kio/scheduler.cpp:816
#14 0x00007fbb34f3a8ce in KIO::SimpleJob::doKill (this=0x34507f0) at /usr/src/debug/kdelibs-4.8.4/kio/kio/job.cpp:317
#15 0x00007fbb39364f5a in KJob::kill (this=0x34507f0, verbosity=KJob::Quietly) at /usr/src/debug/kdelibs-4.8.4/kdecore/jobs/kjob.cpp:111
#16 0x00007fbad33ede18 in Syndication::FileRetriever::abort (this=0x34502a0) at /usr/src/debug/kdepimlibs-4.7.2/syndication/dataretriever.cpp:145
#17 0x00007fbad3405aff in Syndication::Loader::abort (this=0x344fd90) at /usr/src/debug/kdepimlibs-4.7.2/syndication/loader.cpp:107
#18 0x00007fbad3696c7d in Akregator::FetchQueue::slotAbort (this=0x10878e0) at /usr/src/debug/kdepim-4.7.2/akregator/src/fetchqueue.cpp:61
#19 0x00007fbad3696f14 in Akregator::FetchQueue::~FetchQueue (this=0x10878e0, __in_chrg=<optimized out>) at /usr/src/debug/kdepim-4.7.2/akregator/src/fetchqueue.cpp:51
#20 0x00007fbad3696f89 in Akregator::FetchQueue::~FetchQueue (this=0x10878e0, __in_chrg=<optimized out>) at /usr/src/debug/kdepim-4.7.2/akregator/src/fetchqueue.cpp:54
#21 0x00007fbad36956bd in Akregator::Kernel::~Kernel (this=0x7fbad38b7bf8, __in_chrg=<optimized out>) at /usr/src/debug/kdepim-4.7.2/akregator/src/kernel.cpp:67
#22 0x00007fbb37a129a1 in __run_exit_handlers (status=255, listp=0x7fbb37d654e8, run_list_atexit=true) at exit.c:78
#23 0x00007fbb37a12a25 in __GI_exit (status=<optimized out>) at exit.c:100
#24 0x00007fbb39375ad6 in KCmdLineArgs::isSet (this=0x14fa360, _opt=<optimized out>) at /usr/src/debug/kdelibs-4.8.4/kdecore/kernel/kcmdlineargs.cpp:1511
#25 0x0000000000404377 in KontactApp::newInstance (this=0x7fff0c45f600) at /usr/src/debug/kdepim-4.7.2/kontact/src/main.cpp:129
#26 0x00007fbb3995af02 in KUniqueApplicationAdaptor::newInstance (this=0x7a3fa0, asn_id=<optimized out>, args=...) at /usr/src/debug/kdelibs-4.8.4/kdeui/kernel/kuniqueapplication.cpp:442
#27 0x00007fbb3995af84 in qt_static_metacall (_a=0x7fff0c45e890, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at /usr/src/debug/kdelibs-4.8.4/build/kdeui/kuniqueapplication_p.moc:58
#28 KUniqueApplicationAdaptor::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=0x7fff0c45e890) at /usr/src/debug/kdelibs-4.8.4/build/kdeui/kuniqueapplication_p.moc:52
#29 0x00007fbb3995b0cb in KUniqueApplicationAdaptor::qt_metacall (this=0x7a3fa0, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fff0c45e890) at /usr/src/debug/kdelibs-4.8.4/build/kdeui/kuniqueapplication_p.moc:102
#30 0x00007fbb34bdbf6b in QDBusConnectionPrivate::deliverCall (this=0x62dfc0, object=0x7a3fa0, msg=..., metaTypes=..., slotIdx=4) at qdbusintegrator.cpp:947
#31 0x00007fbb34bdd13d in QDBusConnectionPrivate::activateCall (this=0x62dfc0, object=0x7a3fa0, flags=337, msg=...) at qdbusintegrator.cpp:857
#32 0x00007fbb34bdda9b in QDBusConnectionPrivate::activateObject (this=0x62dfc0, node=..., msg=..., pathStartPos=<optimized out>) at qdbusintegrator.cpp:1423
#33 0x00007fbb34bddb8b in QDBusActivateObjectEvent::placeMetaCall (this=0x14ea6c0) at qdbusintegrator.cpp:1537
#34 0x00007fbb38ee8e06 in QObject::event (this=0x7fff0c45f600, e=<optimized out>) at kernel/qobject.cpp:1204
#35 0x00007fbb38256e34 in QApplication::event (this=0x7fff0c45f600, e=0x14ea6c0) at kernel/qapplication.cpp:2533
#36 0x00007fbb38252fe4 in notify_helper (e=0x14ea6c0, receiver=0x7fff0c45f600, this=0x640430) at kernel/qapplication.cpp:4551
#37 QApplicationPrivate::notify_helper (this=0x640430, receiver=0x7fff0c45f600, e=0x14ea6c0) at kernel/qapplication.cpp:4523
#38 0x00007fbb38257db3 in QApplication::notify (this=0x7fff0c45f600, receiver=0x7fff0c45f600, e=0x14ea6c0) at kernel/qapplication.cpp:4412
#39 0x00007fbb39955746 in KApplication::notify (this=0x7fff0c45f600, receiver=0x7fff0c45f600, event=0x14ea6c0) at /usr/src/debug/kdelibs-4.8.4/kdeui/kernel/kapplication.cpp:311
#40 0x00007fbb38ecfd0c in QCoreApplication::notifyInternal (this=0x7fff0c45f600, receiver=0x7fff0c45f600, event=0x14ea6c0) at kernel/qcoreapplication.cpp:915
#41 0x00007fbb38ed35ba in sendEvent (event=0x14ea6c0, receiver=0x7fff0c45f600) at kernel/qcoreapplication.h:231
#42 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x60d110) at kernel/qcoreapplication.cpp:1539
#43 0x00007fbb38efe9a3 in sendPostedEvents () at kernel/qcoreapplication.h:236
#44 postEventSourceDispatch (s=0x64a4d0) at kernel/qeventdispatcher_glib.cpp:279
#45 0x00007fbb310c558d in g_main_dispatch (context=0x648de0) at gmain.c:2425
#46 g_main_context_dispatch (context=0x648de0) at gmain.c:2995
#47 0x00007fbb310c5d88 in g_main_context_iterate (context=0x648de0, block=<optimized out>, dispatch=1, self=<optimized out>) at gmain.c:3073
#48 0x00007fbb310c5f59 in g_main_context_iteration (context=0x648de0, may_block=1) at gmain.c:3136
#49 0x00007fbb38efedcf in QEventDispatcherGlib::processEvents (this=0x60c9d0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#50 0x00007fbb382f669e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#51 0x00007fbb38ece842 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#52 0x00007fbb38ecea97 in QEventLoop::exec (this=0x7fff0c45f590, flags=...) at kernel/qeventloop.cpp:204
#53 0x00007fbb38ed38b5 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#54 0x0000000000403919 in main (argc=3, argv=0x7fff0c45fc28) at /usr/src/debug/kdepim-4.7.2/kontact/src/main.cpp:218

Possible duplicates by query: bug 296226, bug 286605, bug 286172, bug 281038, bug 277629.

Reported using DrKonqi
Comment 1 Myriam Schweingruber 2012-09-25 08:36:08 UTC
*** Bug 307369 has been marked as a duplicate of this bug. ***
Comment 2 Myriam Schweingruber 2012-09-25 08:36:38 UTC
Confirmed by duplicate.
Comment 3 Martin 2012-12-13 19:04:04 UTC
Created attachment 75815 [details]
New crash information added by DrKonqi

kontact (4.9.4) on KDE Platform 4.9.4 using Qt 4.8.3

- What I was doing when the application crashed:

I had two active activities, Kontact running on one of them, I was using the other. When I clicked on the Kontact icon in the icon-only task manager Kontact crashed. I tried three times to reproduce the crash by running Kontact on a different activity from where I activated it but, alas, with no luck ;)

-- Backtrace (Reduced):
#6  0x00007f3cbe5b7425 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007f3cbe5bab8b in __GI_abort () at abort.c:91
[...]
#11 0x00007f3c5b70ba47 in operator-> (this=<optimized out>) at ../../mailcommon/mailkernel.cpp:53
#12 MailCommon::Kernel::self () at ../../mailcommon/mailkernel.cpp:69
#13 0x00007f3c5b6fe169 in MailCommon::FolderCollection::writeConfig (this=this@entry=0x2d57350) at ../../mailcommon/foldercollection.cpp:208
Comment 4 Denis Kurz 2016-09-24 19:24:05 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kontact (version 5.0 or later, as part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 5 Denis Kurz 2017-01-07 22:41:07 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.