Crash when open settings #8

Closed
arcan1s opened this Issue Sep 9, 2013 · 8 comments

Projects

None yet

2 participants

@arcan1s
arcan1s commented Sep 9, 2013

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

@zaufi
Owner
zaufi commented Sep 9, 2013

Hmm... do you have a backtrace?

@arcan1s
arcan1s commented Sep 9, 2013

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

@zaufi
Owner
zaufi commented Sep 9, 2013

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>

@zaufi
Owner
zaufi commented Sep 9, 2013

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

@arcan1s
arcan1s commented Sep 9, 2013

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.

@arcan1s
arcan1s commented Sep 9, 2013

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

@zaufi
Owner
zaufi commented Sep 10, 2013

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
@zaufi zaufi added a commit that closed this issue Sep 10, 2013
@zaufi Resolve #8 7e7b863
@zaufi zaufi closed this in 7e7b863 Sep 10, 2013
@zaufi
Owner
zaufi commented Sep 10, 2013

Thanks for the report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment