Dolphin in super user mode crash when opening a folder in new tab

Hello,

I’m on snapshot VERSION_ID="20241226"
I have a strange problem with dolphin in super user mode:
I loaded dolphin from the application launcher and there were 4 tabs open pointing to different folders. I tried to open another folder in a new tab and dolphin crashed. In journalctl I have these messages :

Jan 01 10:26:23 hpprol2 systemd[430735]: Started File Manager - Super User Mode.
Jan 01 10:26:24 hpprol2 su[434516]: pam_kwallet5(su:auth): pam_kwallet5: pam_sm_authenticate
Jan 01 10:26:24 hpprol2 su[434516]: pam_kwallet5(su:auth): pam_kwallet5: we were already executed
Jan 01 10:26:29 hpprol2 su[434524]: pam_kwallet5(su:auth): pam_kwallet5: pam_sm_authenticate
Jan 01 10:26:29 hpprol2 su[434524]: pam_kwallet5(su:auth): pam_kwallet5: we were already executed
Jan 01 10:26:29 hpprol2 su[434524]: (to root) philippe on pts/5
Jan 01 10:26:29 hpprol2 su[434524]: pam_kwallet5(su:setcred): pam_kwallet5: pam_sm_setcred
Jan 01 10:26:29 hpprol2 su[434524]: pam_unix(su:session): session opened for user root(uid=0) by philippe(uid=1000)
Jan 01 10:26:29 hpprol2 su[434524]: pam_kwallet5(su:session): pam_kwallet5: pam_sm_open_session
Jan 01 10:26:29 hpprol2 su[434524]: pam_kwallet5(su:session): pam_kwallet5: we were already executed
Jan 01 10:26:29 hpprol2 su[434524]: pam_unix(su:session): session closed for user root
Jan 01 10:26:29 hpprol2 su[434524]: pam_kwallet5(su:session): pam_kwallet5: pam_sm_close_session
Jan 01 10:26:29 hpprol2 su[434524]: pam_kwallet5(su:setcred): pam_kwallet5: pam_sm_setcred
Jan 01 10:26:30 hpprol2 su[434531]: pam_kwallet5(su:auth): pam_kwallet5: pam_sm_authenticate
Jan 01 10:26:30 hpprol2 su[434531]: pam_kwallet5(su:auth): pam_kwallet5: we were already executed
Jan 01 10:26:30 hpprol2 su[434531]: (to root) philippe on pts/5
Jan 01 10:26:30 hpprol2 su[434531]: pam_kwallet5(su:setcred): pam_kwallet5: pam_sm_setcred
Jan 01 10:26:30 hpprol2 su[434531]: pam_unix(su:session): session opened for user root(uid=0) by philippe(uid=1000)
Jan 01 10:26:30 hpprol2 su[434531]: pam_kwallet5(su:session): pam_kwallet5: pam_sm_open_session
Jan 01 10:26:30 hpprol2 su[434531]: pam_kwallet5(su:session): pam_kwallet5: we were already executed
Jan 01 10:26:30 hpprol2 dbus-daemon[434543]: [session uid=0 pid=434541] SELinux support is enabled
Jan 01 10:26:30 hpprol2 dbus-daemon[434543]: [session uid=0 pid=434541] Activating service name='org.freedesktop.portal.Desktop' requested by ':1.0' (uid=0 pid=434539 comm="dolphin -qwindowtitle File Manager - Super User Mo" label="unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023")
Jan 01 10:26:30 hpprol2 dbus-daemon[434543]: [session uid=0 pid=434541] Activating service name='org.freedesktop.portal.Documents' requested by ':1.1' (uid=0 pid=434546 comm="/usr/libexec/xdg-desktop-portal" label="unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023")
Jan 01 10:26:30 hpprol2 dbus-daemon[434543]: [session uid=0 pid=434541] Activating service name='org.freedesktop.impl.portal.PermissionStore' requested by ':1.2' (uid=0 pid=434553 comm="/usr/libexec/xdg-document-portal" label="unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023")
Jan 01 10:26:30 hpprol2 dbus-daemon[434543]: [session uid=0 pid=434541] Successfully activated service 'org.freedesktop.impl.portal.PermissionStore'
Jan 01 10:26:30 hpprol2 dbus-daemon[434543]: [session uid=0 pid=434541] Successfully activated service 'org.freedesktop.portal.Documents'
Jan 01 10:26:30 hpprol2 dbus-daemon[434543]: [session uid=0 pid=434541] Activating service name='org.freedesktop.impl.portal.desktop.kde' requested by ':1.1' (uid=0 pid=434546 comm="/usr/libexec/xdg-desktop-portal" label="unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023")
Jan 01 10:26:31 hpprol2 dbus-daemon[434543]: [session uid=0 pid=434541] Successfully activated service 'org.freedesktop.impl.portal.desktop.kde'
Jan 01 10:26:31 hpprol2 dbus-daemon[434543]: [session uid=0 pid=434541] Activating service name='org.freedesktop.impl.portal.desktop.gtk' requested by ':1.1' (uid=0 pid=434546 comm="/usr/libexec/xdg-desktop-portal" label="unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023")
Jan 01 10:26:31 hpprol2 dbus-daemon[434543]: [session uid=0 pid=434541] Activating service name='org.gtk.vfs.Daemon' requested by ':1.5' (uid=0 pid=434636 comm="/usr/libexec/xdg-desktop-portal-gtk" label="unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023")
Jan 01 10:26:31 hpprol2 dbus-daemon[434543]: [session uid=0 pid=434541] Successfully activated service 'org.gtk.vfs.Daemon'
Jan 01 10:26:31 hpprol2 org.gtk.vfs.Daemon[434648]: fuse: failed to access mountpoint /root/.gvfs: Transport endpoint is not connected
Jan 01 10:26:31 hpprol2 dbus-daemon[434543]: [session uid=0 pid=434541] Successfully activated service 'org.freedesktop.impl.portal.desktop.gtk'
Jan 01 10:26:31 hpprol2 xdg-desktop-por[434546]: Failed connect to PipeWire: Couldn't connect to PipeWire
Jan 01 10:26:31 hpprol2 dbus-daemon[434543]: [session uid=0 pid=434541] Successfully activated service 'org.freedesktop.portal.Desktop'
Jan 01 10:26:42 hpprol2 systemd-coredump[434713]: Process 434539 (dolphin) of user 0 terminated abnormally with signal 11/SEGV, processing...
Jan 01 10:26:42 hpprol2 systemd[1]: Started Process Core Dump (PID 434713/UID 0).
Jan 01 10:26:42 hpprol2 systemd[1]: Started Pass systemd-coredump journal entries to relevant user for potential DrKonqi handling.
Jan 01 10:26:43 hpprol2 systemd-coredump[434714]: Resource limits disable core dumping for process 434539 (dolphin).
Jan 01 10:26:43 hpprol2 systemd-coredump[434714]: [🡕] Process 434539 (dolphin) of user 0 terminated abnormally without generating a coredump.
Jan 01 10:26:43 hpprol2 drkonqi-coredump-processor[434715]: Entry doesn't look like a dump. This may have been a vaccum run. Nothing to process.
Jan 01 10:26:43 hpprol2 drkonqi-coredump-processor[434715]: "/usr/bin/dolphin" 434539 ""
Jan 01 10:26:43 hpprol2 systemd[1]: systemd-coredump@43-434713-0.service: Deactivated successfully.
Jan 01 10:26:43 hpprol2 systemd[432806]: Started Launch DrKonqi for a systemd-coredump crash (PID 434715/UID 0).
Jan 01 10:26:43 hpprol2 drkonqi-coredump-launcher[434721]: Nothing handled the dump :O
Jan 01 10:26:43 hpprol2 systemd[1]: drkonqi-coredump-processor@43-434713-0.service: Deactivated successfully.
Jan 01 10:26:43 hpprol2 su[434531]: pam_unix(su:session): session closed for user root
Jan 01 10:26:43 hpprol2 su[434531]: pam_kwallet5(su:session): pam_kwallet5: pam_sm_close_session
Jan 01 10:26:43 hpprol2 su[434531]: pam_kwallet5(su:setcred): pam_kwallet5: pam_sm_setcred
Jan 01 10:26:43 hpprol2 systemd[430735]: app-org.kde.dolphinsu@58f27a1b75054c59b87afae2459b9c8b.service: Main process exited, code=exited, status=1/FAILURE

