Bug 432561 - System Settings crashes when opening default applications settings
Summary: System Settings crashes when opening default applications settings
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_componentchooser (show other bugs)
Version: 5.20.5
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2021-02-06 09:23 UTC by kiruthik_pranav
Modified: 2021-02-18 16:57 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kiruthik_pranav 2021-02-06 09:23:20 UTC
Application: systemsettings5 (5.20.5)

Qt Version: 5.15.2
Frameworks Version: 5.78.0
Operating System: Linux 5.10.13-lqx2-fire x86_64
Windowing system: X11
Distribution: "Arch Linux"

-- Information about the crash:
- What I was doing when the application crashed:
I was trying to change my default browser from Firefox to Chromium. When I search for Default Applications in the Settings and clicked on it, a crash took place. I cannot find this setting without searching for it by the way.


- Custom settings of the application:
I have 2 browsers. One is native Chromium and the other is Flatpak Firefox.

The crash can be reproduced every time.

-- Backtrace:
Application: System Settings (systemsettings5), signal: Segmentation fault

[KCrash Handler]
#4  0x00007feb0333d8b4 in KService::storageId() const () from /usr/lib/libKF5Service.so.5
#5  0x00007feabf08aa37 in ?? () from /usr/lib/qt/plugins/kcm_componentchooser.so
#6  0x00007feabf088adb in ?? () from /usr/lib/qt/plugins/kcm_componentchooser.so
#7  0x00007feb02199582 in QObject::event(QEvent*) () from /usr/lib/libQt5Core.so.5
#8  0x00007feb02d2c752 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#9  0x00007feb0216ca7a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#10 0x00007feb0216f573 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQt5Core.so.5
#11 0x00007feb021c60a4 in ?? () from /usr/lib/libQt5Core.so.5
#12 0x00007feaffdd7b74 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#13 0x00007feaffe2bc31 in ?? () from /usr/lib/libglib-2.0.so.0
#14 0x00007feaffdd63a1 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#15 0x00007feb021c56e1 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#16 0x00007feb0216b3fc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#17 0x00007feb02173894 in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#18 0x00005570f62c1960 in ?? ()
#19 0x00007feb01b34b25 in __libc_start_main () from /usr/lib/libc.so.6
#20 0x00005570f62c233e in _start ()
[Inferior 1 (process 1155) detached]

Possible duplicates by query: bug 432535, bug 432491, bug 432454, bug 432418, bug 432389.

