Bug 500249

Summary: DrKonqi crashes while handling crash
Product: [Applications] drkonqi Reporter: gudvinr+kde
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: crash CC: sitter
Priority: NOR    
Version First Reported In: 6.3.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: journald content

Description gudvinr+kde 2025-02-17 11:15:46 UTC
While handling crash report DrKonqi crashes. It is not the same as BUG 500248 as stacktrace is different.

Command Line: /usr/lib/drkonqi --appname systemsettings --signal 11 --appversion 6.3.0 --kdeframeworksversion 6.11.0 --bugaddress submit@bugs.kde.org --platform wayland --programname $'System Settings' --pid 3510 --apppath /usr/bin --qtversion 6.8.2

STACKTRACE

thread 1:
#0  g_log_structured_array (log_level=log_level@entry=G_LOG_LEVEL_ERROR, fields=fields@entry=0x765bacdfa360, n_fields=4)
    at ../glib/glib/gmessages.c:426
#1  0x0000765bb94e7987 in g_log_default_handler (log_domain=log_domain@entry=0x765bb5fe5714 "GLib-GIO", log_level=log_level@entry=6, 
    message=message@entry=0x765b98000e70 "inotify read(): Bad file descriptor", unused_data=unused_data@entry=0x0)
    at ../glib/glib/gmessages.c:3412
#2  0x0000765bb94e7c0c in g_logv (log_domain=0x765bb5fe5714 "GLib-GIO", log_level=G_LOG_LEVEL_ERROR, format=<optimized out>, 
    args=args@entry=0x765bacdfa4b0) at ../glib/glib/gmessages.c:1246
#3  0x0000765bb94e7f94 in g_log (log_domain=log_domain@entry=0x765bb5fe5714 "GLib-GIO", log_level=log_level@entry=G_LOG_LEVEL_ERROR, 
    format=format@entry=0x765bb5ff0f22 "inotify read(): %s") at ../glib/glib/gmessages.c:1315
#4  0x0000765bb5fc1c29 in ik_source_read_some_events (iks=iks@entry=0x59df04c8dfd0, buffer=buffer@entry=0x765bacdfa610 "\002", 
    buffer_len=buffer_len@entry=4096) at ../glib/gio/inotify/inotify-kernel.c:162
#5  0x0000765bb5fc1e5e in ik_source_read_all_the_events (buffer_len=4096, iks=0x59df04c8dfd0, buffer=0x765bacdfa610 "\002", 
    length_out=<synthetic pointer>) at ../glib/gio/inotify/inotify-kernel.c:178
#6  ik_source_dispatch (source=0x59df04c8dfd0, func=0x765bb5fc2f70 <ip_event_callback>, user_data=<optimized out>)
    at ../glib/gio/inotify/inotify-kernel.c:255
#7  0x0000765bb94e2559 in g_main_dispatch (context=0x59df049e5050) at ../glib/glib/gmain.c:3357
#8  0x0000765bb9545257 in g_main_context_dispatch_unlocked (context=0x59df049e5050) at ../glib/glib/gmain.c:4208
#9  g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x59df049e5050, block=block@entry=1, dispatch=dispatch@entry=1, 
--Type <RET> for more, q to quit, c to continue without paging--c
    self=<optimized out>) at ../glib/glib/gmain.c:4273
#10 0x0000765bb94e1a55 in g_main_context_iteration (context=0x59df049e5050, may_block=may_block@entry=1) at ../glib/glib/gmain.c:4338
#11 0x0000765bb94e1ab2 in glib_worker_main (data=<optimized out>) at ../glib/glib/gmain.c:6537
#12 0x0000765bb9517be6 in g_thread_proxy (data=0x59df04c8fbf0) at ../glib/glib/gthread.c:892
#13 0x0000765bb98a370a in start_thread (arg=<optimized out>) at pthread_create.c:448
#14 0x0000765bb9927aac in __GI___clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