I reopened dolphin in super user mode and the 4 tabs where still available , I removed 3 tabs and tried again to open a folder in a new tab with the same result: crash.

If I open dolphin as a normal user I can add new tabs without crash and if I select therein a folder and with shift select ==> Open folder with ==> “! File manager - super User mode” it loads Dolphin in super user mode asking for root password and open the folder in a new tab!

in journalctl the error message

Jan 01 10:26:43 hpprol2 systemd-coredump[434714]: Resource limits disable core dumping for process 434539 (dolphin).

seems strange because top gives me these info and I assume that I have enough ressources available

top - 12:27:55 up 6 days,  3:42,  2 users,  load average: 0.65, 0.76, 0.79
Tasks: 413 total, 1 running, 412 sleep, 0 d-sleep, 0 stopped, 0 zombie
%Cpu(s):  3.8 us,  2.5 sy,  0.0 ni, 93.3 id,  0.0 wa,  0.0 hi,  0.0 si,  0.3 st 
MiB Mem : 12911.28+total, 2111.980 free, 3134.160 used, 7893.918 buff/cache     
MiB Swap: 12290.99+total, 10766.61+free, 1524.383 used. 9777.129 avail Mem 

Any Idea where to look?
Many thanks in advance
Philippe

I presume you have dolphin-24.12.0-2.1.x86_64. Could you please try the former version, e.g., from here https://download.opensuse.org/history/20241220/tumbleweed/repo/oss/ to check whether the issue still exists?

