Bug 333987 - Crash on Login, QtScript compiled with gcc 4.9.0 [QTJSC::JSGlobalData::storeVPtrs]
Summary: Crash on Login, QtScript compiled with gcc 4.9.0 [QTJSC::JSGlobalData::storeV...
Status: RESOLVED DOWNSTREAM
Alias: None
Product: plasma4
Classification: Plasma
Component: general (show other bugs)
Version: 4.11.8
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: drkonqi
: 333886 334047 334058 334096 334243 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-04-28 06:39 UTC by Joseph D. Wagner
Modified: 2014-10-25 23:32 UTC (History)
17 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (4.78 KB, text/plain)
2014-04-28 20:00 UTC, Karsten Roch
Details
New crash information added by DrKonqi (4.68 KB, text/plain)
2014-04-30 15:54 UTC, Mike Ruckman
Details
New crash information added by DrKonqi (6.04 KB, text/plain)
2014-05-05 20:00 UTC, Mike Ruckman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph D. Wagner 2014-04-28 06:39:20 UTC
Application: plasma-desktop (4.11.8)
KDE Platform Version: 4.13.0
Qt Version: 4.8.6
Operating System: Linux 3.15.0-0.rc2.git3.1.fc21.x86_64 x86_64
Distribution (Platform): Fedora RPMs

-- Information about the crash:
I was attempting to logon for the first time after installation.  I am on Fedora Rawhide.

The crash can be reproduced every time.

-- Backtrace:
Application: Plasma Desktop Shell (plasma-desktop), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
81	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7f7c4e239880 (LWP 1481))]

