https://bugs.kde.org/show_bug.cgi?id=439619

            Bug ID: 439619
           Summary: DiscoverNotifier occasionally crashed with SIGTRAP in
                    g_log_structured_array in glib after Plasma started
           Product: Discover
           Version: 5.21.5
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Notifier
          Assignee: aleix...@kde.org
          Reporter: matthew.fagn...@utoronto.ca
  Target Milestone: ---

SUMMARY

I've used a Fedora 34 KDE Plasma installation. Starting with Plasma 5.21.5 on
Wayland, DiscoverNotifier occasionally crashed with SIGTRAP in
g_log_structured_array in glib 2.68.2 about 30 s to 1 minute after login. Frame
1 of the crashing thread 1 had the error message "inotify read(): Bad file
descriptor"

Core was generated by `/usr/libexec/DiscoverNotifier'.
Program terminated with signal SIGTRAP, Trace/breakpoint trap.
#0  g_log_structured_array (log_level=<optimized out>, fields=0x7fb94bffd7e0,
n_fields=4)
    at ../glib/gmessages.c:556
556         G_BREAKPOINT ();
[Current thread is 1 (Thread 0x7fb94bfff640 (LWP 6231))]

(gdb) bt full
#0  g_log_structured_array (log_level=<optimized out>, fields=0x7fb94bffd7e0,
n_fields=4)
    at ../glib/gmessages.c:556
        __func__ = "g_log_structured_array"
#1  0x00007fb96a4b5249 in g_log_default_handler
    (log_domain=log_domain@entry=0x7fb9585976c4 "GLib-GIO",
log_level=log_level@entry=6, message=message@entry=0x7fb9440014a0 "inotify
read(): Bad file descriptor", unused_data=unused_data@entry=0x0)
    at ../glib/gmessages.c:3236
        fields = 
            {{key = 0x7fb96a5102e7 "GLIB_OLD_LOG_API", value = 0x7fb96a50e340,
length = -1}, {key = 0x7fb96a510228 "MESSAGE", value = 0x7fb9440014a0, length =
-1}, {key = 0x7fb96a51023b "PRIORITY", value = 0x7fb96a50a71d, length = -1},
{key = 0x7fb96a510295 "GLIB_DOMAIN", value = 0x7fb9585976c4, length = -1}}
        n_fields = <optimized out>
#2  0x00007fb96a4b661a in g_logv
    (log_domain=0x7fb9585976c4 "GLib-GIO", log_level=G_LOG_LEVEL_ERROR,
format=<optimized out>, args=<optimized out>) at ../glib/gmessages.c:1382
        domain = 0x0
        data = 0x0
        depth = <optimized out>
        log_func = 0x7fb96a4b5190 <g_log_default_handler>
        domain_fatal_mask = <optimized out>
        masquerade_fatal = 0
        test_level = 6
        was_fatal = <optimized out>
        was_recursion = <optimized out>
--Type <RET> for more, q to quit, c to continue without paging--c
        msg = 0x7fb9440014a0 "inotify read(): Bad file descriptor"
        msg_alloc = 0x7fb9440014a0 "inotify read(): Bad file descriptor"
        i = 2
#3  0x00007fb96a4b6903 in g_log (log_domain=log_domain@entry=0x7fb9585976c4
"GLib-GIO", log_level=log_level@entry=G_LOG_LEVEL_ERROR,
format=format@entry=0x7fb9585cbd91 "inotify read(): %s") at
../glib/gmessages.c:1451
        args = {{gp_offset = 32, fp_offset = 48, overflow_arg_area =
0x7fb94bffda10, reg_save_area = 0x7fb94bffd950}}
#4  0x00007fb95858c5b7 in ik_source_read_some_events
(iks=iks@entry=0x5566818859b0, buffer=buffer@entry=0x7fb94bffda80 "",
buffer_len=buffer_len@entry=4096) at ../gio/inotify/inotify-kernel.c:160
        result = <optimized out>
        errsv = <optimized out>
#5  0x00007fb95858c71b in ik_source_read_all_the_events (buffer_len=4096,
length_out=<synthetic pointer>, buffer=0x7fb94bffda80 "", iks=0x5566818859b0)
at ../gio/inotify/inotify-kernel.c:169
        n_read = <optimized out>
        stack_buffer = '\000' <repeats 3512 times>...
        buffer_len = <optimized out>
        offset = <optimized out>
        iks = 0x5566818859b0
        user_callback = 0x7fb95858da60 <ip_event_callback>
        interesting = 0
        now = 2076854595
        __func__ = "ik_source_dispatch"
#6  ik_source_dispatch (source=0x5566818859b0, func=0x7fb95858da60
<ip_event_callback>, user_data=<optimized out>) at
../gio/inotify/inotify-kernel.c:253
        stack_buffer = '\000' <repeats 3512 times>...
        buffer_len = <optimized out>
        offset = <optimized out>
        iks = 0x5566818859b0
        user_callback = 0x7fb95858da60 <ip_event_callback>
        interesting = 0
        now = 2076854595
        __func__ = "ik_source_dispatch"
#7  0x00007fb96a4ae4cf in g_main_dispatch (context=0x55668185dc70) at
../glib/gmain.c:3337
        dispatch = 0x7fb95858c6a0 <ik_source_dispatch>
        prev_source = 0x0
        begin_time_nsec = 2076854591611
        was_in_call = <optimized out>
        user_data = 0x0
        callback = 0x7fb95858da60 <ip_event_callback>
        cb_funcs = 0x7fb96a5913a0 <g_source_callback_funcs>
        cb_data = 0x556681877780
        need_destroy = <optimized out>
        source = 0x5566818859b0
        current = 0x7fb944000c10
        i = 0
#8  g_main_context_dispatch (context=0x55668185dc70) at ../glib/gmain.c:4055
#9  0x00007fb96a5024e8 in g_main_context_iterate.constprop.0
(context=context@entry=0x55668185dc70, block=block@entry=1,
dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4131
        max_priority = 2147483647
        timeout = -1
        some_ready = 1
        nfds = 2
        allocated_nfds = 2
        fds = <optimized out>
        begin_time_nsec = 2040086645207
#10 0x00007fb96a4abc03 in g_main_context_iteration (context=0x55668185dc70,
may_block=may_block@entry=1) at ../glib/gmain.c:4196
        retval = <optimized out>
#11 0x00007fb96a4abc51 in glib_worker_main (data=<optimized out>) at
../glib/gmain.c:6089
#12 0x00007fb96a4dcc32 in g_thread_proxy (data=0x7fb94c002240) at
../glib/gthread.c:826
        thread = 0x7fb94c002240
        __func__ = "g_thread_proxy"
#13 0x00007fb96b35a299 in start_thread (arg=0x7fb94bfff640) at
pthread_create.c:481
        ret = <optimized out>
        pd = 0x7fb94bfff640
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140433820743232,
567970113673858133, 140733155832990, 140733155832991, 0, 140433820743232,
-535011152567890859, -535079926198334379}, mask_was_saved = 0}}, priv = {pad =
{0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = 0
#14 0x00007fb96b829353 in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

The journal at the time of the crash included an DiscoverNotifier error with a
failed asserlation related to flatpak "DiscoverNotifier[5478]: Bail out!
flatpak:ERROR:common/flatpak-variant-impl-private.h:1197:var_summary_get_metadata:
assertion failed: (start <= end)"

May 21 22:44:33 PackageKit[2909]: get-updates transaction /12695_bdbdaeee from
uid 1000 finished with success after 131ms
May 21 22:44:34 DiscoverNotifier[5478]: **
May 21 22:44:34 DiscoverNotifier[5478]:
flatpak:ERROR:common/flatpak-variant-impl-private.h:1197:var_summary_get_metadata:
assertion failed: (start <= end)
May 21 22:44:34 DiscoverNotifier[5478]: Bail out!
flatpak:ERROR:common/flatpak-variant-impl-private.h:1197:var_summary_get_metadata:
assertion failed: (start <= end)
May 21 22:44:34 DiscoverNotifie[5478]: g_atomic_ref_count_dec: assertion
'g_atomic_int_get (arc) > 0' failed
May 21 22:44:35 DiscoverNotifier[5478]: KCrash: Attempting to start
/usr/libexec/DiscoverNotifier
May 21 22:44:35 DiscoverNotifier[5478]: KCrash: Application 'DiscoverNotifier'
crashing...
May 21 22:44:35 DiscoverNotifier[5478]: KCrash: Attempting to start
/usr/libexec/drkonqi
May 21 22:44:35 DiscoverNotifier[5478]: QSocketNotifier: Invalid socket 6 and
type 'Read', disabling...
May 21 22:44:35 DiscoverNotifier[5478]: QSocketNotifier: Invalid socket 7 and
type 'Read', disabling...
May 21 22:44:35 DiscoverNotifier[5478]: QSocketNotifier: Invalid socket 9 and
type 'Read', disabling...
May 21 22:44:38 systemd[1]: systemd-hostnamed.service: Deactivated
successfully.
May 21 22:44:38 audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295
ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-hostnamed
comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=?
res=success'
May 21 22:44:38 audit: BPF prog-id=55 op=UNLOAD
May 21 22:44:38 audit: BPF prog-id=54 op=UNLOAD
May 21 22:44:39 rtkit-daemon[1889]: Supervising 7 threads of 4 processes of 1
users.
May 21 22:44:39 rtkit-daemon[1889]: Supervising 7 threads of 4 processes of 1
users.
May 21 22:44:45 rtkit-daemon[1889]: Supervising 7 threads of 4 processes of 1
users.
May 21 22:44:45 rtkit-daemon[1889]: Supervising 7 threads of 4 processes of 1
users.
May 21 22:44:55 PackageKit[2909]: get-updates transaction /12696_adeacbcd from
uid 1000 finished with success after 128ms
May 21 22:44:56 DiscoverNotifie[6271]: g_atomic_ref_count_dec: assertion
'g_atomic_int_get (arc) > 0' failed
May 21 22:44:56 DiscoverNotifie[6271]: g_atomic_ref_count_dec: assertion
'g_atomic_int_get (arc) > 0' failed
May 21 22:45:00 rtkit-daemon[1889]: Supervising 7 threads of 4 processes of 1
users.
May 21 22:45:00 rtkit-daemon[1889]: Supervising 7 threads of 4 processes of 1
users.
May 21 22:45:00 rtkit-daemon[1889]: Supervising 7 threads of 4 processes of 1
users.
May 21 22:45:00 rtkit-daemon[1889]: Supervising 7 threads of 4 processes of 1
users.
May 21 22:45:00 rtkit-daemon[1889]: Successfully made thread 6420 of process
6102 (/home/matt/programs/firefox/firefox-bin) owned by '1000' RT at priority
10.
May 21 22:45:00 rtkit-daemon[1889]: Supervising 8 threads of 5 processes of 1
users.
May 21 22:45:05 plasmashell[5254]: trying to show an empty dialog
May 21 22:45:10 kernel: show_signal: 56 callbacks suppressed
May 21 22:45:10 kernel: traps: gmain[6231] trap int3 ip:7fb96a4b4f7f
sp:7fb94bffd790 error:0 in libglib-2.0.so.0.6800.2[7fb96a476000+90000]
May 21 22:45:10 audit[5478]: ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=6
subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=5478
comm="gmain" exe="/usr/libexec/DiscoverNotifier" sig=5 res=1
May 21 22:45:10 DiscoverNotifier[5478]: QSocketNotifier: Invalid socket 8 and
type 'Read', disabling...
May 21 22:45:10 DiscoverNotifier[5478]: (process:5478): GLib-GIO-ERROR **:
22:45:10.219: inotify read(): Bad file descriptor
May 21 22:45:10 systemd[1]: Created slice system-systemd\x2dcoredump.slice.
May 21 22:45:10 audit: BPF prog-id=60 op=LOAD
May 21 22:45:10 audit: BPF prog-id=61 op=LOAD
May 21 22:45:10 audit: BPF prog-id=62 op=LOAD
May 21 22:45:10 systemd[1]: Started Process Core Dump (PID 6459/UID 0).
May 21 22:45:10 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295
ses=4294967295 subj=system_u:system_r:init_t:s0
msg='unit=systemd-coredump@0-6459-0 comm="systemd"
exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
May 21 22:45:11 systemd-coredump[6461]: Process 5478 (DiscoverNotifie) of user
1000 dumped core.

                                        Stack trace of thread 6231:
                                        #0  0x00007fb96a4b4f7f
g_log_structured_array (libglib-2.0.so.0 + 0x5bf7f)
                                        #1  0x00007fb96a4b5249
g_log_default_handler (libglib-2.0.so.0 + 0x5c249)
                                        #2  0x00007fb96a4b661a g_logv
(libglib-2.0.so.0 + 0x5d61a)
                                        #3  0x00007fb96a4b6903 g_log
(libglib-2.0.so.0 + 0x5d903)
                                        #4  0x00007fb95858c5b7
ik_source_read_some_events (libgio-2.0.so.0 + 0x13b5b7)
                                        #5  0x00007fb95858c71b
ik_source_dispatch (libgio-2.0.so.0 + 0x13b71b)
                                        #6  0x00007fb96a4ae4cf
g_main_context_dispatch (libglib-2.0.so.0 + 0x554cf)
                                        #7  0x00007fb96a5024e8
g_main_context_iterate.constprop.0 (libglib-2.0.so.0 + 0xa94e8)
                                        #8  0x00007fb96a4abc03
g_main_context_iteration (libglib-2.0.so.0 + 0x52c03)
                                        #9  0x00007fb96a4abc51 glib_worker_main
(libglib-2.0.so.0 + 0x52c51)
                                        #10 0x00007fb96a4dcc32 g_thread_proxy
(libglib-2.0.so.0 + 0x83c32)
                                        #11 0x00007fb96b35a299 start_thread
(libpthread.so.0 + 0x9299)
                                        #12 0x00007fb96b829353 __clone
(libc.so.6 + 0x100353)

                                        Stack trace of thread 5478:
                                        #0  0x00007fb96b81aa8b __GI___close
(libc.so.6 + 0xf1a8b)
                                        #1  0x00007fb96d19dc42
_ZN6KCrash19defaultCrashHandlerEi (libKF5Crash.so.5 + 0x4c42)
                                        #2  0x00007fb96b766320 __restore_rt
(libc.so.6 + 0x3d320)
                                        #3  0x00007fb96b7662a2 __GI_raise
(libc.so.6 + 0x3d2a2)
                                        #4  0x00007fb96b766320 __restore_rt
(libc.so.6 + 0x3d320)
                                        #5  0x00007fb96b7662a2 __GI_raise
(libc.so.6 + 0x3d2a2)
                                        #6  0x00007fb958404c2f g_closure_invoke
(libgobject-2.0.so.0 + 0x13c2f)
                                        #7  0x00007fb958420894
signal_emit_unlocked_R (libgobject-2.0.so.0 + 0x2f894)
                                        #8  0x00007fb95842276a
g_signal_emit_valist (libgobject-2.0.so.0 + 0x3176a)
                                        #9  0x00007fb958422983 g_signal_emit
(libgobject-2.0.so.0 + 0x31983)
                                        #10 0x00007fb95854e4a6
emit_closed_in_idle (libgio-2.0.so.0 + 0xfd4a6)
                                        #11 0x00007fb96a4aa74b g_idle_dispatch
(libglib-2.0.so.0 + 0x5174b)
                                        #12 0x00007fb96a4ae4cf
g_main_context_dispatch (libglib-2.0.so.0 + 0x554cf)
                                        #13 0x00007fb96a5024e8
g_main_context_iterate.constprop.0 (libglib-2.0.so.0 + 0xa94e8)
                                        #14 0x00007fb96a4abc03
g_main_context_iteration (libglib-2.0.so.0 + 0x52c03)
                                        #15 0x00007fb96bde46f8
_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE
(libQt5Core.so.5 + 0x2cb6f8)
                                        #16 0x00007fb96bd969b2
_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 +
0x27d9b2)
                                        #17 0x00007fb96bd9e544
_ZN16QCoreApplication4execEv (libQt5Core.so.5 + 0x285544)
                                        #18 0x000055667fec8f9c main
(DiscoverNotifier + 0x8f9c)
                                        #19 0x00007fb96b750b75
__libc_start_main (libc.so.6 + 0x27b75)
                                        #20 0x000055667fec90ee _start
(DiscoverNotifier + 0x90ee)

                                        Stack trace of thread 6234:
                                        #0  0x00007fb96b366a8a
__futex_abstimed_wait_common64 (libpthread.so.0 + 0x15a8a)
                                        #1  0x00007fb96b3605c4
__pthread_cond_wait_common (libpthread.so.0 + 0xf5c4)
                                        #2  0x00007fb96bc050fa
_ZN21QWaitConditionPrivate13wait_relativeE14QDeadlineTimer (libQt5Core.so.5 +
0xec0fa)
                                        #3  0x00007fb96bc02904
_ZN17QThreadPoolThread3runEv (libQt5Core.so.5 + 0xe9904)
                                        #4  0x00007fb96bbff751
_ZN14QThreadPrivate5startEPv (libQt5Core.so.5 + 0xe6751)
                                        #5  0x00007fb96b35a299 start_thread
(libpthread.so.0 + 0x9299)
                                        #6  0x00007fb96b829353 __clone
(libc.so.6 + 0x100353)

                                        Stack trace of thread 6235:
                                        #0  0x00007fb96b81e5bf __GI___poll
(libc.so.6 + 0xf55bf)
                                        #1  0x00007fb96a50247c
g_main_context_iterate.constprop.0 (libglib-2.0.so.0 + 0xa947c)
                                        #2  0x00007fb96a4abc03
g_main_context_iteration (libglib-2.0.so.0 + 0x52c03)
                                        #3  0x00007fb949c983ed
dconf_gdbus_worker_thread (libdconfsettings.so + 0x73ed)
                                        #4  0x00007fb96a4dcc32 g_thread_proxy
(libglib-2.0.so.0 + 0x83c32)
                                        #5  0x00007fb96b35a299 start_thread
(libpthread.so.0 + 0x9299)
                                        #6  0x00007fb96b829353 __clone
(libc.so.6 + 0x100353)

                                        Stack trace of thread 6233:
                                        #0  0x00007fb96b81e5bf __GI___poll
(libc.so.6 + 0xf55bf)
                                        #1  0x00007fb96d19d718
_ZN6KCrash12startProcessEiPPKcb.constprop.0 (libKF5Crash.so.5 + 0x4718)
                                        #2  0x00007fb96d19e069
_ZN6KCrash19defaultCrashHandlerEi (libKF5Crash.so.5 + 0x5069)
                                        #3  0x00007fb96b766320 __restore_rt
(libc.so.6 + 0x3d320)
                                        #4  0x00007fb96b7662a2 __GI_raise
(libc.so.6 + 0x3d2a2)
                                        #5  0x00007fb96b74f8a4 __GI_abort
(libc.so.6 + 0x268a4)
                                        #6  0x00007fb96a477ccc
g_assertion_message (libglib-2.0.so.0 + 0x1eccc)
                                        #7  0x00007fb96a4d32ff
g_assertion_message_expr (libglib-2.0.so.0 + 0x7a2ff)
                                        #8  0x00007fb9586d9a8c
flatpak_summary_find_ref_map (libflatpak.so.0 + 0xb0a8c)
                                        #9  0x00007fb9586da6b4
flatpak_summary_lookup_ref (libflatpak.so.0 + 0xb16b4)
                                        #10 0x00007fb9586767c6
flatpak_remote_state_lookup_ref (libflatpak.so.0 + 0x4d7c6)
                                        #11 0x00007fb95867e5bf
flatpak_dir_find_latest_rev (libflatpak.so.0 + 0x555bf)
                                        #12 0x00007fb9586cc706 resolve_all_ops
(libflatpak.so.0 + 0xa3706)
                                        #13 0x00007fb9586ce320
flatpak_transaction_real_run (libflatpak.so.0 + 0xa5320)
                                        #14 0x00007fb9586a3929
flatpak_installation_list_installed_refs_for_update (libflatpak.so.0 + 0x7a929)
                                        #15 0x00007fb9587cdba0
_ZN12QtConcurrent15RunFunctionTaskIP10_GPtrArrayE3runEv (FlatpakNotifier.so +
0x4ba0)
                                        #16 0x00007fb96bc02740
_ZN17QThreadPoolThread3runEv (libQt5Core.so.5 + 0xe9740)
                                        #17 0x00007fb96bbff751
_ZN14QThreadPrivate5startEPv (libQt5Core.so.5 + 0xe6751)
                                        #18 0x00007fb96b35a299 start_thread
(libpthread.so.0 + 0x9299)
                                        #19 0x00007fb96b829353 __clone
(libc.so.6 + 0x100353)

                                        Stack trace of thread 6232:
                                        #0  0x00007fb96b823e0d syscall
(libc.so.6 + 0xfae0d)
                                        #1  0x00007fb96a4fc15c
g_mutex_lock_slowpath (libglib-2.0.so.0 + 0xa315c)
                                        #2  0x00007fb96a4ac680
g_source_unref_internal (libglib-2.0.so.0 + 0x53680)
                                        #3  0x00007fb9585508be on_worker_closed
(libgio-2.0.so.0 + 0xff8be)
                                        #4  0x00007fb958569fe7
_g_dbus_worker_do_read_cb (libgio-2.0.so.0 + 0x118fe7)
                                        #5  0x00007fb9584ffa7a
g_task_return_now (libgio-2.0.so.0 + 0xaea7a)
                                        #6  0x00007fb9584ffc7b g_task_return
(libgio-2.0.so.0 + 0xaec7b)
                                        #7  0x00007fb958568e2a
_g_socket_read_with_control_messages_ready (libgio-2.0.so.0 + 0x117e2a)
                                        #8  0x00007fb9584e6bcb
socket_source_dispatch (libgio-2.0.so.0 + 0x95bcb)
                                        #9  0x00007fb96a4ae4cf
g_main_context_dispatch (libglib-2.0.so.0 + 0x554cf)
                                        #10 0x00007fb96a5024e8
g_main_context_iterate.constprop.0 (libglib-2.0.so.0 + 0xa94e8)
                                        #11 0x00007fb96a4ada93 g_main_loop_run
(libglib-2.0.so.0 + 0x54a93)
                                        #12 0x00007fb958561d5a
gdbus_shared_thread_func (libgio-2.0.so.0 + 0x110d5a)
                                        #13 0x00007fb96a4dcc32 g_thread_proxy
(libglib-2.0.so.0 + 0x83c32)
                                        #14 0x00007fb96b35a299 start_thread
(libpthread.so.0 + 0x9299)
                                        #15 0x00007fb96b829353 __clone
(libc.so.6 + 0x100353)

                                        Stack trace of thread 6230:
                                        #0  0x00007fb96b82aa2c __libc_send
(libc.so.6 + 0x101a2c)
                                        #1  0x00007fb96cfe588b operator()
(libQt5Network.so.5 + 0xe488b)
                                        #2  0x00007fb96cfd7844
_ZN24QNetworkInterfaceManager13allInterfacesEv (libQt5Network.so.5 + 0xd6844)
                                        #3  0x00007fb96cfd8515
_ZN17QNetworkInterface13allInterfacesEv (libQt5Network.so.5 + 0xd7515)
                                        #4  0x00007fb9505165df
_ZN14QGenericEngine15doRequestUpdateEv (libqgenericbearer.so + 0x55df)
                                        #5  0x00007fb96bda578b
_ZNK11QMetaMethod6invokeEP7QObjectN2Qt14ConnectionTypeE22QGenericReturnArgument16QGenericArgumentS5_S5_S5_S5_S5_S5_S5_S5_S5_
(libQt5Core.so.5 + 0x28c78b)
                                        #6  0x00007fb96bda681c
_ZN11QMetaObject12invokeMethodEP7QObjectPKcN2Qt14ConnectionTypeE22QGenericReturnArgument16QGenericArgumentS7_S7_S7_S7_S7_S7_S7_S7_S7_
(libQt5Core.so.5 + 0x28d81c)
                                        #7  0x00007fb96cfc6f30
_ZN11QMetaObject12invokeMethodEP7QObjectPKc16QGenericArgumentS4_S4_S4_S4_S4_S4_S4_S4_S4_
(libQt5Network.so.5 + 0xc5f30)
                                        #8  0x00007fb96cfc7132
_ZN35QNetworkConfigurationManagerPrivate12startPollingEv (libQt5Network.so.5 +
0xc6132)
                                        #9  0x00007fb96cfc77d0
_ZN35QNetworkConfigurationManagerPrivate20updateConfigurationsEv
(libQt5Network.so.5 + 0xc67d0)
                                        #10 0x00007fb96bdbf257
_ZN7QObject5eventEP6QEvent (libQt5Core.so.5 + 0x2a6257)
                                        #11 0x00007fb96bd97f2b doNotify
(libQt5Core.so.5 + 0x27ef2b)
                                        #12 0x00007fb96bd9ac76
_ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData
(libQt5Core.so.5 + 0x281c76)
                                        #13 0x00007fb96bde4c57
postEventSourceDispatch (libQt5Core.so.5 + 0x2cbc57)
                                        #14 0x00007fb96a4ae4cf
g_main_context_dispatch (libglib-2.0.so.0 + 0x554cf)
                                        #15 0x00007fb96a5024e8
g_main_context_iterate.constprop.0 (libglib-2.0.so.0 + 0xa94e8)
                                        #16 0x00007fb96a4abc03
g_main_context_iteration (libglib-2.0.so.0 + 0x52c03)
                                        #17 0x00007fb96bde46f8
_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE
(libQt5Core.so.5 + 0x2cb6f8)
                                        #18 0x00007fb96bd969b2
_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 +
0x27d9b2)
                                        #19 0x00007fb96bbfe49a
_ZN7QThread4execEv (libQt5Core.so.5 + 0xe549a)
                                        #20 0x00007fb96bbff751
_ZN14QThreadPrivate5startEPv (libQt5Core.so.5 + 0xe6751)
                                        #21 0x00007fb96b35a299 start_thread
(libpthread.so.0 + 0x9299)
                                        #22 0x00007fb96b829353 __clone
(libc.so.6 + 0x100353)

                                        Stack trace of thread 6258:
                                        #0  0x00007fb96b823e0d syscall
(libc.so.6 + 0xfae0d)
                                        #1  0x00007fb96a4fc84c
g_cond_wait_until (libglib-2.0.so.0 + 0xa384c)
                                        #2  0x00007fb96a47e401
g_async_queue_pop_intern_unlocked (libglib-2.0.so.0 + 0x25401)
                                        #3  0x00007fb96a47e586
g_async_queue_timeout_pop (libglib-2.0.so.0 + 0x25586)
                                        #4  0x00007fb96a4dfbc9
g_thread_pool_thread_proxy.lto_priv.0 (libglib-2.0.so.0 + 0x86bc9)
                                        #5  0x00007fb96a4dcc32 g_thread_proxy
(libglib-2.0.so.0 + 0x83c32)
                                        #6  0x00007fb96b35a299 start_thread
(libpthread.so.0 + 0x9299)
                                        #7  0x00007fb96b829353 __clone
(libc.so.6 + 0x100353)

                                        Stack trace of thread 5496:
                                        #0  0x00007fb96b81e5bf __GI___poll
(libc.so.6 + 0xf55bf)
                                        #1  0x00007fb96a50247c
g_main_context_iterate.constprop.0 (libglib-2.0.so.0 + 0xa947c)
                                        #2  0x00007fb96a4abc03
g_main_context_iteration (libglib-2.0.so.0 + 0x52c03)
                                        #3  0x00007fb96bde476e
_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE
(libQt5Core.so.5 + 0x2cb76e)
                                        #4  0x00007fb96bd969b2
_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 +
0x27d9b2)
                                        #5  0x00007fb96bbfe49a
_ZN7QThread4execEv (libQt5Core.so.5 + 0xe549a)
                                        #6  0x00007fb96c69df8b
_ZN22QDBusConnectionManager3runEv (libQt5DBus.so.5 + 0x1cf8b)
                                        #7  0x00007fb96bbff751
_ZN14QThreadPrivate5startEPv (libQt5Core.so.5 + 0xe6751)
                                        #8  0x00007fb96b35a299 start_thread
(libpthread.so.0 + 0x9299)
                                        #9  0x00007fb96b829353 __clone
(libc.so.6 + 0x100353)
May 21 22:45:11 systemd[5090]: app-org.kde.discover.notifier@autostart.service:
Main process exited, code=killed, status=5/TRAP
May 21 22:45:11 audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295
ses=4294967295 subj=system_u:system_r:init_t:s0
msg='unit=systemd-coredump@0-6459-0 comm="systemd"
exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
May 21 22:45:11 DiscoverNotifier[6460]: Unable to attach: program terminated
with signal SIGTRAP, Trace/breakpoint trap.
May 21 22:45:11 DiscoverNotifier[6460]: Exception ignored in:
<gdb._GdbOutputFile object at 0x7ffabf617100>
May 21 22:45:11 DiscoverNotifier[6460]: Traceback (most recent call last):
May 21 22:45:11 DiscoverNotifier[6460]:   File
"/usr/share/gdb/python/gdb/__init__.py", line 43, in flush
May 21 22:45:11 DiscoverNotifier[6460]:     def flush(self):
May 21 22:45:11 DiscoverNotifier[6460]: KeyboardInterrupt:
May 21 22:45:11 systemd[1]: systemd-coredump@0-6459-0.service: Deactivated
successfully.
May 21 22:45:11 systemd[1]: systemd-coredump@0-6459-0.service: Consumed 1.043s
CPU time.
May 21 22:45:11 audit: BPF prog-id=62 op=UNLOAD
May 21 22:45:11 audit: BPF prog-id=61 op=UNLOAD
May 21 22:45:11 audit: BPF prog-id=60 op=UNLOAD
May 21 22:45:11 systemd[5090]: app-org.kde.discover.notifier@autostart.service:
Failed with result 'signal'.
May 21 22:45:11 systemd[5090]: app-org.kde.discover.notifier@autostart.service:
Consumed 5.464s CPU time.

The journal has 9 DiscoverNotifier crashes of this type since 2021-5-21 using
Plasma 5.19.5 to 5.22.2.1 which about 1% of logins. drkonqi sometimes started
when these crashes happened, but drkonqi always crashed when I tried to
generate the trace by clicking on the Advanced tab.

STEPS TO REPRODUCE
1. Boot a Fedora 34 KDE Plasma installation updated with updates-testing
enabled.
2. Log in to Plasma on Wayland
3. flatpak remote-add --if-not-exists flathub
https://flathub.org/repo/flathub.flatpakrepo
4. flatpak remote-add --if-not-exists kdeapps --from
https://distribute.kde.org/kdeapps.flatpakrepo
5. flatpak install kstars
6. Log out of Plasma
7. Log in to Plasma
8. If the crash doesn't happen within a minute, repeat 6-7 until it does.

OBSERVED RESULT
DiscoverNotifier occasionally crashed with SIGTRAP in g_log_structured_array in
glib after Plasma started

EXPECTED RESULT
No crashes would happen.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 34
(available in About System)
KDE Plasma Version: 5.19.5 - 5.22.2
KDE Frameworks Version: 5.82.0 - 5.83.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION

I have flathub and kdeapps flatpak repos installed and enabled with the
following based on https://community.kde.org/Guidelines_and_HOWTOs/Flatpak
flatpak remote-add --if-not-exists flathub
https://flathub.org/repo/flathub.flatpakrepo
flatpak remote-add --if-not-exists kdeapps --from
https://distribute.kde.org/kdeapps.flatpakrepo

I installed the kstars flatpak with flatpak install kstars

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to