Bug 495351 - kommitdiff
Summary: kommitdiff
Status: RESOLVED FIXED
Alias: None
Product: kommit
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Hamed Masafi
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2024-10-25 17:12 UTC by Thomas Braun
Modified: 2024-11-16 15:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report: https://crash-reports.kde.org/organizations/kde/issues/77854/events/451b81f255224946ab3583ccce55c3e7/


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Braun 2024-10-25 17:12:51 UTC
Application: kommit (1.6.0)

ApplicationNotResponding [ANR]: false
Qt Version: 6.8.0
Frameworks Version: 6.7.0
Operating System: Linux 6.11.5-arch1-1 x86_64
Windowing System: Wayland
Distribution: EndeavourOS
DrKonqi: 6.2.2 [CoredumpBackend]

-- Information about the crash:
Simple start of kommitdiff, no special actions needed to cause this crash. 
Only kommitdiff crashes, kommit and kommitmerge are running.

The crash can be reproduced every time.

-- Backtrace:
Application: Kommit (kommit), signal: Segmentation fault
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = <optimized out>}

warning: Can't open file anon_inode:i915.gem which was expanded to anon_inode:i915.gem during file-backed mapping note processing
[New LWP 21825]
[New LWP 21826]
[New LWP 21829]
[New LWP 21830]
[New LWP 21827]
[New LWP 21828]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `kommit diff'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=11, no_tid=no_tid@entry=0) at pthread_kill.c:44
44	      return INTERNAL_SYSCALL_ERROR_P (ret) ? INTERNAL_SYSCALL_ERRNO (ret) : 0;
[Current thread is 1 (Thread 0x71c0c30eba00 (LWP 21825))]

Cannot QML trace cores :(
/usr/share/drkonqi/gdb/python/gdb_preamble/preamble.py:516: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
  boot_time = datetime.utcfromtimestamp(psutil.boot_time()).strftime('%Y-%m-%dT%H:%M:%S')
/usr/share/drkonqi/gdb/python/gdb_preamble/preamble.py:533: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
  'timestamp': datetime.utcnow().isoformat(),
[Current thread is 1 (Thread 0x71c0c30eba00 (LWP 21825))]

Thread 6 (Thread 0x71c0bbe006c0 (LWP 21828)):
#0  0x000071c0c991a63d in __GI___poll (fds=fds@entry=0x71c0bbdffb20, nfds=nfds@entry=2, timeout=timeout@entry=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x000071c0c396e417 in poll (__fds=0x71c0bbdffb20, __nfds=2, __timeout=-1) at /usr/include/bits/poll2.h:44
#2  QtWaylandClient::EventThread::run (this=0x5e84d4696ef0) at /usr/src/debug/qt6-wayland/qtwayland/src/client/qwaylanddisplay.cpp:182
#3  0x000071c0c9cd840f in operator() (__closure=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread_unix.cpp:335
#4  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread_unix.cpp:263
#5  QThreadPrivate::start (arg=0x5e84d4696ef0) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread_unix.cpp:294
#6  0x000071c0c98a339d in start_thread (arg=<optimized out>) at pthread_create.c:447
#7  0x000071c0c992849c in __GI___clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 5 (Thread 0x71c0c0e006c0 (LWP 21827)):
#0  0x000071c0c989fa19 in __futex_abstimed_wait_common64 (private=0, futex_word=0x5e84d466a7f0, expected=0, op=393, abstime=0x0, cancel=true) at futex-internal.c:57
#1  __futex_abstimed_wait_common (futex_word=futex_word@entry=0x5e84d466a7f0, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87
#2  0x000071c0c989fa9f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x5e84d466a7f0, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139
#3  0x000071c0c98a2479 in __pthread_cond_wait_common (cond=0x5e84d466a7c8, mutex=<optimized out>, clockid=0, abstime=0x0) at pthread_cond_wait.c:503
#4  ___pthread_cond_wait (cond=0x5e84d466a7c8, mutex=<optimized out>) at pthread_cond_wait.c:618
#5  0x000071c0c9cdd030 in QWaitConditionPrivate::wait (this=0x5e84d466a7a0, deadline=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:102
#6  QWaitCondition::wait (this=this@entry=0x5e84d470ef10, mutex=mutex@entry=0x5e84d470ef08, deadline=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:180
#7  0x000071c0c396e3af in QtWaylandClient::EventThread::waitForReading (this=0x5e84d470eed0) at /usr/src/debug/qt6-wayland/qtwayland/src/client/qwaylanddisplay.cpp:216
#8  QtWaylandClient::EventThread::run (this=0x5e84d470eed0) at /usr/src/debug/qt6-wayland/qtwayland/src/client/qwaylanddisplay.cpp:177
#9  0x000071c0c9cd840f in operator() (__closure=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread_unix.cpp:335
#10 (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread_unix.cpp:263
#11 QThreadPrivate::start (arg=0x5e84d470eed0) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread_unix.cpp:294
#12 0x000071c0c98a339d in start_thread (arg=<optimized out>) at pthread_create.c:447
#13 0x000071c0c992849c in __GI___clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 4 (Thread 0x71c0b3e006c0 (LWP 21830)):
#0  0x000071c0c989fa19 in __futex_abstimed_wait_common64 (private=0, futex_word=0x5e84d47a08d8, expected=0, op=393, abstime=0x0, cancel=true) at futex-internal.c:57
#1  __futex_abstimed_wait_common (futex_word=futex_word@entry=0x5e84d47a08d8, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87
#2  0x000071c0c989fa9f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x5e84d47a08d8, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139
#3  0x000071c0c98a2479 in __pthread_cond_wait_common (cond=0x5e84d47a08b0, mutex=<optimized out>, clockid=0, abstime=0x0) at pthread_cond_wait.c:503
#4  ___pthread_cond_wait (cond=0x5e84d47a08b0, mutex=<optimized out>) at pthread_cond_wait.c:618
#5  0x000071c0b8eced6e in cnd_wait () at ../mesa-24.2.5/src/c11/impl/threads_posix.c:135
#6  0x000071c0b8eab77c in util_queue_thread_func () at ../mesa-24.2.5/src/util/u_queue.c:290
#7  0x000071c0b8ecec9d in impl_thrd_routine () at ../mesa-24.2.5/src/c11/impl/threads_posix.c:67
#8  0x000071c0c98a339d in start_thread (arg=<optimized out>) at pthread_create.c:447
#9  0x000071c0c992849c in __GI___clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 3 (Thread 0x71c0b8c006c0 (LWP 21829)):
#0  0x000071c0c989fa19 in __futex_abstimed_wait_common64 (private=0, futex_word=0x5e84d470a688, expected=0, op=393, abstime=0x0, cancel=true) at futex-internal.c:57
#1  __futex_abstimed_wait_common (futex_word=futex_word@entry=0x5e84d470a688, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87
#2  0x000071c0c989fa9f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x5e84d470a688, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139
#3  0x000071c0c98a2479 in __pthread_cond_wait_common (cond=0x5e84d470a660, mutex=<optimized out>, clockid=0, abstime=0x0) at pthread_cond_wait.c:503
#4  ___pthread_cond_wait (cond=0x5e84d470a660, mutex=<optimized out>) at pthread_cond_wait.c:618
#5  0x000071c0b8eced6e in cnd_wait () at ../mesa-24.2.5/src/c11/impl/threads_posix.c:135
#6  0x000071c0b8eab77c in util_queue_thread_func () at ../mesa-24.2.5/src/util/u_queue.c:290
#7  0x000071c0b8ecec9d in impl_thrd_routine () at ../mesa-24.2.5/src/c11/impl/threads_posix.c:67
#8  0x000071c0c98a339d in start_thread (arg=<optimized out>) at pthread_create.c:447
#9  0x000071c0c992849c in __GI___clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 2 (Thread 0x71c0c2a006c0 (LWP 21826)):
#0  0x000071c0c991abb0 in __GI_ppoll (fds=fds@entry=0x5e84d463f170, nfds=nfds@entry=2, timeout=<optimized out>, timeout@entry=0x0, sigmask=sigmask@entry=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:42
#1  0x000071c0c8bc6227 in ppoll (__fds=0x5e84d463f170, __nfds=2, __timeout=0x0, __ss=0x0) at /usr/include/bits/poll2.h:101
#2  g_main_context_poll_unlocked (priority=<optimized out>, context=0x71c0bc000cb0, timeout_usec=<optimized out>, fds=0x5e84d463f170, n_fds=2) at ../glib/glib/gmain.c:4591
#3  g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x71c0bc000cb0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4268
#4  0x000071c0c8b62a55 in g_main_context_iteration (context=0x71c0bc000cb0, may_block=1) at ../glib/glib/gmain.c:4338
#5  0x000071c0c9dbf71d in QEventDispatcherGlib::processEvents (this=0x71c0bc000ba0, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:396
#6  0x000071c0c9b64566 in QEventLoop::processEvents (this=0x71c0c29ffae0, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:100
#7  QEventLoop::exec (this=0x71c0c29ffae0, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:191
#8  0x000071c0c9c57072 in QThread::exec (this=this@entry=0x71c0c8dfeb20 <QGlobalStatic<QtGlobalStatic::Holder<(anonymous namespace)::Q_QGS__q_manager> >::instance()::holder>) at /usr/src/debug/qt6-base/qtbase/src/corelib/global/qflags.h:74
#9  0x000071c0c8d7379e in QDBusConnectionManager::run (this=0x71c0c8dfeb20 <QGlobalStatic<QtGlobalStatic::Holder<(anonymous namespace)::Q_QGS__q_manager> >::instance()::holder>) at /usr/src/debug/qt6-base/qtbase/src/dbus/qdbusconnectionmanager.cpp:144
#10 0x000071c0c9cd840f in operator() (__closure=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread_unix.cpp:335
#11 (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread_unix.cpp:263
#12 QThreadPrivate::start (arg=0x71c0c8dfeb20 <QGlobalStatic<QtGlobalStatic::Holder<(anonymous namespace)::Q_QGS__q_manager> >::instance()::holder>) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread_unix.cpp:294
#13 0x000071c0c98a339d in start_thread (arg=<optimized out>) at pthread_create.c:447
#14 0x000071c0c992849c in __GI___clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 1 (Thread 0x71c0c30eba00 (LWP 21825)):
[KCrash Handler]
#5  0x000071c0c9acb766 in printMethodNotFoundWarning(QMetaObject const*, QByteArrayView, long long, char const* const*, QtPrivate::QMetaTypeInterface const* const*) [clone .isra.0] (meta=0x71c0cb39fac0 <CommandArgsParser::staticMetaObject>, name=<error reading variable: Cannot access memory at address 0x0>, paramCount=paramCount@entry=11, names=names@entry=0x7fffa68bc828, metaTypes=metaTypes@entry=0x7fffa68bc880) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qmetaobject.cpp:1416
#6  0x000071c0c9b61591 in QMetaObject::invokeMethodImpl (obj=obj@entry=0x7fffa68bcac0, member=0x71c0cb395141 <(anonymous namespace)::qt_meta_stringdata_CLASSCommandArgsParserENDCLASS+353> "diff", type=type@entry=Qt::AutoConnection, paramCount=paramCount@entry=11, parameters=parameters@entry=0x7fffa68bc7d0, typeNames=typeNames@entry=0x7fffa68bc828, metaTypes=0x7fffa68bc880) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qmetaobject.cpp:1613
#7  0x000071c0cb38aa91 in QMetaObject::invokeMethod<ArgParserReturn, QMetaMethodArgument, QMetaMethodArgument, QMetaMethodArgument, QMetaMethodArgument, QMetaMethodArgument, QMetaMethodArgument, QMetaMethodArgument, QMetaMethodArgument, QMetaMethodArgument, QMetaMethodArgument> (c=Qt::AutoConnection, obj=0x7fffa68bcac0, member=<optimized out>, r=...) at /usr/include/qt6/QtCore/qobjectdefs.h:376
#8  QMetaObject::invokeMethod<ArgParserReturn, QMetaMethodArgument, QMetaMethodArgument, QMetaMethodArgument, QMetaMethodArgument, QMetaMethodArgument, QMetaMethodArgument, QMetaMethodArgument, QMetaMethodArgument, QMetaMethodArgument, QMetaMethodArgument> (obj=0x7fffa68bcac0, member=<optimized out>, r=...) at /usr/include/qt6/QtCore/qobjectdefs.h:401
#9  CommandArgsParser::run (this=<optimized out>, args=...) at /usr/src/debug/kommit/kommit-1.6.0/src/gui/commandargsparser.cpp:162
#10 0x000071c0cb38b290 in CommandArgsParser::run (this=<optimized out>, args=...) at /usr/include/qt6/QtCore/qlist.h:389
#11 0x00005e849dbbd5ae in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kommit/kommit-1.6.0/src/apps/main.cpp:80

Reported using DrKonqi
Comment 1 Thomas Braun 2024-10-26 14:04:50 UTC
Crashes in a X11 Session as well: 

Application: Kommit (kommit), signal: Segmentation fault


This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.archlinux.org>
Enable debuginfod for this session? (y or [n]) [answered N; input not from terminal]
Debuginfod has been disabled.
To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.

warning: Can't open file anon_inode:i915.gem which was expanded to anon_inode:i915.gem during file-backed mapping note processing
[New LWP 29979]
[New LWP 29981]
[New LWP 29982]
[New LWP 29983]
[New LWP 29980]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `/usr/bin/kommit diff'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x000075d44f6a53f4 in ?? () from /usr/lib/libc.so.6
[Current thread is 1 (Thread 0x75d448faea00 (LWP 29979))]
Cannot QML trace cores :(
/usr/share/drkonqi/gdb/python/gdb_preamble/preamble.py:516: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
  boot_time = datetime.utcfromtimestamp(psutil.boot_time()).strftime('%Y-%m-%dT%H:%M:%S')
/usr/share/drkonqi/gdb/python/gdb_preamble/preamble.py:533: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
  'timestamp': datetime.utcnow().isoformat(),
[Current thread is 1 (Thread 0x75d448faea00 (LWP 29979))]

Thread 5 (Thread 0x75d448a006c0 (LWP 29980)):
#0  0x000075d44f71abb0 in ppoll () from /usr/lib/libc.so.6
#1  0x000075d44ea81227 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x000075d44ea1da55 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x000075d44fbbf71d in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt6Core.so.6
#4  0x000075d44f964566 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt6Core.so.6
#5  0x000075d44fa57072 in QThread::exec() () from /usr/lib/libQt6Core.so.6
#6  0x000075d44ef7379e in ?? () from /usr/lib/libQt6DBus.so.6
#7  0x000075d44fad840f in ?? () from /usr/lib/libQt6Core.so.6
#8  0x000075d44f6a339d in ?? () from /usr/lib/libc.so.6
#9  0x000075d44f72849c in ?? () from /usr/lib/libc.so.6

Thread 4 (Thread 0x75d4414006c0 (LWP 29983)):
#0  0x000075d44f69fa19 in ?? () from /usr/lib/libc.so.6
#1  0x000075d44f6a2479 in pthread_cond_wait () from /usr/lib/libc.so.6
#2  0x000075d4398ced6e in ?? () from /usr/lib/libgallium-24.2.5-arch1.1.so
#3  0x000075d4398ab77c in ?? () from /usr/lib/libgallium-24.2.5-arch1.1.so
#4  0x000075d4398cec9d in ?? () from /usr/lib/libgallium-24.2.5-arch1.1.so
#5  0x000075d44f6a339d in ?? () from /usr/lib/libc.so.6
#6  0x000075d44f72849c in ?? () from /usr/lib/libc.so.6

Thread 3 (Thread 0x75d441e006c0 (LWP 29982)):
#0  0x000075d44f69fa19 in ?? () from /usr/lib/libc.so.6
#1  0x000075d44f6a2479 in pthread_cond_wait () from /usr/lib/libc.so.6
#2  0x000075d4398ced6e in ?? () from /usr/lib/libgallium-24.2.5-arch1.1.so
#3  0x000075d4398ab77c in ?? () from /usr/lib/libgallium-24.2.5-arch1.1.so
#4  0x000075d4398cec9d in ?? () from /usr/lib/libgallium-24.2.5-arch1.1.so
#5  0x000075d44f6a339d in ?? () from /usr/lib/libc.so.6
#6  0x000075d44f72849c in ?? () from /usr/lib/libc.so.6

Thread 2 (Thread 0x75d443e006c0 (LWP 29981)):
#0  0x000075d44f71a63d in poll () from /usr/lib/libc.so.6
#1  0x000075d44d67d20b in ?? () from /usr/lib/libxcb.so.1
#2  0x000075d44d67ef3d in xcb_wait_for_event () from /usr/lib/libxcb.so.1
#3  0x000075d448bacc39 in ?? () from /usr/lib/qt6/plugins/platforms/../../../libQt6XcbQpa.so.6
#4  0x000075d44fad840f in ?? () from /usr/lib/libQt6Core.so.6
#5  0x000075d44f6a339d in ?? () from /usr/lib/libc.so.6
#6  0x000075d44f72849c in ?? () from /usr/lib/libc.so.6

Thread 1 (Thread 0x75d448faea00 (LWP 29979)):
[KCrash Handler]
#4  0x000075d44f8cb766 in ?? () from /usr/lib/libQt6Core.so.6
#5  0x000075d44f961591 in QMetaObject::invokeMethodImpl(QObject*, char const*, Qt::ConnectionType, long long, void const* const*, char const* const*, QtPrivate::QMetaTypeInterface const* const*) () from /usr/lib/libQt6Core.so.6
#6  0x000075d45124ca91 in ?? () from /usr/lib/libkommitgui.so.0
#7  0x000061e2055705ae in ?? ()
#8  0x000075d44f634e08 in ?? () from /usr/lib/libc.so.6
#9  0x000075d44f634ecc in __libc_start_main () from /usr/lib/libc.so.6
#10 0x000061e2055706d5 in ?? ()
Comment 2 Hamed Masafi 2024-10-26 17:13:30 UTC
Hi
Whole diff part is under review/development.
Please wait until next version (within a week)
https://invent.kde.org/sdk/kommit/-/tree/work/hamedmasafi/diff?ref_type=heads
Comment 3 Thomas Braun 2024-10-26 18:01:16 UTC
Ah, kommit is qt5 based?
I'm running qt 6.8 on my system.
Comment 4 Hamed Masafi 2024-10-26 18:21:47 UTC
It supports Qt6 perfectly
Comment 5 Thomas Braun 2024-10-26 18:23:17 UTC
Okay, will wait patiently for the upstream fixes then.
Comment 6 Thomas Braun 2024-11-16 15:17:03 UTC
24.11.8 is working for me.