Comment 3 for bug 898746

Revision history for this message
Dan (daniel-armbrust-list) wrote :

This broke for me too, on the last update of Kubuntu.

I built from source, and it was still broken.

Got a backtrace:

Program received signal SIGSEGV, Segmentation fault.
QBasicAtomicInt::ref (this=0x0) at /usr/include/qt4/QtCore/qatomic_x86_64.h:121
121 : "memory");
(gdb) backtrace
#0 QBasicAtomicInt::ref (this=0x0) at /usr/include/qt4/QtCore/qatomic_x86_64.h:121
#1 0x0000000000463c43 in __static_initialization_and_destruction_0 (__priority=65535, __initialize_p=1)
    at /home/Desktop/krename-4.0.7/src/plugin.cpp:22
#2 0x000000000048087d in __libc_csu_init ()
#3 0x00007ffff488c2a0 in __libc_start_main (main=0x41bcd0 <main(int, char**)>, argc=1, ubp_av=0x7fffffffe108,
    init=0x480820 <__libc_csu_init>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe0f8)
    at libc-start.c:185
#4 0x000000000041e491 in _start ()

Don't understand the why yet, but modifying line 22 from plugin.cpp from

const QString Plugin::S_TOKEN_SEPARATOR = TokenHelpDialog::S_TOKEN_SEPARATOR;

to

const QString TokenHelpDialog::S_TOKEN_SEPARATOR = ";;";

allows KRename to be built, and run successfully.

I don't know C++ well enough to understand why. But it fixed it for me.

To build your own, download the source:
http://sourceforge.net/projects/krename/files/KDE4%20krename-stable/4.0.7/krename-4.0.7.tar.bz2/download

extract, then execute (inside the folder):

cmake
make
sudo make install