thread 3:
#0  0x00007b923fada20a in g_source_ref (source=source@entry=0x7b9228001180) at ../glib/glib/gmain.c:2197
#1  0x00007b923fae0b29 in g_source_iter_next (iter=iter@entry=0x7b92337fd4f0, source=source@entry=0x7b92337fd4d8) at ../glib/glib/gmain.c:1029
#2  0x00007b923fae295f in g_main_context_prepare_unlocked.part.0.lto_priv.0 (context=0x7b9228000c60, priority=0x7b92337fd594)
    at ../glib/glib/gmain.c:3736
#3  0x00007b923fb4500d in g_main_context_prepare_unlocked (context=0x7b9228000c60, priority=0x7b92337fd594) at ../glib/glib/gmain.c:3702
#4  g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x7b9228000c60, block=block@entry=1, dispatch=dispatch@entry=1, 
    self=<optimized out>) at ../glib/glib/gmain.c:4254
#5  0x00007b923fae1a55 in g_main_context_iteration (context=0x7b9228000c60, may_block=1) at ../glib/glib/gmain.c:4338
#6  0x00007b92407c5782 in QEventDispatcherGlib::processEvents (this=0x7b9228000b70, flags=...)
    at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:401
#7  0x00007b92405606a6 in QEventLoop::processEvents (this=0x7b92337fd730, flags=...)
    at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:103
#8  QEventLoop::exec (this=0x7b92337fd730, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:185
#9  0x00007b9240657999 in QThread::exec (this=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread.cpp:590
#10 QThread::run (this=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread.cpp:711
#11 0x00007b92406d8a9b in operator() (__closure=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread_unix.cpp:375
#12 (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=...)
    at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread_unix.cpp:311
--Type <RET> for more, q to quit, c to continue without paging--c
#13 QThreadPrivate::start (arg=0x5b2417a87240) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread_unix.cpp:339
#14 0x00007b923fea370a in start_thread (arg=<optimized out>) at pthread_create.c:448
#15 0x00007b923ff27aac in __GI___clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.0
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.13.2-arch1-1 (64-bit)
Graphics Platform: Wayland
Comment 1 Harald Sitter 2025-02-17 11:36:51 UTC
Please fill in the bug report template

SUMMARY


STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT
Comment 2 gudvinr+kde 2025-02-17 12:47:56 UTC
(In reply to Harald Sitter from comment #1)
> Please fill in the bug report template

SUMMARY

While handling crash report DrKonqi crashes. It is not the same as BUG 500248 as stacktrace is different.

Command Line: /usr/lib/drkonqi --appname systemsettings --signal 11 --appversion 6.3.0 --kdeframeworksversion 6.11.0 --bugaddress submit@bugs.kde.org --platform wayland --programname $'System Settings' --pid 3510 --apppath /usr/bin --qtversion 6.8.2

I am consistently having this issue with each DrKonqi invocation.

STEPS TO REPRODUCE
1. Get a crash
2. Submit a report

OBSERVED RESULT

DrKonqi crashes on exit:
> Program terminated with signal SIGTRAP, Trace/breakpoint trap.

EXPECTED RESULT

Normal exit.
Comment 3 gudvinr+kde 2025-02-17 13:07:40 UTC
Created attachment 178482 [details]
journald content

Crash reported at 11:01:01.
Instance of drkonqi that crashed has pid 3557.
Comment 4 Harald Sitter 2025-02-17 16:16:16 UTC
From the journal this looks like a symptom of something being broken elsewhere. Just about all your processes crash on exit by the looks of it.
Comment 5 gudvinr+kde 2025-02-17 16:22:14 UTC
(In reply to Harald Sitter from comment #4)
> From the journal this looks like a symptom of something being broken
> elsewhere. Just about all your processes crash on exit by the looks of it.

What could be this "elsewhere" so I can maybe fill an issue which relates to the root cause?
No crashes in X11 session so it is closely related to wayland.
Comment 6 Harald Sitter 2025-02-17 16:32:53 UTC
Maybe tracing the launcher will give us a hint. It's the leanest of the applications in the journal

coredumpctl gdb drkonqi-coredump-launcher
Comment 7 Harald Sitter 2025-02-18 12:00:26 UTC
.
Comment 8 Bug Janitor Service 2025-03-05 03:47:23 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 9 Bug Janitor Service 2025-03-20 03:47:22 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.