Bug 351199 - kbibtex crashes on startup when using git revision 600c246
Summary: kbibtex crashes on startup when using git revision 600c246
Status: RESOLVED FIXED
Alias: None
Product: KBibTeX
Classification: Applications
Component: General (other bugs)
Version First Reported In: git (master)
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Thomas Fischer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-11 19:54 UTC by Gandalf Lechner
Modified: 2016-08-18 09:47 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 Gandalf Lechner 2015-08-11 19:54:41 UTC
kbibtex crashes on startup when using git revision 600c246 with no further error messages. It used to work fine a few days ago.

Reproducible: Always
Comment 1 Thomas Fischer 2015-08-17 20:55:42 UTC
(In reply to Gandalf Lechner from comment #0)
> kbibtex crashes on startup when using git revision 600c246 with no further
> error messages. It used to work fine a few days ago.
I cannot reproduce this problem with exactly this commit.
Does KBibTeX automatically open some files you had opened in the previous session?
Do you see any output on the console when starting KBIbTeX on the command line?

The master branch of KBibTeX for KDE4 was recently branched into 'kbibtex/0.7', whereas the Frameworks 5 version became 'master'. Can you reproduce the problem with either of the branches?
Comment 2 Gandalf Lechner 2015-08-24 08:43:18 UTC
After another checkout I needed to install a couple of new packages, probably due to the kf5 version. Now I get a message "no part available for file .." when trying to open a .bib file. No crash, but the file is not opened.
Comment 3 Thomas Fischer 2015-09-16 20:43:32 UTC
Compilation and installation differs slightly between the KDE4 version and the KF5 version. Please see if the instructions provided at https://userbase.kde.org/KBibTeX/Development help you on how to install KBibTeX.
Comment 4 Thomas Fischer 2016-02-15 19:26:39 UTC
(In reply to Gandalf Lechner from comment #2)
> After another checkout I needed to install a couple of new packages,
> probably due to the kf5 version. Now I get a message "no part available for
> file .." when trying to open a .bib file. No crash, but the file is not
> opened.
Does the problem still exist or can I close this bug report?
Comment 5 Gandalf Lechner 2016-02-18 10:26:58 UTC
I just tried with a new checkout - compilation and installation works fine as far as I can tell, but kbibtex crashes right after starting it, with the message pasted below.

Is there a simple way of checking that my installation is correct?

#########

kbibtex.program: Starting KBibTeX version Git revision c451d02 (master)
QCommandLineParser: option not defined: "author"
QCommandLineParser: option not defined: "license"
QCommandLineParser: option not defined: "desktopfile"
kbibtex.data: Creating File instance 100000
kbibtex.program: No Okular part for PDF or PostScript document preview available.
kbibtex.program: HTML KPart is available, using it instead of WebEngine or WebKit (neither available) for HTML/Web preview.
kbibtex.program: Located KPart service: "kbibtexpart" with description "KParts-Komponente zum Betrachten und Editieren von Bibliographiedateien"
kbibtex.program: Using service "BibTeX-Betrachter und -Editor" ( "KParts-Komponente zum Betrachten und Editieren von Bibliographiedateien" ) for mime type "text/x-bibtex"
Speicherzugriffsfehler (Speicherabzug geschrieben)
Comment 6 Thomas Fischer 2016-02-26 22:07:32 UTC
> Is there a simple way of checking that my installation is correct?
> Speicherzugriffsfehler (Speicherabzug geschrieben)
The error message points to a real crash, for which I would consider an incomplete as less likely.

There is a TechBase article on how to generate useful crash reports:
https://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports
You may need to configure&compile KBibTeX with debugging enabled (-DCMAKE_BUILD_TYPE=debug) and have KDE's kcrash installed. Hopefully this will provide you with more information why the crash happens.
Comment 7 Gandalf Lechner 2016-04-10 12:49:34 UTC
Today I tried again, with a fresh checkout. I also made sure that I compiled the debug version, and have all packages with "kcrash" in their names installed. The result is still an immediate crash after starting the program (can see the program window only for a split second), and the message

kbibtex.program: Starting KBibTeX version Git revision 82140e1 (master)
QCommandLineParser: option not defined: "author"
QCommandLineParser: option not defined: "license"
QCommandLineParser: option not defined: "desktopfile"
kbibtex.data: Creating File instance 100000
kbibtex.program: No Okular part for PDF or PostScript document preview available.
kbibtex.program: HTML KPart is available, using it instead of WebEngine or WebKit (neither available) for HTML/Web preview.
kbibtex.program: Located KPart service: "kbibtexpart" with description "KParts-Komponente zum Betrachten und Editieren von Bibliographiedateien"
kbibtex.program: Using service "BibTeX-Betrachter und -Editor" ( "KParts-Komponente zum Betrachten und Editieren von Bibliographiedateien" ) for mime type "text/x-bibtex"
Speicherzugriffsfehler (Speicherabzug geschrieben)


I have in the meantime switched from kubuntu 15.10 to kubuntu 16.04, but the situation looks the same as before. Any idea what I could do to fix this?
Comment 8 Thomas Fischer 2016-04-17 19:34:57 UTC
Maybe this can help you to collect data on the crash: https://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports
Comment 9 Gandalf Lechner 2016-05-19 15:36:36 UTC
Since I really miss kbibtex, I now started experimenting with gdb (which I have no experience with) to produce more information on this crash.

As before, kbibtex starts fine, but crashes once I click "new" or "open". In gdb, it says

Thread 1 "kbibtex" received signal SIGSEGV, Segmentation fault.
0x00007ffff7b4a036 in FilterBar::comboboxStatusChanged (this=0x14cac80)
    at /home/gandalf/down/git/kbibtex/src/gui/widgets/filterbar.cpp:275
275         d->buttonSearchPDFfiles->setEnabled(d->comboBoxField->currentIndex() == 0);


The kbibtex window does however not close, it stays there but is completely unresponsive. 

Then I read somewhere that I should type "thread apply all backtrace" into gdb, which produces further output that I paste below. Is this useful information or should I try something else?



Thread 2 (Thread 0x7fffe4929700 (LWP 1010)):
#0  0x00007ffff312be8d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007fffecb89c62 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007fffecb8b8d7 in xcb_wait_for_event ()
   from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fffe6a38629 in QXcbEventReader::run (this=0x790970)
    at qxcbconnection.cpp:1253
#4  0x00007ffff382184e in QThreadPrivate::start (arg=0x790970)
    at thread/qthread_unix.cpp:331
#5  0x00007fffef71e6fa in start_thread (arg=0x7fffe4929700) at pthread_create.c:333
#6  0x00007ffff3137b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7fffe6f868c0 (LWP 1002)):
#0  0x00007ffff7b4a036 in FilterBar::comboboxStatusChanged (this=0x14cac80)
    at /home/gandalf/down/git/kbibtex/src/gui/widgets/filterbar.cpp:275
#1  0x00007ffff7b8258f in FilterBar::qt_static_metacall (_o=0x14cac80, 
    _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0x7fffffffbf20)
    at /home/gandalf/down/git/kbibtex/build/src/gui/moc_filterbar.cpp:99
#2  0x00007ffff3a30fca in QMetaObject::activate (sender=sender@entry=0x150fad0, 
    signalOffset=<optimised out>, local_signal_index=local_signal_index@entry=5, 
    argv=argv@entry=0x7fffffffbf20) at kernel/qobject.cpp:3713
#3  0x00007ffff3a317d7 in QMetaObject::activate (sender=sender@entry=0x150fad0, 
    m=m@entry=0x7ffff4a88980 <QComboBox::staticMetaObject>, 
    local_signal_index=local_signal_index@entry=5, argv=argv@entry=0x7fffffffbf20)
    at kernel/qobject.cpp:3578
#4  0x00007ffff4695381 in QComboBox::currentIndexChanged (this=this@entry=0x150fad0, 
    _t1=1) at .moc/moc_qcombobox.cpp:481
#5  0x00007ffff46977e1 in QComboBoxPrivate::_q_emitCurrentIndexChanged (
    this=this@entry=0x153be20, index=...) at widgets/qcombobox.cpp:1302
#6  0x00007ffff4699e0d in QComboBoxPrivate::setCurrentIndex (
    this=this@entry=0x153be20, mi=...) at widgets/qcombobox.cpp:2107
#7  0x00007ffff469a03f in QComboBox::setCurrentIndex (this=<optimised out>, index=1)
    at widgets/qcombobox.cpp:2069
#8  0x00007ffff7b4b5b1 in FilterBar::FilterBarPrivate::setupGUI (this=0x11e3290)
    at /home/gandalf/down/git/kbibtex/src/gui/widgets/filterbar.cpp:129
#9  0x00007ffff7b4a492 in FilterBar::FilterBarPrivate::FilterBarPrivate (
    this=0x11e3290, parent=0x14cac80)
    at /home/gandalf/down/git/kbibtex/src/gui/widgets/filterbar.cpp:56
#10 0x00007ffff7b49ddb in FilterBar::FilterBar (this=0x14cac80, parent=0x87ff50)
    at /home/gandalf/down/git/kbibtex/src/gui/widgets/filterbar.cpp:243
#11 0x00007ffff7b18444 in PartWidget::Private::Private (this=0x10ea670, 
    parent=0x87ff50) at /home/gandalf/down/git/kbibtex/src/gui/file/partwidget.cpp:40
#12 0x00007ffff7b180a3 in PartWidget::PartWidget (this=0x87ff50, parent=0x846070)
    at /home/gandalf/down/git/kbibtex/src/gui/file/partwidget.cpp:55
#13 0x00007fffd5d3a486 in KBibTeXPart::KBibTeXPartPrivate::KBibTeXPartPrivate (
    this=0x11552d0, parentWidget=0x846070, parent=0xb03190)
    at /home/gandalf/down/git/kbibtex/src/parts/part.cpp:147
#14 0x00007fffd5d356a9 in KBibTeXPart::KBibTeXPart (this=0xb03190, 
    parentWidget=0x846070, parent=0x846070, args=..., __in_chrg=<optimised out>, 
    __vtt_parm=<optimised out>)
    at /home/gandalf/down/git/kbibtex/src/parts/part.cpp:730
#15 0x00007fffd5d44e61 in KPluginFactory::createPartInstance<KBibTeXPart> (
    parentWidget=0x846070, parent=0x846070, args=...)
    at /usr/include/KF5/KCoreAddons/kpluginfactory.h:483
#16 0x00007ffff3c91490 in KPluginFactory::create(char const*, QWidget*, QObject*, QList<QVariant> const&, QString const&) ()
   from /usr/lib/x86_64-linux-gnu/libKF5CoreAddons.so.5
#17 0x000000000049cdff in KPluginFactory::create<KParts::ReadWritePart> (
    this=0x88a850, parentWidget=0x846070, parent=0x846070, keyword=..., args=...)
    at /usr/include/KF5/KCoreAddons/kpluginfactory.h:519
#18 0x000000000049c525 in KService::createInstance<KParts::ReadWritePart> (
    this=0x1419820, parentWidget=0x846070, parent=0x846070, args=..., 
---Type <return> to continue, or q <return> to quit---
    error=0x7fffffffc660) at /usr/include/KF5/KService/kservice.h:526
#19 0x000000000049a7d7 in OpenFileInfo::OpenFileInfoPrivate::createPart (
    this=0x1089840, newWidgetParent=0x846070, newServicePtr=...)
    at /home/gandalf/down/git/kbibtex/src/program/openfileinfo.cpp:116
#20 0x0000000000498080 in OpenFileInfo::part (this=0x9376a0, parent=0x846070, 
    servicePtr=...) at /home/gandalf/down/git/kbibtex/src/program/openfileinfo.cpp:252
#21 0x000000000046bcc1 in MDIWidget::setFile (this=0x846070, openFileInfo=0x9376a0, 
    servicePtr=...) at /home/gandalf/down/git/kbibtex/src/program/mdiwidget.cpp:243
#22 0x0000000000464a1c in QtPrivate::FunctorCall<QtPrivate::IndexesList<0, 1>, QtPrivate::List<OpenFileInfo*, QExplicitlySharedDataPointer<KService> >, void, void (MDIWidget::*)(OpenFileInfo*, QExplicitlySharedDataPointer<KService>)>::call (f=
    (void (MDIWidget::*)(MDIWidget * const, OpenFileInfo *, QExplicitlySharedDataPointer<KService>)) 0x46bc3c <MDIWidget::setFile(OpenFileInfo*, QExplicitlySharedDataPointer<KService>)>, o=0x846070, arg=0x7fffffffcaa0)
    at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:501
#23 0x0000000000464318 in QtPrivate::FunctionPointer<void (MDIWidget::*)(OpenFileInfo*, QExplicitlySharedDataPointer<KService>)>::call<QtPrivate::List<OpenFileInfo*, QExplicitlySharedDataPointer<KService> >, void> (f=
    (void (MDIWidget::*)(MDIWidget * const, OpenFileInfo *, QExplicitlySharedDataPointer<KService>)) 0x46bc3c <MDIWidget::setFile(OpenFileInfo*, QExplicitlySharedDataPointer<KService>)>, o=0x846070, arg=0x7fffffffcaa0)
    at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:520
