Bug 325529 - Dolphin running as root crashes when column headings are moved
Summary: Dolphin running as root crashes when column headings are moved
Status: RESOLVED UPSTREAM
Alias: None
Product: dolphin
Classification: Applications
Component: general (other bugs)
Version First Reported In: 2.2
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords: drkonqi
: 337329 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-10-02 04:25 UTC by George Dvorak
Modified: 2014-07-10 21:27 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description George Dvorak 2013-10-02 04:25:26 UTC
Application: dolphin (2.2)
KDE Platform Version: 4.10.5
Qt Version: 4.8.4
Operating System: Linux 3.8.0-31-generic x86_64
Distribution: Ubuntu 13.04

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

- Custom settings of the application: This happens only on a version that is running as ROOT both by going into icon settings Applications Advanced Options and checking Run as different user
NOTE:  Username can be blank or root (either seems to be root).

OR go into icon settings Applications Advanced Options on the command line kdesudo -c dolphin %i -caption "%c" %u

Cicking and beginning to drag any header causes the crash. The copy that is running as myself does not crash under the same conditions.

-- Backtrace:
Application: Dolphin (dolphin), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f921612b7c0 (LWP 4927))]

Thread 3 (Thread 0x7f91f928b700 (LWP 4929)):
#0  timerSourcePrepareHelper (src=<optimized out>, timeout=0x7f91f928ab04) at kernel/qeventdispatcher_glib.cpp:139
#1  0x00007f92118bc845 in timerSourcePrepare (source=<optimized out>, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#2  0x00007f920d227900 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f920d2280fe in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f920d228304 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f92118bd036 in QEventDispatcherGlib::processEvents (this=0x7f91f40008f0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007f921188d38f in QEventLoop::processEvents (this=this@entry=0x7f91f928acd0, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f921188d618 in QEventLoop::exec (this=this@entry=0x7f91f928acd0, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f921178f410 in QThread::exec (this=this@entry=0x2628540) at thread/qthread.cpp:542
#9  0x00007f921186eedf in QInotifyFileSystemWatcherEngine::run (this=0x2628540) at io/qfilesystemwatcher_inotify.cpp:256
#10 0x00007f9211791bec in QThreadPrivate::start (arg=0x2628540) at thread/qthread_unix.cpp:338
#11 0x00007f9204b8b764 in ?? () from /usr/lib/nvidia-304/libGL.so.1
#12 0x00007f920d6faf8e in start_thread (arg=0x7f91f928b700) at pthread_create.c:311
#13 0x00007f92159f6e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 2 (Thread 0x7f91f3fff700 (LWP 4931)):
#0  0x00007f920d26735c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f920d2675b9 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f920d22790b in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f920d2280fe in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f920d228304 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f92118bd036 in QEventDispatcherGlib::processEvents (this=0x7f91ec0008f0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007f921188d38f in QEventLoop::processEvents (this=this@entry=0x7f91f3ffecd0, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f921188d618 in QEventLoop::exec (this=this@entry=0x7f91f3ffecd0, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f921178f410 in QThread::exec (this=this@entry=0x2433110) at thread/qthread.cpp:542
#9  0x00007f921186eedf in QInotifyFileSystemWatcherEngine::run (this=0x2433110) at io/qfilesystemwatcher_inotify.cpp:256
#10 0x00007f9211791bec in QThreadPrivate::start (arg=0x2433110) at thread/qthread_unix.cpp:338
#11 0x00007f9204b8b764 in ?? () from /usr/lib/nvidia-304/libGL.so.1
#12 0x00007f920d6faf8e in start_thread (arg=0x7f91f3fff700) at pthread_create.c:311
#13 0x00007f92159f6e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7f921612b7c0 (LWP 4927)):
[KCrash Handler]
#6  0x00007f91fd94bcba in ?? () from /usr/lib/kde4/plugins/styles/libpolyester.so
#7  0x00007f9212593975 in QCommonStyle::drawControl (this=this@entry=0x2206ea0, element=element@entry=QStyle::CE_Header, opt=opt@entry=0x7fff4d1f0220, p=p@entry=0x7fff4d1f0310, widget=widget@entry=0x0) at styles/qcommonstyle.cpp:2054
#8  0x00007f9212f9196b in KStyle::drawControl (this=0x2206ea0, element=QStyle::CE_Header, option=0x7fff4d1f0220, p=0x7fff4d1f0310, widget=0x0) at ../../kdeui/kernel/kstyle.cpp:2508
#9  0x00007f91fd9473a8 in ?? () from /usr/lib/kde4/plugins/styles/libpolyester.so
#10 0x00007f9214d3b65d in KItemListHeaderWidget::paintRole (this=this@entry=0x247e510, painter=painter@entry=0x7fff4d1f0310, role=..., rect=..., orderIndex=orderIndex@entry=1, widget=widget@entry=0x0) at ../../../dolphin/src/kitemviews/private/kitemlistheaderwidget.cpp:422
#11 0x00007f9214d3cabc in KItemListHeaderWidget::createRolePixmap (this=this@entry=0x247e510, roleIndex=roleIndex@entry=1) at ../../../dolphin/src/kitemviews/private/kitemlistheaderwidget.cpp:480
#12 0x00007f9214d3d256 in KItemListHeaderWidget::mouseMoveEvent (this=0x247e510, event=0x7fff4d1f0c10) at ../../../dolphin/src/kitemviews/private/kitemlistheaderwidget.cpp:281
#13 0x00007f9212837e6d in QGraphicsItem::sceneEvent (this=0x247e520, event=0x7fff4d1f0c10) at graphicsview/qgraphicsitem.cpp:6736
#14 0x00007f9212862640 in sendMouseEvent (mouseEvent=0x7fff4d1f0c10, this=0x24ae380) at graphicsview/qgraphicsscene.cpp:1295
#15 QGraphicsScenePrivate::sendMouseEvent (this=0x24ae380, mouseEvent=0x7fff4d1f0c10) at graphicsview/qgraphicsscene.cpp:1274
#16 0x00007f921286aeec in QGraphicsScene::mouseMoveEvent (this=<optimized out>, mouseEvent=0x7fff4d1f0c10) at graphicsview/qgraphicsscene.cpp:4102
#17 0x00007f9212876470 in QGraphicsScene::event (this=0x2393910, event=0x7fff4d1f0c10) at graphicsview/qgraphicsscene.cpp:3451
#18 0x00007f92122788ec in QApplicationPrivate::notify_helper (this=this@entry=0x21a3950, receiver=receiver@entry=0x2393910, e=e@entry=0x7fff4d1f0c10) at kernel/qapplication.cpp:4567
#19 0x00007f921227b25b in QApplication::notify (this=this@entry=0x7fff4d1f22d0, receiver=receiver@entry=0x2393910, e=e@entry=0x7fff4d1f0c10) at kernel/qapplication.cpp:4428
#20 0x00007f9212f841a6 in KApplication::notify (this=0x7fff4d1f22d0, receiver=0x2393910, event=0x7fff4d1f0c10) at ../../kdeui/kernel/kapplication.cpp:311
#21 0x00007f921188e63e in QCoreApplication::notifyInternal (this=0x7fff4d1f22d0, receiver=0x2393910, event=0x7fff4d1f0c10, event@entry=0x7fff4d1f0b40) at kernel/qcoreapplication.cpp:946
#22 0x00007f9212277226 in sendSpontaneousEvent (event=event@entry=0x7fff4d1f0b40, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:234
#23 qt_sendSpontaneousEvent (receiver=<optimized out>, event=event@entry=0x7fff4d1f0c10) at kernel/qapplication.cpp:5565
#24 0x00007f921288e064 in QGraphicsViewPrivate::mouseMoveEventHandler (this=this@entry=0x2413720, event=event@entry=0x7fff4d1f1640) at graphicsview/qgraphicsview.cpp:646
#25 0x00007f921288e3ee in QGraphicsView::mouseMoveEvent (this=0x2393a20, event=0x7fff4d1f1640) at graphicsview/qgraphicsview.cpp:3276
#26 0x00007f92122c5abb in QWidget::event (this=this@entry=0x2393a20, event=event@entry=0x7fff4d1f1640) at kernel/qwidget.cpp:8360
#27 0x00007f9212678486 in QFrame::event (this=0x2393a20, e=0x7fff4d1f1640) at widgets/qframe.cpp:557
#28 0x00007f921289024b in QGraphicsView::viewportEvent (this=0x2393a20, event=0x7fff4d1f1640) at graphicsview/qgraphicsview.cpp:2866
#29 0x00007f921188e7a6 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=this@entry=0x21a3950, receiver=receiver@entry=0x24704c0, event=event@entry=0x7fff4d1f1640) at kernel/qcoreapplication.cpp:1056
#30 0x00007f92122788bc in QApplicationPrivate::notify_helper (this=this@entry=0x21a3950, receiver=receiver@entry=0x24704c0, e=e@entry=0x7fff4d1f1640) at kernel/qapplication.cpp:4563
#31 0x00007f921227ba33 in QApplication::notify (this=this@entry=0x7fff4d1f22d0, receiver=receiver@entry=0x24704c0, e=e@entry=0x7fff4d1f1640) at kernel/qapplication.cpp:4110
#32 0x00007f9212f841a6 in KApplication::notify (this=0x7fff4d1f22d0, receiver=0x24704c0, event=0x7fff4d1f1640) at ../../kdeui/kernel/kapplication.cpp:311
#33 0x00007f921188e63e in QCoreApplication::notifyInternal (this=0x7fff4d1f22d0, receiver=receiver@entry=0x24704c0, event=event@entry=0x7fff4d1f1640) at kernel/qcoreapplication.cpp:946
#34 0x00007f921227e933 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#35 QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x24704c0, event=event@entry=0x7fff4d1f1640, alienWidget=alienWidget@entry=0x24704c0, nativeWidget=nativeWidget@entry=0x22fe790, buttonDown=buttonDown@entry=0x7f9212d56308 <qt_button_down>, lastMouseReceiver=..., spontaneous=spontaneous@entry=true) at kernel/qapplication.cpp:3178
#36 0x00007f92122f3e54 in QETWidget::translateMouseEvent (this=this@entry=0x22fe790, event=event@entry=0x7fff4d1f1dc0) at kernel/qapplication_x11.cpp:4631
#37 0x00007f92122f2e81 in QApplication::x11ProcessEvent (this=0x7fff4d1f22d0, event=event@entry=0x7fff4d1f1dc0) at kernel/qapplication_x11.cpp:3746
#38 0x00007f921231e042 in x11EventSourceDispatch (s=0x219f5f0, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#39 0x00007f920d227f05 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#40 0x00007f920d228248 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#41 0x00007f920d228304 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#42 0x00007f92118bd016 in QEventDispatcherGlib::processEvents (this=0x216ac90, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#43 0x00007f921231e13e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#44 0x00007f921188d38f in QEventLoop::processEvents (this=this@entry=0x7fff4d1f2190, flags=...) at kernel/qeventloop.cpp:149
#45 0x00007f921188d618 in QEventLoop::exec (this=this@entry=0x7fff4d1f2190, flags=...) at kernel/qeventloop.cpp:204
#46 0x00007f9211892cf6 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#47 0x00007f9212276ffc in QApplication::exec () at kernel/qapplication.cpp:3828
#48 0x00007f9215d14827 in kdemain (argc=5, argv=0x7fff4d1f2408) at ../../../dolphin/src/main.cpp:90
#49 0x00007f921591eea5 in __libc_start_main (main=0x4006d0 <main(int, char**)>, argc=5, ubp_av=0x7fff4d1f2408, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff4d1f23f8) at libc-start.c:260
#50 0x0000000000400701 in _start ()