Thread 2 (Thread 0x7f7c21ee0700 (LWP 1486)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f7c365de21a in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7f7c368e1f80 <QTWTF::pageheap_memory>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x00007f7c365de249 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x00007f7c4c804555 in start_thread (arg=0x7f7c21ee0700) at pthread_create.c:309
#4  0x00007f7c4adc7e2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f7c4e239880 (LWP 1481)):
[KCrash Handler]
#6  derefBase (this=0x0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/RefCounted.h:69
#7  deref (this=0x0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/RefCounted.h:108
#8  derefIfNotNull<QTJSC::Structure> (ptr=0x0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/PassRefPtr.h:42
#9  ~NonNullPassRefPtr (this=0x7fffebb1f8a0, __in_chrg=<optimized out>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/PassRefPtr.h:129
#10 QTJSC::JSGlobalData::storeVPtrs () at ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalData.cpp:85
#11 0x00007f7c3656f143 in initializeThreadingOnce () at ../3rdparty/javascriptcore/JavaScriptCore/runtime/InitializeThreading.cpp:52
#12 QTJSC::initializeThreading () at ../3rdparty/javascriptcore/JavaScriptCore/runtime/InitializeThreading.cpp:66
#13 0x00007f7c366222b8 in QScriptEnginePrivate::QScriptEnginePrivate (this=this@entry=0x24e1ef0) at api/qscriptengine.cpp:977
#14 0x00007f7c3662312f in QScriptEngine::QScriptEngine (this=0x7fffebb1fc70, parent=0x0) at api/qscriptengine.cpp:1976
#15 0x00007f7c2c82832c in WorkspaceScripting::ScriptEngine::ScriptEngine(Plasma::Corona*, QObject*) () from /lib64/libplasmagenericshell.so.4
#16 0x00007f7c2d3ad1d3 in WorkspaceScripting::DesktopScriptEngine::DesktopScriptEngine(Plasma::Corona*, bool, QObject*) () from /usr/lib64/libkdeinit4_plasma-desktop.so
#17 0x00007f7c2d3b8c1c in DesktopCorona::evaluateScripts(QStringList const&, bool) () from /usr/lib64/libkdeinit4_plasma-desktop.so
#18 0x00007f7c2d3b902a in DesktopCorona::loadDefaultLayout() () from /usr/lib64/libkdeinit4_plasma-desktop.so
#19 0x00007f7c38e5b04f in Plasma::Corona::initializeLayout (this=0x246ae90, configName=...) at /usr/src/debug/kdelibs-4.13.0/plasma/corona.cpp:185
#20 0x00007f7c2d3db2f7 in PlasmaApp::corona(bool) () from /usr/lib64/libkdeinit4_plasma-desktop.so
#21 0x00007f7c2d3db794 in PlasmaApp::setupDesktop() () from /usr/lib64/libkdeinit4_plasma-desktop.so
#22 0x00007f7c2d3e0d85 in PlasmaApp::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) [clone .part.83] () from /usr/lib64/libkdeinit4_plasma-desktop.so
#23 0x00007f7c4cbb8b51 in QObject::event (this=this@entry=0x2319310, e=e@entry=0x2463f10) at kernel/qobject.cpp:1222
#24 0x00007f7c4cba3cbc in QCoreApplication::event (this=this@entry=0x2319310, e=e@entry=0x2463f10) at kernel/qcoreapplication.cpp:1765
#25 0x00007f7c4bcdd323 in QApplication::event (this=0x2319310, e=0x2463f10) at kernel/qapplication.cpp:2544
#26 0x00007f7c4bcd7fbc in QApplicationPrivate::notify_helper (this=this@entry=0x2333670, receiver=receiver@entry=0x2319310, e=e@entry=0x2463f10) at kernel/qapplication.cpp:4565
#27 0x00007f7c4bcdea58 in QApplication::notify (this=this@entry=0x2319310, receiver=receiver@entry=0x2319310, e=e@entry=0x2463f10) at kernel/qapplication.cpp:4351
#28 0x00007f7c4dbffc7a in KApplication::notify (this=0x2319310, receiver=0x2319310, event=0x2463f10) at /usr/src/debug/kdelibs-4.13.0/kdeui/kernel/kapplication.cpp:311
#29 0x00007f7c4cb9f7ed in QCoreApplication::notifyInternal (this=0x2319310, receiver=receiver@entry=0x2319310, event=event@entry=0x2463f10) at kernel/qcoreapplication.cpp:953
#30 0x00007f7c4cba2ab1 in sendEvent (event=0x2463f10, receiver=0x2319310) at kernel/qcoreapplication.h:231
#31 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x22511d0) at kernel/qcoreapplication.cpp:1577
#32 0x00007f7c4cba2f43 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1470
#33 0x00007f7c4cbceaa3 in sendPostedEvents () at kernel/qcoreapplication.h:236
#34 postEventSourceDispatch (s=0x2331520) at kernel/qeventdispatcher_glib.cpp:280
#35 0x00007f7c474a69aa in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#36 0x00007f7c474a6cf8 in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#37 0x00007f7c474a6dac in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#38 0x00007f7c4cbcebed in QEventDispatcherGlib::processEvents (this=0x2331de0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#39 0x00007f7c4bd7b556 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#40 0x00007f7c4cb9e321 in QEventLoop::processEvents (this=this@entry=0x7fffebb20610, flags=...) at kernel/qeventloop.cpp:149
#41 0x00007f7c4cb9e685 in QEventLoop::exec (this=this@entry=0x7fffebb20610, flags=...) at kernel/qeventloop.cpp:204
#42 0x00007f7c4cba3d77 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225
#43 0x00007f7c2d3c1612 in kdemain () from /usr/lib64/libkdeinit4_plasma-desktop.so
#44 0x000000000040822b in launch (argc=argc@entry=1, _name=_name@entry=0x22d9368 "/usr/bin/plasma-desktop", args=args@entry=0x22d9380 "", cwd=cwd@entry=0x0, envc=envc@entry=0, envs=<optimized out>, envs@entry=0x22d9388 "", reset_env=false, tty=0x0, avoid_loops=false, startup_id_str=0x40ab25 "0") at /usr/src/debug/kdelibs-4.13.0/kinit/kinit.cpp:726
#45 0x00000000004090c9 in handle_launcher_request (sock=8, who=<optimized out>) at /usr/src/debug/kdelibs-4.13.0/kinit/kinit.cpp:1218
#46 0x00000000004097a7 in handle_requests (waitForPid=waitForPid@entry=0) at /usr/src/debug/kdelibs-4.13.0/kinit/kinit.cpp:1411
#47 0x000000000040537d in main (argc=4, argv=<optimized out>, envp=0x7fffebb211f0) at /usr/src/debug/kdelibs-4.13.0/kinit/kinit.cpp:1899

Reported using DrKonqi
Comment 1 Martin Kho 2014-04-28 18:52:48 UTC
Hi,

I got the same crash, after qt was updated from qt-4.8.6-0.1.rc1.fc21 to qt-4.8.6-2.fc21  (all qt-4.8.6 final versions failed for me). So - to me - it looks like qt is the culprit, not kwin/plasma.

HTH,

Martin Kho
Comment 2 Karsten Roch 2014-04-28 20:00:30 UTC
Created attachment 86319 [details]
New crash information added by DrKonqi

plasma-desktop (4.11.8) on KDE Platform 4.13.0 using Qt 4.8.6

- What I was doing when the application crashed:

Similar issue her, also on Fedora Rawhide.

-- Backtrace (Reduced):
#5  0x0000003db2f33f18 in QTJSC::JSGlobalData::storeVPtrs() () from /lib64/libQtScript.so.4
#6  0x0000003db2f29103 in QTJSC::initializeThreading() () from /lib64/libQtScript.so.4
#7  0x0000003db2fdda98 in QScriptEnginePrivate::QScriptEnginePrivate() () from /lib64/libQtScript.so.4
#8  0x0000003db2fde96e in QScriptEngine::QScriptEngine() () from /lib64/libQtScript.so.4
#9  0x0000003db7db244f in QDeclarativeScriptEngine::QDeclarativeScriptEngine(QDeclarativeEnginePrivate*) () from /lib64/libQtDeclarative.so.4
Comment 3 Rex Dieter 2014-04-28 20:17:41 UTC
Seems to be a problem with Qt JSC when compiled with GCC 4.9.0 (which landed recently in rawhide).
Comment 4 Rex Dieter 2014-04-28 23:03:41 UTC
See also downstream bug,
https://bugzilla.redhat.com/show_bug.cgi?id=1091482
Comment 5 Christoph Feck 2014-04-29 09:13:16 UTC
*** Bug 333886 has been marked as a duplicate of this bug. ***
Comment 6 Christoph Feck 2014-04-29 09:13:52 UTC
*** Bug 334047 has been marked as a duplicate of this bug. ***
Comment 7 Thomas Lübking 2014-04-29 18:13:30 UTC
*** Bug 334058 has been marked as a duplicate of this bug. ***
Comment 8 Christoph Feck 2014-04-29 21:47:58 UTC
*** Bug 334096 has been marked as a duplicate of this bug. ***
Comment 9 Gianni 2014-04-30 15:50:00 UTC
Same problem here with Gentoo and GCC 4.9.0.
Comment 10 Rex Dieter 2014-04-30 15:52:59 UTC
Gianni, thanks for the confirmation. I'll try to work today to poke gcc/qt-project.org upstreams harder
Comment 11 Mike Ruckman 2014-04-30 15:54:24 UTC
Created attachment 86374 [details]
New crash information added by DrKonqi

plasma-desktop (4.11.9) on KDE Platform 4.13.0 using Qt 4.8.6

- What I was doing:
Simply started KDE and it crashed. Also caused a crash in KWin. Though, on an interesting note  - applications still display and work fine. From the KDE Crash Handler tool I was able to launch my browser, terminal and email client.

-- Backtrace (Reduced):
#5  0x00007f1fa36a4d18 in QTJSC::JSGlobalData::storeVPtrs() () from /lib64/libQtScript.so.4
#6  0x00007f1fa369a143 in QTJSC::initializeThreading() () from /lib64/libQtScript.so.4
#7  0x00007f1fa374d2b8 in QScriptEnginePrivate::QScriptEnginePrivate() () from /lib64/libQtScript.so.4
#8  0x00007f1fa374e12f in QScriptEngine::QScriptEngine(QObject*) () from /lib64/libQtScript.so.4
#9  0x00007f1f9994232c in WorkspaceScripting::ScriptEngine::ScriptEngine(Plasma::Corona*, QObject*) () from /lib64/libplasmagenericshell.so.4
Comment 12 Rex Dieter 2014-05-02 12:24:28 UTC
Reported to qt-project at:
https://bugreports.qt-project.org/browse/QTBUG-38733
Comment 13 Andrea Scarpino 2014-05-02 14:08:00 UTC
Confirmed on Arch too, this is an upstream bug.
Comment 14 Andrea Scarpino 2014-05-02 14:09:24 UTC
(In reply to comment #13)
> Confirmed on Arch too, this is an upstream bug.

Sorry for my non-sense comment, I just read Rex comment :-)
Comment 15 Jekyll Wu 2014-05-03 00:52:23 UTC
*** Bug 334243 has been marked as a duplicate of this bug. ***
Comment 16 Rex Dieter 2014-05-03 14:12:35 UTC
Comment in qt project bug, https://bugreports.qt-project.org/browse/QTBUG-38733 ,  thinks this is indeed a gcc bug:
"This seems to be http://gcc.gnu.org/PR60965. The patch in the comments there avoids the crash (after only recompiling JSGlobalData.cpp with the patched compiler)."
Comment 17 Mike Ruckman 2014-05-05 20:00:37 UTC
Created attachment 86476 [details]
New crash information added by DrKonqi

plasma-desktop (4.11.9) on KDE Platform 4.13.0 using Qt 4.8.6

- What I was doing when the application crashed:

Started KDE and had an instant crash. Running most recent versions from rawhide (qt-4.8.6-2.fc21.x86_64).

-- Backtrace (Reduced):
#6  0x00007f1d09141d18 in QTJSC::JSGlobalData::storeVPtrs() () from /lib64/libQtScript.so.4
#7  0x00007f1d09137143 in QTJSC::initializeThreading() () from /lib64/libQtScript.so.4
#8  0x00007f1d091ea2b8 in QScriptEnginePrivate::QScriptEnginePrivate() () from /lib64/libQtScript.so.4
#9  0x00007f1d091eb12f in QScriptEngine::QScriptEngine(QObject*) () from /lib64/libQtScript.so.4
#10 0x00007f1cff3e332c in WorkspaceScripting::ScriptEngine::ScriptEngine (this=0x7fffcfda6c10, corona=0x9a1710, parent=<optimized out>) at /usr/src/debug/kde-workspace-4.11.9/libs/plasmagenericshell/scripting/scriptengine.cpp:60
Comment 18 Christoph Feck 2014-05-15 22:40:11 UTC
gcc's bugzilla says the bug is fixed, but I am a bit puzzled because the page says it is fixed in 4.10.0 (and is "Known to work" in 4.9.0), so I am not sure if the bug is actually related.

Can somebody re-test with a recent gcc checkout?
Comment 19 Rex Dieter 2014-05-16 03:06:27 UTC
The fix was included in gcc-4.9 branch too, and I can confirm a recent gcc-4.9 branch build fixes the issue.

note, there is no gcc-4.9.1 release that includes this fix, yet.