#24 0x0000000000463449 in QtPrivate::QSlotObject<void (MDIWidget::*)(OpenFileInfo*, QExplicitlySharedDataPointer<KService>), QtPrivate::List<OpenFileInfo*, QExplicitlySharedDataPointer<KService> >, void>::impl (which=1, this_=0xff74c0, r=0x846070, 
    a=0x7fffffffcaa0, ret=0x0)
    at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject_impl.h:143
#25 0x00007ffff3a30e4f in QtPrivate::QSlotObjectBase::call (a=0x7fffffffcaa0, 
    r=0x846070, this=<optimised out>)
    at ../../include/QtCore/../../src/corelib/kernel/qobject_impl.h:124
#26 QMetaObject::activate (sender=0x821060, signalOffset=<optimised out>, 
    local_signal_index=<optimised out>, argv=<optimised out>)
    at kernel/qobject.cpp:3698
#27 0x00000000004a16f2 in OpenFileInfoManager::currentChanged (this=0x821060, 
    _t1=0x9376a0, _t2=...)
    at /home/gandalf/down/git/kbibtex/build/src/program/moc_openfileinfo.cpp:272
#28 0x0000000000499a54 in OpenFileInfoManager::setCurrentFile (this=0x821060, 
    openFileInfo=0x9376a0, servicePtr=...)
    at /home/gandalf/down/git/kbibtex/src/program/openfileinfo.cpp:624
#29 0x000000000045bb3e in KBibTeXMainWindow::newDocument (this=0x8802d0)
    at /home/gandalf/down/git/kbibtex/src/program/mainwindow.cpp:310
#30 0x00000000004a07f9 in KBibTeXMainWindow::qt_static_metacall (_o=0x8802d0, 
    _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7fffffffccb0)
    at /home/gandalf/down/git/kbibtex/build/src/program/moc_mainwindow.cpp:110
#31 0x00007ffff3a30fca in QMetaObject::activate (sender=0x846070, 
    signalOffset=<optimised out>, local_signal_index=<optimised out>, 
    argv=<optimised out>) at kernel/qobject.cpp:3713
#32 0x00000000004a10af in MDIWidget::documentNew (this=0x846070)
    at /home/gandalf/down/git/kbibtex/build/src/program/moc_mdiwidget.cpp:248
#33 0x00000000004a0aaf in MDIWidget::qt_static_metacall (_o=0x846070, 
    _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0x7fffffffcea0)
    at /home/gandalf/down/git/kbibtex/build/src/program/moc_mdiwidget.cpp:118
#34 0x00007ffff3a30fca in QMetaObject::activate (sender=sender@entry=0x88cba0, 
    signalOffset=<optimised out>, local_signal_index=local_signal_index@entry=2, 
    argv=argv@entry=0x7fffffffcea0) at kernel/qobject.cpp:3713
#35 0x00007ffff3a317d7 in QMetaObject::activate (sender=sender@entry=0x88cba0, 
    m=m@entry=0x7ffff4aa4a40 <QAbstractButton::staticMetaObject>, 
    local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7fffffffcea0)
    at kernel/qobject.cpp:3578
#36 0x00007ffff491d1b2 in QAbstractButton::clicked (this=this@entry=0x88cba0, 
    _t1=false) at .moc/moc_qabstractbutton.cpp:303
#37 0x00007ffff467ff04 in QAbstractButtonPrivate::emitClicked (this=0x8b3ba0)
    at widgets/qabstractbutton.cpp:534
---Type <return> to continue, or q <return> to quit---
#38 0x00007ffff4681519 in QAbstractButtonPrivate::click (this=0x8b3ba0)
    at widgets/qabstractbutton.cpp:527
#39 0x00007ffff4681694 in QAbstractButton::mouseReleaseEvent (this=0x88cba0, e=
    0x7fffffffd370) at widgets/qabstractbutton.cpp:1132
#40 0x00007ffff45c5f88 in QWidget::event (this=0x88cba0, event=0x7fffffffd370)
    at kernel/qwidget.cpp:9044
#41 0x00007ffff458305c in QApplicationPrivate::notify_helper (
    this=this@entry=0x7700f0, receiver=receiver@entry=0x88cba0, 
    e=e@entry=0x7fffffffd370) at kernel/qapplication.cpp:3716
#42 0x00007ffff4588c19 in QApplication::notify (this=<optimised out>, 
    receiver=0x88cba0, e=0x7fffffffd370) at kernel/qapplication.cpp:3276
#43 0x00007ffff3a0262b in QCoreApplication::notifyInternal (this=0x7fffffffdc20, 
    receiver=receiver@entry=0x88cba0, event=event@entry=0x7fffffffd370)
    at kernel/qcoreapplication.cpp:965