Possible duplicates by query: bug 311274.

Reported using DrKonqi
Comment 1 George Dvorak 2013-10-02 05:52:20 UTC
This indeed is caused by having kde-style-polyester installed, NOT IN USE. I am using Oxygen and have been for a long time.

Removing kde-style-polyester  causes the problem to go away, re installing without touching System Settings causes the problem to immediately reappear.  I am quit sure that I did not have this problem before. I wonder what upgrade caused kde-style-polyester to be installed. and have been for a lo9ng time
Comment 2 Frank Reininghaus 2013-10-02 06:55:26 UTC
Thanks for the bug report!

(In reply to comment #1)
> This indeed is caused by having kde-style-polyester installed, NOT IN USE. I
> am using Oxygen and have been for a long time.

But the backtrace clearly shows that it crashes in Polyester code. I think that Polyester does not use bugs.kde.org for tracking bugs, so I cannot reassign the report.

I don't know why the Polyester style is used even if you don't enable it explicitly. Have you tried to open System Settings and switch to another style explicitly, and then back to Oxygen? Does the problem persist then? If the Polyester style was installed via some distro upgrade, maybe the distro configured it to be the default.

Either way, this is clearly not a Dolphin bug, and my knowledge of styles is rather limited, so I can't provide any other suggestions what to try. Sorry about that.
Comment 3 Christoph Feck 2013-10-12 19:11:15 UTC
Polyester most certainly crashes because it assumes a widget is passed to the drawControl() call when rendering the header, but it is documented that a null pointer is safe to use.

A similar bug has already been reported to http://kde-look.org/content/show.php?content=27968 over a year ago (see latest comment), so I doubt the style is still maintained.

I always hated that kde-look.org is no public repo, where others could commit improvements, but if you point me to a public repo for Polyester, I can commit a fix.
Comment 4 Emmanuel Pescosta 2014-07-10 15:51:50 UTC
*** Bug 337329 has been marked as a duplicate of this bug. ***
Comment 5 George Dvorak 2014-07-10 19:52:45 UTC
I had that problem some time ago. Right now I am running Kubuntu 14.04 and
do not have the problem.

The cause as I seem to remember was having Plymouth loaded. Plymouth is
loaded on my system at the moment.

I see that there is an app called plymouth-disabler. Its stated purpose is
"This disables plymouth from running by installing .override files for each
of the plymouth jobs.  Its sole purpose is to work around bug 1235231."

This app is not running on my machine. Remember my mind fools me at times
but check on that bug number and see if it addresses your problem.

Oh, what version are you running.


On Thu, Jul 10, 2014 at 8:51 AM, Emmanuel Pescosta <
emmanuelpescosta099@gmail.com> wrote:

> https://bugs.kde.org/show_bug.cgi?id=325529
>
> Emmanuel Pescosta <emmanuelpescosta099@gmail.com> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>                  CC|                            |hyxabrod@gmail.com
>
> --- Comment #4 from Emmanuel Pescosta <emmanuelpescosta099@gmail.com> ---
> *** Bug 337329 has been marked as a duplicate of this bug. ***
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
> You reported the bug.
>
Comment 6 George Dvorak 2014-07-10 21:27:50 UTC
I am wrong! Ignore that previous reply.

kde-style-polyester is the culprit. Make sure that you do not have it
loaded.


On Thu, Jul 10, 2014 at 12:52 PM, George Dvorak <gldvorak@gmail.com> wrote:

> I had that problem some time ago. Right now I am running Kubuntu 14.04 and
> do not have the problem.
>
> The cause as I seem to remember was having Plymouth loaded. Plymouth is
> loaded on my system at the moment.
>
> I see that there is an app called plymouth-disabler. Its stated purpose is
> "This disables plymouth from running by installing .override files for each
> of the plymouth jobs.  Its sole purpose is to work around bug 1235231."
>
> This app is not running on my machine. Remember my mind fools me at times
> but check on that bug number and see if it addresses your problem.
>
> Oh, what version are you running.
>
>
> On Thu, Jul 10, 2014 at 8:51 AM, Emmanuel Pescosta <
> emmanuelpescosta099@gmail.com> wrote:
>
>> https://bugs.kde.org/show_bug.cgi?id=325529
>>
>> Emmanuel Pescosta <emmanuelpescosta099@gmail.com> changed:
>>
>>            What    |Removed                     |Added
>>
>> ----------------------------------------------------------------------------
>>                  CC|                            |hyxabrod@gmail.com
>>
>> --- Comment #4 from Emmanuel Pescosta <emmanuelpescosta099@gmail.com> ---
>> *** Bug 337329 has been marked as a duplicate of this bug. ***
>>
>> --
>> You are receiving this mail because:
>> You are on the CC list for the bug.
>> You reported the bug.
>>
>
>