Reported using DrKonqi
Comment 1 Nate Graham 2021-02-06 21:48:59 UTC
> #4  0x00007feb0333d8b4 in KService::storageId() const () from /usr/lib/libKF5Service.so.5
> #5  0x00007feabf08aa37 in ?? () from /usr/lib/qt/plugins/kcm_componentchooser.so
> #6  0x00007feabf088adb in ?? () from /usr/lib/qt/plugins/kcm_componentchooser.so
Debug symbols would be really helpful here. Any chance you can compile with them, reproduce the crash, and attach a new crash log? Thanks. Here's arch's documentation regarding how to do this: https://wiki.archlinux.org/index.php/Debug_-_Getting_Traces
Comment 2 kiruthik_pranav 2021-02-07 01:10:08 UTC
Thank you for your reply. I compiled systemsettings with the debug and !strip options. Here is a log from coredumpctl and gdb:
           PID: 7166 (systemsettings5)
           UID: 1000 (user)
           GID: 1000 (user)
        Signal: 11 (SEGV)
     Timestamp: Sun 2021-02-07 08:59:06 +08 (6min ago)
  Command Line: /usr/bin/systemsettings5
    Executable: /usr/bin/systemsettings5
 Control Group: /user.slice/user-1000.slice/user@1000.service/app.slice/app-systemsettings-1e199f3dd6c7486c9f7340924644472a.scope
          Unit: user@1000.service
     User Unit: app-systemsettings-1e199f3dd6c7486c9f7340924644472a.scope
         Slice: user-1000.slice
     Owner UID: 1000 (user)
       Boot ID: d55b80abd28f4afc9f509238ddfde194
    Machine ID: ffbfd203769e46b782601833db7b6ccb
      Hostname: Vivobookx510uf
       Storage: /var/lib/systemd/coredump/core.systemsettings5.1000.d55b80abd28f4afc9f509238ddfde194.7166.1612659546000000.zst
       Message: Process 7166 (systemsettings5) of user 1000 dumped core.
                
                Stack trace of thread 7166:
                #0  0x00007f5d08091ef5 raise (libc.so.6 + 0x3cef5)
                #1  0x00007f5d09aa0157 _ZN6KCrash19defaultCrashHandlerEi (libKF5Crash.so.5 + 0x4157)
                #2  0x00007f5d08091f80 __restore_rt (libc.so.6 + 0x3cf80)
                #3  0x00007f5d098858b4 _ZNK8KService9storageIdEv (libKF5Service.so.5 + 0x238b4)
                #4  0x00007f5ccd5cda37 n/a (kcm_componentchooser.so + 0xca37)
                #5  0x00007f5ccd5cbadb n/a (kcm_componentchooser.so + 0xaadb)
                #6  0x00007f5d086e1582 _ZN7QObject5eventEP6QEvent (libQt5Core.so.5 + 0x2e2582)
                #7  0x00007f5d09274752 _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt5Widgets.so.5 + 0x15a752)
                #8  0x00007f5d086b4a7a _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5 + 0x2b5a7a)
                #9  0x00007f5d086b7573 _ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData (libQt5Core.so.5 + 0x2b8573)
                #10 0x00007f5d0870e0a4 n/a (libQt5Core.so.5 + 0x30f0a4)
                #11 0x00007f5d0631fb74 g_main_context_dispatch (libglib-2.0.so.0 + 0x52b74)
                #12 0x00007f5d06373c31 n/a (libglib-2.0.so.0 + 0xa6c31)
                #13 0x00007f5d0631e3a1 g_main_context_iteration (libglib-2.0.so.0 + 0x513a1)
                #14 0x00007f5d0870d6e1 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x30e6e1)
                #15 0x00007f5d086b33fc _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2b43fc)
                #16 0x00007f5d086bb894 _ZN16QCoreApplication4execEv (libQt5Core.so.5 + 0x2bc894)
                #17 0x0000563956c07960 main (systemsettings5 + 0xc960)
                #18 0x00007f5d0807cb25 __libc_start_main (libc.so.6 + 0x27b25)
                #19 0x0000563956c0833e _start (systemsettings5 + 0xd33e)
                
                Stack trace of thread 7179:
                #0  0x00007f5d0631c8c0 n/a (libglib-2.0.so.0 + 0x4f8c0)
                #1  0x00007f5d0631ff0b g_main_context_check (libglib-2.0.so.0 + 0x52f0b)
                #2  0x00007f5d06373ac2 n/a (libglib-2.0.so.0 + 0xa6ac2)
                #3  0x00007f5d0631e3a1 g_main_context_iteration (libglib-2.0.so.0 + 0x513a1)
                #4  0x00007f5d0870d6fc _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x30e6fc)
                #5  0x00007f5d086b33fc _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2b43fc)
                #6  0x00007f5d084cbd22 _ZN7QThread4execEv (libQt5Core.so.5 + 0xccd22)
                #7  0x00007f5d077825a9 n/a (libQt5Qml.so.5 + 0x30b5a9)
                #8  0x00007f5d084ccf0f n/a (libQt5Core.so.5 + 0xcdf0f)
                #9  0x00007f5d06d16299 start_thread (libpthread.so.0 + 0x9299)
                #10 0x00007f5d08154153 __clone (libc.so.6 + 0xff153)
                
                Stack trace of thread 7169:
                #0  0x00007f5d0870da41 n/a (libQt5Core.so.5 + 0x30ea41)
                #1  0x00007f5d0631f72f g_main_context_prepare (libglib-2.0.so.0 + 0x5272f)
                #2  0x00007f5d06373a36 n/a (libglib-2.0.so.0 + 0xa6a36)
                #3  0x00007f5d0631e3a1 g_main_context_iteration (libglib-2.0.so.0 + 0x513a1)
                #4  0x00007f5d0870d6fc _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x30e6fc)
                #5  0x00007f5d086b33fc _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2b43fc)
                #6  0x00007f5d084cbd22 _ZN7QThread4execEv (libQt5Core.so.5 + 0xccd22)
                #7  0x00007f5d07408098 n/a (libQt5DBus.so.5 + 0x17098)
                #8  0x00007f5d084ccf0f n/a (libQt5Core.so.5 + 0xcdf0f)
                #9  0x00007f5d06d16299 start_thread (libpthread.so.0 + 0x9299)
                #10 0x00007f5d08154153 __clone (libc.so.6 + 0xff153)
                
                Stack trace of thread 7178:
                #0  0x00007f5d0636d0fb sysprof_collector_init (libglib-2.0.so.0 + 0xa00fb)
                #1  0x00007f5d0636d14a n/a (libglib-2.0.so.0 + 0xa014a)
                #2  0x00007f5d0636dd69 sysprof_collector_mark_vprintf (libglib-2.0.so.0 + 0xa0d69)
                #3  0x00007f5d0636ec9d n/a (libglib-2.0.so.0 + 0xa1c9d)
                #4  0x00007f5d0631f7d9 g_main_context_prepare (libglib-2.0.so.0 + 0x527d9)
                #5  0x00007f5d06373a36 n/a (libglib-2.0.so.0 + 0xa6a36)
                #6  0x00007f5d0631e3a1 g_main_context_iteration (libglib-2.0.so.0 + 0x513a1)
                #7  0x00007f5d0870d6fc _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x30e6fc)
                #8  0x00007f5d086b33fc _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2b43fc)
                #9  0x00007f5d084cbd22 _ZN7QThread4execEv (libQt5Core.so.5 + 0xccd22)
                #10 0x00007f5d077825a9 n/a (libQt5Qml.so.5 + 0x30b5a9)
                #11 0x00007f5d084ccf0f n/a (libQt5Core.so.5 + 0xcdf0f)
                #12 0x00007f5d06d16299 start_thread (libpthread.so.0 + 0x9299)
                #13 0x00007f5d08154153 __clone (libc.so.6 + 0xff153)
                
                Stack trace of thread 7177:
                #0  0x00007f5d06d229ba __futex_abstimed_wait_common64 (libpthread.so.0 + 0x159ba)
                #1  0x00007f5d06d1c574 pthread_cond_timedwait@@GLIBC_2.3.2 (libpthread.so.0 + 0xf574)
                #2  0x00007f5d084d3058 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt5Core.so.5 + 0xd4058)
                #3  0x00007f5d084d0504 n/a (libQt5Core.so.5 + 0xd1504)
                #4  0x00007f5d084ccf0f n/a (libQt5Core.so.5 + 0xcdf0f)
                #5  0x00007f5d06d16299 start_thread (libpthread.so.0 + 0x9299)
                #6  0x00007f5d08154153 __clone (libc.so.6 + 0xff153)
                
                Stack trace of thread 7174:
                #0  0x00007f5d06d229ba __futex_abstimed_wait_common64 (libpthread.so.0 + 0x159ba)
                #1  0x00007f5d06d1c574 pthread_cond_timedwait@@GLIBC_2.3.2 (libpthread.so.0 + 0xf574)
                #2  0x00007f5d084d3058 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt5Core.so.5 + 0xd4058)
                #3  0x00007f5d084d0504 n/a (libQt5Core.so.5 + 0xd1504)
                #4  0x00007f5d084ccf0f n/a (libQt5Core.so.5 + 0xcdf0f)
                #5  0x00007f5d06d16299 start_thread (libpthread.so.0 + 0x9299)
                #6  0x00007f5d08154153 __clone (libc.so.6 + 0xff153)
                
                Stack trace of thread 7168:
                #0  0x00007f5d0814947f __poll (libc.so.6 + 0xf447f)
                #1  0x00007f5d06d5963b n/a (libxcb.so.1 + 0xc63b)
                #2  0x00007f5d06d5b37b xcb_wait_for_event (libxcb.so.1 + 0xe37b)
                #3  0x00007f5d035d0131 n/a (libQt5XcbQpa.so.5 + 0x5e131)
                #4  0x00007f5d084ccf0f n/a (libQt5Core.so.5 + 0xcdf0f)
                #5  0x00007f5d06d16299 start_thread (libpthread.so.0 + 0x9299)
                #6  0x00007f5d08154153 __clone (libc.so.6 + 0xff153)
                
                Stack trace of threaGNU gdb (GDB) 10.1
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/systemsettings5...
[New LWP 7166]
[New LWP 7179]
[New LWP 7169]
[New LWP 7178]
[New LWP 7177]
[New LWP 7174]
[New LWP 7168]
[New LWP 7175]
[New LWP 7176]
[New LWP 7171]
[New LWP 7170]
[New LWP 7172]
[New LWP 7173]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `/usr/bin/systemsettings5'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f5d08091ef5 in raise () from /usr/lib/libc.so.6
[Current thread is 1 (Thread 0x7f5d039b4840 (LWP 7166))]
quit) 
d 7175:
                #0  0x00007f5d06d229ba __futex_abstimed_wait_common64 (libpthread.so.0 + 0x159ba)
                #1  0x00007f5d06d1c574 pthread_cond_timedwait@@GLIBC_2.3.2 (libpthread.so.0 + 0xf574)
                #2  0x00007f5d084d3058 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt5Core.so.5 + 0xd4058)
                #3  0x00007f5d084d0504 n/a (libQt5Core.so.5 + 0xd1504)
                #4  0x00007f5d084ccf0f n/a (libQt5Core.so.5 + 0xcdf0f)
                #5  0x00007f5d06d16299 start_thread (libpthread.so.0 + 0x9299)
                #6  0x00007f5d08154153 __clone (libc.so.6 + 0xff153)
                
                Stack trace of thread 7176:
                #0  0x00007f5d06d229ba __futex_abstimed_wait_common64 (libpthread.so.0 + 0x159ba)
                #1  0x00007f5d06d1c574 pthread_cond_timedwait@@GLIBC_2.3.2 (libpthread.so.0 + 0xf574)
                #2  0x00007f5d084d3058 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt5Core.so.5 + 0xd4058)
                #3  0x00007f5d084d0504 n/a (libQt5Core.so.5 + 0xd1504)
                #4  0x00007f5d084ccf0f n/a (libQt5Core.so.5 + 0xcdf0f)
                #5  0x00007f5d06d16299 start_thread (libpthread.so.0 + 0x9299)
                #6  0x00007f5d08154153 __clone (libc.so.6 + 0xff153)
                
                Stack trace of thread 7171:
                #0  0x00007f5d06d229ba __futex_abstimed_wait_common64 (libpthread.so.0 + 0x159ba)
                #1  0x00007f5d06d1c260 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xf260)
                #2  0x00007f5cfad1eb3c n/a (iris_dri.so + 0x4edb3c)
                #3  0x00007f5cfad1d308 n/a (iris_dri.so + 0x4ec308)
                #4  0x00007f5d06d16299 start_thread (libpthread.so.0 + 0x9299)
                #5  0x00007f5d08154153 __clone (libc.so.6 + 0xff153)
                
                Stack trace of thread 7170:
                #0  0x00007f5d06d229ba __futex_abstimed_wait_common64 (libpthread.so.0 + 0x159ba)
                #1  0x00007f5d06d1c260 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xf260)
                #2  0x00007f5cfad1eb3c n/a (iris_dri.so + 0x4edb3c)
                #3  0x00007f5cfad1d308 n/a (iris_dri.so + 0x4ec308)
                #4  0x00007f5d06d16299 start_thread (libpthread.so.0 + 0x9299)
                #5  0x00007f5d08154153 __clone (libc.so.6 + 0xff153)
                
                Stack trace of thread 7172:
                #0  0x00007f5d06d229ba __futex_abstimed_wait_common64 (libpthread.so.0 + 0x159ba)
                #1  0x00007f5d06d1c260 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xf260)
                #2  0x00007f5cfad1eb3c n/a (iris_dri.so + 0x4edb3c)
                #3  0x00007f5cfad1d308 n/a (iris_dri.so + 0x4ec308)
                #4  0x00007f5d06d16299 start_thread (libpthread.so.0 + 0x9299)
                #5  0x00007f5d08154153 __clone (libc.so.6 + 0xff153)
                
                Stack trace of thread 7173:
                #0  0x00007f5d06d229ba __futex_abstimed_wait_common64 (libpthread.so.0 + 0x159ba)
                #1  0x00007f5d06d1c260 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xf260)
                #2  0x00007f5cfad1eb3c n/a (iris_dri.so + 0x4edb3c)
                #3  0x00007f5cfad1d308 n/a (iris_dri.so + 0x4ec308)
                #4  0x00007f5d06d16299 start_thread (libpthread.so.0 + 0x9299)
                #5  0x00007f5d08154153 __clone (libc.so.6 + 0xff153)
Comment 3 kiruthik_pranav 2021-02-18 11:47:07 UTC
The update to version 5.21.0 seems to have fixed this problem. Thank you for responding to my bug report Nate.
Comment 4 Nate Graham 2021-02-18 16:57:28 UTC
Glad to hear it!