#44 0x00007ffff4587b32 in QCoreApplication::sendSpontaneousEvent (
    event=0x7fffffffd370, receiver=0x88cba0)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:227
#45 QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x88cba0, 
    event=event@entry=0x7fffffffd370, alienWidget=alienWidget@entry=0x88cba0, 
    nativeWidget=0x846070, 
    buttonDown=buttonDown@entry=0x7ffff4ab3b20 <qt_button_down>, 
    lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:2770
#46 0x00007ffff45e057b in QWidgetWindow::handleMouseEvent (this=this@entry=0xd456e0, 
    event=event@entry=0x7fffffffd780) at kernel/qwidgetwindow.cpp:555
#47 0x00007ffff45e2b3b in QWidgetWindow::event (this=0xd456e0, event=0x7fffffffd780)
    at kernel/qwidgetwindow.cpp:210
#48 0x00007ffff458305c in QApplicationPrivate::notify_helper (
    this=this@entry=0x7700f0, receiver=receiver@entry=0xd456e0, 
    e=e@entry=0x7fffffffd780) at kernel/qapplication.cpp:3716
#49 0x00007ffff4588516 in QApplication::notify (this=0x7fffffffdc20, 
    receiver=0xd456e0, e=0x7fffffffd780) at kernel/qapplication.cpp:3499
#50 0x00007ffff3a0262b in QCoreApplication::notifyInternal (this=0x7fffffffdc20, 
    receiver=receiver@entry=0xd456e0, event=event@entry=0x7fffffffd780)
    at kernel/qcoreapplication.cpp:965
#51 0x00007ffff3fd2521 in QCoreApplication::sendSpontaneousEvent (
    event=0x7fffffffd780, receiver=0xd456e0)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:227
#52 QGuiApplicationPrivate::processMouseEvent (e=0x14ca740)
    at kernel/qguiapplication.cpp:1804
#53 0x00007ffff3fd41e5 in QGuiApplicationPrivate::processWindowSystemEvent (
    e=e@entry=0x14ca740) at kernel/qguiapplication.cpp:1596
#54 0x00007ffff3fb7f38 in QWindowSystemInterface::sendWindowSystemEvents (flags=...)
    at kernel/qwindowsysteminterface.cpp:625
#55 0x00007fffe6a69f10 in userEventSourceDispatch (source=<optimised out>)
    at eventdispatchers/qeventdispatcher_glib.cpp:70
#56 0x00007fffef1fd127 in g_main_context_dispatch ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#57 0x00007fffef1fd380 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#58 0x00007fffef1fd42c in g_main_context_iteration ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#59 0x00007ffff3a58a7f in QEventDispatcherGlib::processEvents (this=0x7bbcb0, 
    flags=...) at kernel/qeventdispatcher_glib.cpp:418
#60 0x00007ffff39ffdea in QEventLoop::exec (this=this@entry=0x7fffffffdb00, flags=..., 
    flags@entry=...) at kernel/qeventloop.cpp:204
#61 0x00007ffff3a07e8c in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1229
#62 0x0000000000459aa0 in main (argc=1, argv=0x7fffffffdd58)
    at /home/gandalf/down/git/kbibtex/src/program/program.cpp:116
Comment 10 Gandalf Lechner 2016-05-19 15:47:29 UTC
I also tried "valgrind", another tool I have no experience with. I paste here the results.