I cannot reproduce it.

I installed version 24.12.0-1.1 for dolphin and dolphin-part but the same crash occurs when I try to open a folder or a device or a place in a new tab.

Regards
Philippe

Tried to reproduce your issue with TW20241226, but couldn’t. Bug report at https://bugzilla.opensuse.org?

I do not use Dolphin “as root”, thus I have no experience.
But you could check (as root in it’s home directory) if there is .cache/dolphin and remove it.

I removed
/root/.cache/doplhin/*
/root/.config/dolphinrc
/root/.config/ session/dolphin_dophin_dolphin

I needed to reconfigure dolphin (toolbar, icon size etc) but when I try to open a folder in a new tab I have still a crash

Does ‘kdesu dolphin’ from the CLI work?

It started happening a few weeks back, but I haven’t been bothered enough… still, if it’d help:

sudo coredumpctl debug 12116
           PID: 12116 (dolphin)
           UID: 0 (root)
           GID: 0 (root)
        Signal: 11 (SEGV)
     Timestamp: Wed 2025-01-01 07:31:10 PST (4min 18s ago)
  Command Line: dolphin
    Executable: /usr/bin/dolphin
 Control Group: /user.slice/user-1000.slice/user@1000.service/app.slice/app-org.kde.konsole-6912.scope/tab(7141).scope
          Unit: user@1000.service
     User Unit: app-org.kde.konsole-6912.scope
         Slice: user-1000.slice
     Owner UID: 1000 (rad)
       Boot ID: d1a320ad28e546a08242ca1c7a8feabd
    Machine ID: 6b95574c1a2b4847890e2420785d9b95
      Hostname: ost
       Storage: /var/lib/systemd/coredump/core.dolphin.0.d1a320ad28e546a08242ca1c7a8feabd.12116.1735745470000000.zst (truncated)
  Size on Disk: 1.5M
       Message: Process 12116 (dolphin) of user 0 dumped core.
                
                Module [dso] without build-id.
                Stack trace of thread 12116:
                #0  0x00007fe394a9a25c __pthread_kill_implementation (libc.so.6 + 0x9a25c)
                #1  0x00007fe394a414b6 raise (libc.so.6 + 0x414b6)
                #2  0x00007fe3976cc87f _ZN6KCrash19defaultCrashHandlerEi (libKF6Crash.so.6 + 0x687f)
                #3  0x00007fe394a41580 __restore_rt (libc.so.6 + 0x41580)
                #4  0x00007fe397dc07b0 _ZNK11DolphinView8isActiveEv (libdolphinprivate.so.6 + 0x1137b0)
                #5  0x0000562254be9362 n/a (dolphin + 0x85362)
                #6  0x0000562254bee6ee n/a (dolphin + 0x8a6ee)
                #7  0x0000562254bfa2df n/a (dolphin + 0x962df)
                #8  0x0000562254bfd55a n/a (dolphin + 0x9955a)
                #9  0x0000562254bfdb4b n/a (dolphin + 0x99b4b)
                #10 0x0000562254bfdcc7 n/a (dolphin + 0x99cc7)
                #11 0x0000562254bc4d2d n/a (dolphin + 0x60d2d)
                #12 0x00007fe39540db21 n/a (libQt6Core.so.6 + 0x20db21)
                #13 0x00007fe395fb66f6 _ZN7QAction9triggeredEb (libQt6Gui.so.6 + 0x5b66f6)
                #14 0x00007fe395fbbee9 _ZN7QAction8activateENS_11ActionEventE (libQt6Gui.so.6 + 0x5bbee9)
                #15 0x00007fe395fbc040 _ZN7QAction5eventEP6QEvent (libQt6Gui.so.6 + 0x5bc040)
                #16 0x00007fe3965dec35 _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt6Widgets.so.6 + 0x1dec35)
                #17 0x00007fe3953ac948 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt6Core.so.6 + 0x1ac948)
                #18 0x00007fe395fcb694 _ZN12QShortcutMap13dispatchEventEP9QKeyEvent (libQt6Gui.so.6 + 0x5cb694)
                #19 0x00007fe395fcbd4f _ZN12QShortcutMap11tryShortcutEP9QKeyEvent (libQt6Gui.so.6 + 0x5cbd4f)
                #20 0x00007fe395c766da _ZN22QWindowSystemInterface19handleShortcutEventEP7QWindowmi6QFlagsIN2Qt16KeyboardModifierEEjjjRK7QStringbt (libQt6Gui.so.6 + 0x2766da)
                #21 0x00007fe395c15d9e _ZN22QGuiApplicationPrivate15processKeyEventEPN29QWindowSystemInterfacePrivate8KeyEventE (libQt6Gui.so.6 + 0x215d9e)
                #22 0x00007fe395c7ce9c _ZN22QWindowSystemInterface22sendWindowSystemEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Gui.so.6 + 0x27ce9c)
                #23 0x00007fe38f98dd3e n/a ([dso] + 0xd5d3e)
                ELF object binary architecture: AMD x86-64

Core was generated by `dolphin'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007fe394a9a25c in __pthread_kill_implementation () from /lib64/libc.so.6
[Current thread is 1 (LWP 12116)]
(gdb) bt
#0  0x00007fe394a9a25c in __pthread_kill_implementation () at /lib64/libc.so.6
#1  0x00007fe394a414b6 in raise () at /lib64/libc.so.6
#2  0x00007fe3976cc87f in KCrash::defaultCrashHandler(int) () at /lib64/libKF6Crash.so.6
#3  0x00007fe394a41580 in <signal handler called> () at /lib64/libc.so.6
#4  0x00007fe397dc07b0 in DolphinView::isActive() const () at /lib64/libdolphinprivate.so.6
#5  0x0000562254be9362 in DolphinViewContainer::isActive (this=0x562288547960) at /usr/src/debug/dolphin-24.12.0/src/dolphinviewcontainer.cpp:230
#6  DolphinViewContainer::showMessage (this=this@entry=0x562288547960, message=..., messageType=messageType@entry=KMessageWidget::Warning, buttonActions=Python Exception <class 'gdb.error'>: value has been optimized out
)
    at /usr/src/debug/dolphin-24.12.0/src/dolphinviewcontainer.cpp:448
#7  0x0000562254bee6ee in DolphinViewContainer::DolphinViewContainer
    (this=0x562288547960, url=..., parent=<optimized out>, this=<optimized out>, url=<optimized out>, parent=<optimized out>)
    at /usr/src/debug/dolphin-24.12.0/src/dolphinviewcontainer.cpp:115
#8  0x0000562254bfa2df in DolphinTabPage::createViewContainer (this=this@entry=0x562288538f50, url=...) at /usr/src/debug/dolphin-24.12.0/src/dolphintabpage.cpp:458
#9  0x0000562254bfd55a in DolphinTabPage::DolphinTabPage (this=0x562288538f50, primaryUrl=..., secondaryUrl=..., parent=0x562287bb92a0)
    at /usr/src/debug/dolphin-24.12.0/src/dolphintabpage.cpp:35
#10 DolphinTabWidget::openNewTab (this=0x562287bb92a0, primaryUrl=..., secondaryUrl=..., position=DolphinTabWidget::NewTabPosition::FollowSetting)
    at /usr/src/debug/dolphin-24.12.0/src/dolphintabwidget.cpp:177
#11 0x0000562254bfdb4b in DolphinTabWidget::openNewActivatedTab (this=0x562287bb92a0, primaryUrl=<optimized out>, secondaryUrl=<optimized out>)
    at /usr/src/debug/dolphin-24.12.0/src/dolphintabwidget.cpp:165
#12 0x0000562254bfdcc7 in DolphinTabWidget::openNewActivatedTab (this=0x562287bb92a0) at /usr/src/debug/dolphin-24.12.0/src/dolphintabwidget.cpp:150
#13 0x0000562254bc4d2d in DolphinMainWindow::openNewActivatedTab (this=0x7fe380001770) at /usr/src/debug/dolphin-24.12.0/src/dolphinmainwindow.cpp:463
#14 0x00007fe39540db21 in ??? () at /lib64/libQt6Core.so.6
#15 0x00007fe395fb66f6 in QAction::triggered(bool) () at /lib64/libQt6Gui.so.6
#16 0x00007fe395fbbee9 in QAction::activate(QAction::ActionEvent) () at /lib64/libQt6Gui.so.6
#17 0x00007fe395fbc040 in QAction::event(QEvent*) () at /lib64/libQt6Gui.so.6
#18 0x00007fe3965dec35 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQt6Widgets.so.6
#19 0x00007fe3953ac948 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib64/libQt6Core.so.6
#20 0x00007fe395fcb694 in QShortcutMap::dispatchEvent(QKeyEvent*) () at /lib64/libQt6Gui.so.6
#21 0x00007fe395fcbd4f in QShortcutMap::tryShortcut(QKeyEvent*) () at /lib64/libQt6Gui.so.6
#22 0x00007fe395c766da in QWindowSystemInterface::handleShortcutEvent(QWindow*, unsigned long, int, QFlags<Qt::KeyboardModifier>, unsigned int, unsigned int, unsigned int, QString const&, bool, unsigned short) () at /lib64/libQt6Gui.so.6
#23 0x00007fe395c15d9e in QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) () at /lib64/libQt6Gui.so.6
#24 0x00007fe395c7ce9c in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt6Gui.so.6
#25 0x00007fe38f98dd3e in ??? ()
#26 0x0000562288361210 in ??? ()
#27 0x00007fe3922c1eb8 in ??? () at /lib64/libglib-2.0.so.0
#28 0x00007fe3922c3ca8 in ??? () at /lib64/libglib-2.0.so.0
#29 0x00007fe3922c44bc in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#30 0x00007fe395600723 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt6Core.so.6
#31 0x00007fe3953b5aa2 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt6Core.so.6
#32 0x00007fe3953b5f8a in QCoreApplication::exec() () at /lib64/libQt6Core.so.6
#33 0x0000562254bc2953 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/dolphin-24.12.0/src/main.cpp:261

This is after running it with kdesu dolphin
(you’d have to manually modify the dump core limit with
sudo prlimit -c=10000000 -p <root dolphin's pid>)

Hello,

Yes it works if I load it via kdesu.

I tested also replacing in the org.kde.dolphinsu the dbus-launch by kdesu and then also dolphin in super user mode can open a folder in a new tab without crash.

Is there a problem with dbus-launch?

I see a forum discussion with a problem with dolphin in super user mode but it is not the same as mine
https://forums.opensuse.org/t/dolphin-not-open-in-super-user-mode/181151/39

Many thanks
Philippe

I am unclear as to what the real culprit is and whether it is related, but could you please add your observation to 1234692 – Moval of dbus-launch to dbus-daemon prevents start of Dolphin super user mode. By the way, isn’t ‘Exec=dolphin’ in /usr/share/applications/org.kde.dolphinsu.desktop sufficient?

TLDR: So you already have: dbus-1-daemon installed?

The link to the thread you posted the user @hui states that the problem in that thread was caused by dbus-1-daemon missing on the system.

So to check you could:

zypper se dbus-1-daemon

If it is not marked as installed then:

sudo zypper in dbus-1-daemon

Done
Regards
Philippe

Sorry? The current desktop file does not have any dbus-launch. Are you sure all your packages are up to date?

hello,

It was the file /home/philippe/.local/share/applications/org.kde.dolphinsu.desktop where philippe is my normal user.
I see that in /usr/share/applications/org.kde.dolphinsu.desktop there is still

[Desktop Entry]
Name=File Manager - Super User Mode
Exec=dbus-launch dolphin -qwindowtitle "%c" "%u"
Icon=system-file-manager

with last modified date = 2024-12-08 and I use zypper dup every time when I update my system.

Regards
Philippe

Dup in general does not change things in /home only system stuff. /home is personal settings only.

Ok I see that I had still dolphin-24.12.0-1.1 manually installed for testing.
I did a zypper dup and now i have in /usr/share/applications/org.kde.dolphinsu.desktop

Exec=/usr/bin/xdg-su -c dolphin

Setting this in my user settings for dolphin in super user mode works.

Many thanks
Philippe

And what prevented you from telling from the very beginning that you were using customized desktop file and showing your customization? Instead of wasting time of all users trying to reproduce your problem?