zaufi / kate-cpp-helper-plugin

Plugin to simplify writing C++ code using Kate editor and clang

Home Page:http://zaufi.github.io/kate-cpp-helper-plugin.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash when open settings

arcan1s opened this issue · comments

What I did?

  1. install the plugin and dependencies
  2. run kate and enable the plugin
  3. open plugin settings
  4. and I have kate crash (segfault):
    kate(22266)/Kate (App) KateConfigDialog::slotCurrentPageChanged: creating config page
    KCrash: Application 'kate' crashing...

System:
uname -r: 3.10.10-1-ARCH
clang: 3.3
Qt: 4.8.5
KDE: 4.11.00
Kate: 3.11.0

Hmm... do you have a backtrace?

Here is the backtrace from gdb:
http://pastebin.com/w5H0PkdK
I have a backtrace from valgrind also, but it crashed on start the application =)
Now Im trying to compile kate with debug flags and send to you additional backtraces if it will need

yep, compiling w/ debug symbols will help to discover exact location instead of

#0  0x00007fffe3f79fea in ?? () from /usr/lib/kde4/katecpphelperplugin.so
#1  0x00007fffe3f7e3b1 in ?? () from /usr/lib/kde4/katecpphelperplugin.so
#2  0x00007fffe3f8fee9 in ?? () from /usr/lib/kde4/katecpphelperplugin.so
#3  0x00007ffff645bea2 in ?? () from /usr/lib/libkateinterfaces.so.4

to do so just run cmake -DCMAKE_BUILD_TYPE=DebugFull <path-to-sources>

and FYI I can run valgrind on kate (w/ this plugin enabled) w/o any crash... it seems smth wrong in your system

tnx for reply. Here is gdb log from kate which compiled with DebugFull flag:
http://pastebin.com/AvEM5Cr9
I found that valgrind crashes on load this plugin.
And when I compile the plugin with the same flag, there was not error =) Default compile flags in ArchLinux are:
cmake -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4 -DBUILD_TESTING=OFF -DCMAKE_INSTALL_PREFIX=/usr
There is the error when compile with Debug or Release flag.

Er...
There isn't error on kate and the plugin both compiled with DebugFull flag only...

the bug confirmed :( I'll fix it when get some free time (hope soon)

Thread 1 (Thread 0x7f9fc80d67c0 (LWP 31445)):
[KCrash Handler]
#6  0x00007f9fc4cd60fa in kate::CppHelperPluginConfigPage::findBinary(QString const&) const () from /home/zaufi/.kde4/lib64/kde4/katecpphelperplugin.so
#7  0x00007f9fc4cda4c1 in kate::CppHelperPluginConfigPage::CppHelperPluginConfigPage(QWidget*, kate::CppHelperPlugin*) () from /home/zaufi/.kde4/lib64/kde4/katecpphelperplugin.so
#8  0x00007f9fc4cec589 in kate::CppHelperPlugin::configPage(unsigned int, QWidget*, char const*) () from /home/zaufi/.kde4/lib64/kde4/katecpphelperplugin.so

Thanks for the report