Bug 406915 - KBibTeX crashes on close
Summary: KBibTeX crashes on close
Status: RESOLVED WORKSFORME
Alias: None
Product: KBibTeX
Classification: Applications
Component: General (other bugs)
Version First Reported In: unspecified
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: Thomas Fischer
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2019-04-26 08:55 UTC by Erik Quaeghebeur
Modified: 2019-04-30 20:51 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Quaeghebeur 2019-04-26 08:55:17 UTC
Application: kbibtex (eeff6135 (HEAD), near 0.9.50)

Qt Version: 5.11.3
Frameworks Version: 5.54.0
Operating System: Linux 4.19.27-gentoo-r1-resume_from_partuuid x86_64
Distribution (Platform): Gentoo Packages

-- Information about the crash:
- What I was doing when the application crashed:
I closed kbibtex and then it crashed. There was a file open which had just been edited by another program, but I had told KBobTeX to reload it.

-- Backtrace:
Application: KBibTeX (kbibtex), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f664db6a340 (LWP 12089))]

Thread 3 (Thread 0x7f6636128700 (LWP 12092)):
#0  0x00007f665774f0fc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f66366af263 in ?? () from /usr/lib64/dri/i965_dri.so
#2  0x00007f66366aefb7 in ?? () from /usr/lib64/dri/i965_dri.so
#3  0x00007f66577483f3 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f665c1ce4af in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f6641f6a700 (LWP 12091)):
#0  0x00007f665675358b in ?? () from /usr/lib64/libglib-2.0.so.0
#1  0x00007f6656755b13 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f66567565db in ?? () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f66567567cc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f665c93165b in QEventDispatcherGlib::processEvents (this=0x7f663c000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007f665c8e185b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#6  0x00007f665c75a6c6 in QThread::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#7  0x00007f665af7bde5 in ?? () from /usr/lib64/libQt5DBus.so.5
#8  0x00007f665c76369b in QThreadPrivate::start(void*) () at thread/qthread_unix.cpp:367
#9  0x00007f66577483f3 in start_thread () from /lib64/libpthread.so.0
#10 0x00007f665c1ce4af in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f664db6a340 (LWP 12089)):
[KCrash Handler]
#6  0x00007f665f847080 in QHash<QString, QVariant>::findNode (this=this@entry=0x7f665faaf970 <QtSharedPointer::ExternalRefCountWithCustomDeleter<Keyword, QtSharedPointer::NormalDeleter>::deleter(QtSharedPointer::ExternalRefCountData*)>, akey=..., ahp=ahp@entry=0x0) at /usr/include/qt5/QtCore/qhash.h:926
#7  0x00007f665f840dad in QHash<QString, QVariant>::contains (akey=..., this=0x7f665faaf970 <QtSharedPointer::ExternalRefCountWithCustomDeleter<Keyword, QtSharedPointer::NormalDeleter>::deleter(QtSharedPointer::ExternalRefCountData*)>) at /usr/include/qt5/QtCore/qhash.h:904
#8  File::hasProperty (this=this@entry=0x55fe367d6740, key=...) at /var/tmp/portage/app-text/kbibtex-9999/work/kbibtex-9999/src/data/file.cpp:338
#9  0x00007f66612c2d11 in FileSettingsWidget::loadProperties (this=0x55fe373d18a0, file=0x55fe367d6740) at /var/tmp/portage/app-text/kbibtex-9999/work/kbibtex-9999/src/gui/widgets/filesettingswidget.cpp:51
#10 0x00007f665c909f17 in QtPrivate::QSlotObjectBase::call (a=0x7ffc20f92c90, r=0x55fe373d18a0, this=0x55fe373df1a0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:376
#11 QMetaObject::activate(QObject*, int, int, void**) () at kernel/qobject.cpp:3754
#12 0x00007f665c90a337 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x55fe3517d500 <OpenFileInfoManager::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7ffc20f92c90) at kernel/qobject.cpp:3633
#13 0x000055fe34f670f1 in OpenFileInfoManager::flagsChanged (this=<optimized out>, _t1=...) at src/program/kbibtex_autogen/EWIEGA46WW/moc_openfileinfo.cpp:282
#14 0x00007f665c909f17 in QtPrivate::QSlotObjectBase::call (a=0x7ffc20f92db0, r=0x55fe35cad740, this=0x55fe377186f0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:376
#15 QMetaObject::activate(QObject*, int, int, void**) () at kernel/qobject.cpp:3754
#16 0x00007f665c90a337 in QMetaObject::activate (sender=sender@entry=0x55fe37441b90, m=m@entry=0x55fe3517d540 <OpenFileInfo::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffc20f92db0) at kernel/qobject.cpp:3633
#17 0x000055fe34f6702e in OpenFileInfo::flagsChanged (this=this@entry=0x55fe37441b90, _t1=_t1@entry=...) at src/program/kbibtex_autogen/EWIEGA46WW/moc_openfileinfo.cpp:129
#18 0x000055fe34f5e71f in OpenFileInfo::setLastAccess (this=this@entry=0x55fe37441b90, dateTime=...) at /usr/include/qt5/QtCore/qflags.h:120
#19 0x000055fe34f5ebef in OpenFileInfoManager::close (this=0x55fe35cad740, openFileInfo=0x55fe37441b90) at /var/tmp/portage/app-text/kbibtex-9999/work/kbibtex-9999/src/program/openfileinfo.cpp:595
#20 0x00007f665c909f17 in QtPrivate::QSlotObjectBase::call (a=0x7ffc20f92f70, r=0x55fe35ac7fc0, this=0x55fe3742fbf0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:376
#21 QMetaObject::activate(QObject*, int, int, void**) () at kernel/qobject.cpp:3754
#22 0x00007f665c90a337 in QMetaObject::activate (sender=sender@entry=0x55fe3742fc60, m=m@entry=0x7f665df05840 <QAction::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7ffc20f92f70) at kernel/qobject.cpp:3633
#23 0x00007f665d833682 in QAction::triggered (this=this@entry=0x55fe3742fc60, _t1=<optimized out>) at .moc/moc_qaction.cpp:376
#24 0x00007f665d835cbc in QAction::activate (this=0x55fe3742fc60, event=<optimized out>) at kernel/qaction.cpp:1166
#25 0x00007f665d9a963c in QMenuPrivate::activateCausedStack (this=this@entry=0x55fe37445450, causedStack=..., action=action@entry=0x55fe3742fc60, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1371
#26 0x00007f665d9b0bbb in QMenuPrivate::activateAction (this=this@entry=0x55fe37445450, action=action@entry=0x55fe3742fc60, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1448
#27 0x00007f665d9b1a5f in QMenu::mouseReleaseEvent (this=<optimized out>, e=0x7ffc20f93580) at widgets/qmenu.cpp:2942
#28 0x00007f665d878a68 in QWidget::event (this=this@entry=0x55fe37467550, event=event@entry=0x7ffc20f93580) at kernel/qwidget.cpp:9287
#29 0x00007f665d9b3dbb in QMenu::event (this=0x55fe37467550, e=0x7ffc20f93580) at widgets/qmenu.cpp:3064
#30 0x00007f665d839d8c in QApplicationPrivate::notify_helper (this=this@entry=0x55fe359dd8c0, receiver=receiver@entry=0x55fe37467550, e=e@entry=0x7ffc20f93580) at kernel/qapplication.cpp:3726
#31 0x00007f665d841ec7 in QApplication::notify (this=<optimized out>, receiver=0x55fe37467550, e=0x7ffc20f93580) at kernel/qapplication.cpp:3202
#32 0x00007f665c8e2882 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at kernel/qcoreapplication.cpp:1047
#33 0x00007f665d840812 in QCoreApplication::sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:234
#34 QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x55fe37467550, event=event@entry=0x7ffc20f93580, alienWidget=0x0, alienWidget@entry=0x55fe37467550, nativeWidget=0x55fe37467550, buttonDown=buttonDown@entry=0x7f665df34850 <qt_button_down>, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:2694
#35 0x00007f665d89379a in QWidgetWindow::handleMouseEvent (this=this@entry=0x55fe3790a6a0, event=event@entry=0x7ffc20f93960) at kernel/qwidgetwindow.cpp:556
#36 0x00007f665d896029 in QWidgetWindow::event (this=0x55fe3790a6a0, event=0x7ffc20f93960) at kernel/qwidgetwindow.cpp:281
#37 0x00007f665d839d8c in QApplicationPrivate::notify_helper (this=this@entry=0x55fe359dd8c0, receiver=receiver@entry=0x55fe3790a6a0, e=e@entry=0x7ffc20f93960) at kernel/qapplication.cpp:3726
#38 0x00007f665d84132f in QApplication::notify (this=0x7ffc20f93cc0, receiver=0x55fe3790a6a0, e=0x7ffc20f93960) at kernel/qapplication.cpp:3485
#39 0x00007f665c8e2882 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at kernel/qcoreapplication.cpp:1047
#40 0x00007f665d0fd7d3 in QCoreApplication::sendSpontaneousEvent (event=0x7ffc20f93960, receiver=0x55fe3790a6a0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:237
#41 QGuiApplicationPrivate::processMouseEvent (e=0x55fe35b3de40) at kernel/qguiapplication.cpp:2082
#42 0x00007f665d0ff505 in QGuiApplicationPrivate::processWindowSystemEvent (e=e@entry=0x55fe35b3de40) at kernel/qguiapplication.cpp:1817
#43 0x00007f665d0da67b in QWindowSystemInterface::sendWindowSystemEvents (flags=...) at kernel/qwindowsysteminterface.cpp:1032
#44 0x00007f664d25d5db in QPAEventDispatcherGlib::processEvents (this=0x55fe35a293c0, flags=...) at qeventdispatcher_glib.cpp:70
#45 0x00007f665c8e185b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#46 0x00007f665c8e96c2 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#47 0x000055fe34f2d341 in main (argc=<optimized out>, argv=<optimized out>) at /var/tmp/portage/app-text/kbibtex-9999/work/kbibtex-9999/src/program/program.cpp:124

Reported using DrKonqi
Comment 1 Thomas Fischer 2019-04-30 20:51:11 UTC
I think I had the same problem myself and fixed it in commit 709936db033b26b which is just two commits ahead of commit eeff61355e6d4fc which you were using. Please recompile KBibTeX with the lastest master and check if you still have this problem.

https://cgit.kde.org/kbibtex.git/commit/?id=709936db033