==4132== Memcheck, a memory error detector
==4132== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==4132== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==4132== Command: kbibtex
==4132== Parent PID: 28909
==4132== 
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/libQt5Xml.so.5.5.1:
--4132-- Ignoring non-Dwarf2/3/4 block in .debug_info
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/libQt5Xml.so.5.5.1:
--4132-- Last block truncated in .debug_info; ignoring
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/libQt5Xml.so.5.5.1:
--4132-- parse_CU_Header: is neither DWARF2 nor DWARF3 nor DWARF4
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.5.1:
--4132-- Ignoring non-Dwarf2/3/4 block in .debug_info
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.5.1:
--4132-- Last block truncated in .debug_info; ignoring
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.5.1:
--4132-- parse_CU_Header: is neither DWARF2 nor DWARF3 nor DWARF4
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5.5.1:
--4132-- Ignoring non-Dwarf2/3/4 block in .debug_info
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5.5.1:
--4132-- Last block truncated in .debug_info; ignoring
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5.5.1:
--4132-- parse_CU_Header: is neither DWARF2 nor DWARF3 nor DWARF4
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.5.1:
--4132-- Ignoring non-Dwarf2/3/4 block in .debug_info
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.5.1:
--4132-- Last block truncated in .debug_info; ignoring
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.5.1:
--4132-- parse_CU_Header: is neither DWARF2 nor DWARF3 nor DWARF4
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/libQt5Network.so.5.5.1:
--4132-- Ignoring non-Dwarf2/3/4 block in .debug_info
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/libQt5Network.so.5.5.1:
--4132-- Last block truncated in .debug_info; ignoring
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/libQt5Network.so.5.5.1:
--4132-- parse_CU_Header: is neither DWARF2 nor DWARF3 nor DWARF4
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5.5.1:
--4132-- Ignoring non-Dwarf2/3/4 block in .debug_info
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5.5.1:
--4132-- Last block truncated in .debug_info; ignoring
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5.5.1:
--4132-- parse_CU_Header: is neither DWARF2 nor DWARF3 nor DWARF4
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/libQt5PrintSupport.so.5.5.1:
--4132-- Ignoring non-Dwarf2/3/4 block in .debug_info
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/libQt5PrintSupport.so.5.5.1:
--4132-- Last block truncated in .debug_info; ignoring
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/libQt5PrintSupport.so.5.5.1:
--4132-- parse_CU_Header: is neither DWARF2 nor DWARF3 nor DWARF4
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so:
--4132-- Ignoring non-Dwarf2/3/4 block in .debug_info
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so:
--4132-- Last block truncated in .debug_info; ignoring
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so:
--4132-- parse_CU_Header: is neither DWARF2 nor DWARF3 nor DWARF4
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5.5.1:
--4132-- Ignoring non-Dwarf2/3/4 block in .debug_info
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5.5.1:
--4132-- Last block truncated in .debug_info; ignoring
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5.5.1:
--4132-- parse_CU_Header: is neither DWARF2 nor DWARF3 nor DWARF4
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/qt5/plugins/xcbglintegrations/libqxcb-glx-integration.so:
--4132-- Ignoring non-Dwarf2/3/4 block in .debug_info
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/qt5/plugins/xcbglintegrations/libqxcb-glx-integration.so:
--4132-- Last block truncated in .debug_info; ignoring
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/qt5/plugins/xcbglintegrations/libqxcb-glx-integration.so:
--4132-- parse_CU_Header: is neither DWARF2 nor DWARF3 nor DWARF4
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so:
--4132-- Ignoring non-Dwarf2/3/4 block in .debug_info
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so:
--4132-- Last block truncated in .debug_info; ignoring
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so:
--4132-- parse_CU_Header: is neither DWARF2 nor DWARF3 nor DWARF4
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/qt5/plugins/imageformats/libqgif.so:
--4132-- Ignoring non-Dwarf2/3/4 block in .debug_info
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/qt5/plugins/imageformats/libqgif.so:
--4132-- Last block truncated in .debug_info; ignoring
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/qt5/plugins/imageformats/libqgif.so:
--4132-- parse_CU_Header: is neither DWARF2 nor DWARF3 nor DWARF4
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/qt5/plugins/imageformats/libqico.so:
--4132-- Ignoring non-Dwarf2/3/4 block in .debug_info
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/qt5/plugins/imageformats/libqico.so:
--4132-- Last block truncated in .debug_info; ignoring
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/qt5/plugins/imageformats/libqico.so:
--4132-- parse_CU_Header: is neither DWARF2 nor DWARF3 nor DWARF4
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/qt5/plugins/imageformats/libqjpeg.so:
--4132-- Ignoring non-Dwarf2/3/4 block in .debug_info
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/qt5/plugins/imageformats/libqjpeg.so:
--4132-- Last block truncated in .debug_info; ignoring
--4132-- WARNING: Serious error when reading debug info
--4132-- When reading debug info from /usr/lib/x86_64-linux-gnu/qt5/plugins/imageformats/libqjpeg.so:
--4132-- parse_CU_Header: is neither DWARF2 nor DWARF3 nor DWARF4
==4132== Syscall param writev(vector[...]) points to uninitialised byte(s)
==4132==    at 0x991373D: ??? (syscall-template.S:84)
==4132==    by 0xFE78F28: ??? (in /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0)
==4132==    by 0xFE7931C: ??? (in /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0)
==4132==    by 0xFE79A76: ??? (in /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0)
==4132==    by 0xFE7A6A2: ??? (in /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0)
==4132==    by 0xFE7A720: xcb_wait_for_reply (in /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0)
==4132==    by 0x1655A2F9: QXcbConnection::sync() (in /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5.5.1)
==4132==    by 0x16578A1B: QXcbWindow::requestActivateWindow() (in /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5.5.1)
==4132==    by 0x88E0573: QWindow::requestActivate() (in /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5.5.1)
==4132==    by 0x16573929: QXcbWindow::handleButtonPressEvent(int, int, int, int, int, QFlags<Qt::KeyboardModifier>, unsigned int) (in /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5.5.1)
==4132==    by 0x16573CD0: QXcbWindow::handleXIMouseEvent(xcb_ge_event_t*) (in /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5.5.1)
==4132==    by 0x16587764: QXcbConnection::xi2HandleEvent(xcb_ge_event_t*) (in /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5.5.1)
==4132==  Address 0x15fd88de is 4,558 bytes inside a block of size 21,152 alloc'd
==4132==    at 0x4C2FB55: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==4132==    by 0xFE788DB: xcb_connect_to_fd (in /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0)
==4132==    by 0xFE7C610: xcb_connect_to_display_with_auth_info (in /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0)
==4132==    by 0xDA9A809: _XConnectXCB (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
==4132==    by 0xDA8B391: XOpenDisplay (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
==4132==    by 0x1655F54E: QXcbConnection::QXcbConnection(QXcbNativeInterface*, bool, unsigned int, char const*) (in /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5.5.1)
==4132==    by 0x165629EC: QXcbIntegration::QXcbIntegration(QStringList const&, int&, char**) (in /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5.5.1)
==4132==    by 0x40293AC: QXcbIntegrationPlugin::create(QString const&, QStringList const&, int&, char**) (in /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so)
==4132==    by 0x88C8DD1: QPlatformIntegrationFactory::create(QString const&, QStringList const&, int&, char**, QString const&) (in /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5.5.1)
==4132==    by 0x88D5003: QGuiApplicationPrivate::createPlatformIntegration() (in /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5.5.1)
==4132==    by 0x88D5F0C: QGuiApplicationPrivate::createEventDispatcher() (in /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5.5.1)
==4132==    by 0x9249A85: QCoreApplication::init() (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.5.1)
==4132== 
==4132== Use of uninitialised value of size 8
==4132==    at 0x4EDF036: FilterBar::comboboxStatusChanged() (filterbar.cpp:275)
==4132==    by 0x4F1758E: FilterBar::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (moc_filterbar.cpp:99)
==4132==    by 0x9273FC9: QMetaObject::activate(QObject*, int, int, void**) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.5.1)
==4132==    by 0x83C9380: QComboBox::currentIndexChanged(int) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.5.1)
==4132==    by 0x83CB7E0: QComboBoxPrivate::_q_emitCurrentIndexChanged(QModelIndex const&) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.5.1)
==4132==    by 0x83CDE0C: QComboBoxPrivate::setCurrentIndex(QModelIndex const&) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.5.1)
==4132==    by 0x83CE03E: QComboBox::setCurrentIndex(int) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.5.1)
==4132==    by 0x4EE05B0: FilterBar::FilterBarPrivate::setupGUI() (filterbar.cpp:129)
==4132==    by 0x4EDF491: FilterBar::FilterBarPrivate::FilterBarPrivate(FilterBar*) (filterbar.cpp:56)
==4132==    by 0x4EDEDDA: FilterBar::FilterBar(QWidget*) (filterbar.cpp:243)
==4132==    by 0x4EAD443: PartWidget::Private::Private(PartWidget*) (partwidget.cpp:40)
==4132==    by 0x4EAD0A2: PartWidget::PartWidget(QWidget*) (partwidget.cpp:55)
==4132== 
==4132== Invalid read of size 8
==4132==    at 0x4EDF036: FilterBar::comboboxStatusChanged() (filterbar.cpp:275)
==4132==    by 0x4F1758E: FilterBar::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (moc_filterbar.cpp:99)
==4132==    by 0x9273FC9: QMetaObject::activate(QObject*, int, int, void**) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.5.1)
==4132==    by 0x83C9380: QComboBox::currentIndexChanged(int) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.5.1)
==4132==    by 0x83CB7E0: QComboBoxPrivate::_q_emitCurrentIndexChanged(QModelIndex const&) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.5.1)
==4132==    by 0x83CDE0C: QComboBoxPrivate::setCurrentIndex(QModelIndex const&) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.5.1)
==4132==    by 0x83CE03E: QComboBox::setCurrentIndex(int) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.5.1)
==4132==    by 0x4EE05B0: FilterBar::FilterBarPrivate::setupGUI() (filterbar.cpp:129)
==4132==    by 0x4EDF491: FilterBar::FilterBarPrivate::FilterBarPrivate(FilterBar*) (filterbar.cpp:56)
==4132==    by 0x4EDEDDA: FilterBar::FilterBar(QWidget*) (filterbar.cpp:243)
==4132==    by 0x4EAD443: PartWidget::Private::Private(PartWidget*) (partwidget.cpp:40)
==4132==    by 0x4EAD0A2: PartWidget::PartWidget(QWidget*) (partwidget.cpp:55)
==4132==  Address 0x65007300610092 is not stack'd, malloc'd or (recently) free'd
==4132== 
==4132== 
==4132== Process terminating with default action of signal 11 (SIGSEGV)
==4132==  General Protection Fault
==4132==    at 0x4EDF036: FilterBar::comboboxStatusChanged() (filterbar.cpp:275)
==4132==    by 0x4F1758E: FilterBar::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (moc_filterbar.cpp:99)
==4132==    by 0x9273FC9: QMetaObject::activate(QObject*, int, int, void**) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.5.1)
==4132==    by 0x83C9380: QComboBox::currentIndexChanged(int) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.5.1)
==4132==    by 0x83CB7E0: QComboBoxPrivate::_q_emitCurrentIndexChanged(QModelIndex const&) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.5.1)
==4132==    by 0x83CDE0C: QComboBoxPrivate::setCurrentIndex(QModelIndex const&) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.5.1)
==4132==    by 0x83CE03E: QComboBox::setCurrentIndex(int) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.5.1)
==4132==    by 0x4EE05B0: FilterBar::FilterBarPrivate::setupGUI() (filterbar.cpp:129)
==4132==    by 0x4EDF491: FilterBar::FilterBarPrivate::FilterBarPrivate(FilterBar*) (filterbar.cpp:56)
==4132==    by 0x4EDEDDA: FilterBar::FilterBar(QWidget*) (filterbar.cpp:243)
==4132==    by 0x4EAD443: PartWidget::Private::Private(PartWidget*) (partwidget.cpp:40)
==4132==    by 0x4EAD0A2: PartWidget::PartWidget(QWidget*) (partwidget.cpp:55)
==4132== 
==4132== HEAP SUMMARY:
==4132==     in use at exit: 13,453,433 bytes in 132,251 blocks
==4132==   total heap usage: 724,649 allocs, 592,398 frees, 141,583,658 bytes allocated
==4132== 
==4132== LEAK SUMMARY:
==4132==    definitely lost: 6,656 bytes in 26 blocks
==4132==    indirectly lost: 2,151 bytes in 101 blocks
==4132==      possibly lost: 1,090,477 bytes in 3,917 blocks
==4132==    still reachable: 12,354,149 bytes in 128,207 blocks
==4132==                       of which reachable via heuristic:
==4132==                         newarray           : 13,360 bytes in 236 blocks
==4132==                         multipleinheritance: 183,368 bytes in 244 blocks
==4132==         suppressed: 0 bytes in 0 blocks
==4132== Rerun with --leak-check=full to see details of leaked memory
==4132== 
==4132== For counts of detected and suppressed errors, rerun with: -v
==4132== Use --track-origins=yes to see where uninitialised values come from
==4132== ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 0 from 0)
Comment 11 Thomas Fischer 2016-05-24 19:39:11 UTC
The problem may have been caused by the premature establishment of signal-slot connections in the FilterBar class. I rearranged this code section in the lastest commit:
http://commits.kde.org/kbibtex/75b13672d7f3e300
Please test if the crash has been fixed.
Comment 12 Gandalf Lechner 2016-05-24 20:40:57 UTC
Thanks a lot, this indeed fixed the crash! :-)

Now kbibtex starts fine; the only problem is that it seems not to be able to load pdf previews (which worked fine in the 0.6 version). It says "Don't know how to show mimetype application/pdf" ... but that is probably an unrelated issue.
Comment 13 Thomas Fischer 2016-05-25 11:26:59 UTC
> it seems not to be able to load pdf previews
> (which worked fine in the 0.6 version).
> It says "Don't know how to show mimetype
> application/pdf" ... but that is probably an
> unrelated issue.
KF5 programs need a KF5-based Okular to show PDF files. Such a version of Okular has not yet been officially released. Some distributions offer experimental packages to install the latest version from Git.
Comment 14 Gandalf Lechner 2016-08-18 09:47:09 UTC
At the moment, I do not experience any crashes, so this one seems to be fixed as well