kde4-config crash on kdebase configure / cmake error

Konrad Rzepecki hannibal at megapolis.pl
Wed Feb 7 19:14:01 GMT 2007


  Hi

Running cmake for kdebase cause kde4-config to crash. I have this problem 
since ~ 1,5 week. I thought that is temporary problem, but it seems not. I 
have now r631315 cmake 2.4.5 gcc 3.4.6.

console output:

kdedev at hannibal:~/kdebase/build$ cmake -DCMAKE_INSTALL_PREFIX=$KDEDIR ..
sh: line 1:  6400 Naruszenie ochrony 
pamięci*  /home/kdedev/install/bin/kde4-config --path data 2>&1
CMake Error: ERROR: cmake/modules/FindKDE4Internal.cmake not found in
-- Configuring done

*mean "segmantation fault"


valgrind sigsegv backtrace from "kde4-config --path data":

==6154== Process terminating with default action of signal 11 (SIGSEGV)
==6154==  Access not within mapped region at address 0x4
==6154==    at 0x1BA247B6: QFactoryLoader::d_func() const 
(qfactoryloader_p.h:49)
==6154==    by 0x1BA65D58: createForName(QByteArray const&) 
(qtextcodec.cpp:116)
==6154==    by 0x1BA670A4: QTextCodec::codecForName(QByteArray const&) 
(qtextcodec.cpp:778)
==6154==    by 0x1B9EE6FF: QTextCodec::codecForName(char const*) 
(qtextcodec.h:47)
==6154==    by 0x1BA663FA: setupLocaleMapper() (qtextcodec.cpp:360)
==6154==    by 0x1BA66D54: setup() (qtextcodec.cpp:545)
==6154==    by 0x1BA67536: QTextCodec::codecForLocale() (qtextcodec.cpp:898)
==6154==    by 0x1B9C7616: QString::toLocal8Bit() const (qstring.cpp:2999)
==6154==    by 0x1BC17216: kdbgstream::flush() (qbytearray.h:345)
==6154==    by 0x1BC14D53: kdbgstream::operator<<(QString const&) 
(kdebug.cpp:450)
==6154==    by 0x1BBC0DC6: endl(kdbgstream&) (kdebug.h:211)
==6154==    by 0x1BC15B7D: kdbgstream::operator<<(kdbgstream& (*)
(kdbgstream&)) (kdebug.cpp:497)
==6154==    by 0x1BC4ABD0: KComponentData::~KComponentData() (kdebug.h:211)
==6154==    by 0x1BBC6ED7: KConfigBase::~KConfigBase() (kconfigbase.cpp:77)
==6154==    by 0x1BBC3486: KConfig::~KConfig() (qmap.h:138)
==6154==    by 0x1BBC5984: KSharedConfig::~KSharedConfig() (kconfig.cpp:365)
==6154==    by 0x1BC4AA1B: KComponentDataPrivate::checkConfig() 
(kcomponentdata.cpp:123)
==6154==    by 0x1BC4ACF7: KComponentData::~KComponentData() 
(kcomponentdata_p.h:67)
==6154==    by 0x1BC50CE1: KStandardDirs::~KStandardDirs() (qmap.h:138)
==6154==    by 0x1BC4AA1B: KComponentDataPrivate::checkConfig() 
(kcomponentdata.cpp:123)
==6154==    by 0x1BC4ACF7: KComponentData::~KComponentData() 
(kcomponentdata_p.h:67)
==6154==    by 0x1BC49746: KGlobalPrivate::~KGlobalPrivate() (kglobal.cpp:84)
==6154==    by 0x1BC48E97: ._125::destroy() (kglobal.cpp:111)
==6154==    by 0x1BC477B7: __tcf_0 (kglobal.h:42)
==6154==    by 0x1C6E7416: exit (in /lib/tls/libc-2.3.6.so)
==6154==    by 0x1C6D0E1D: __libc_start_main (in /lib/tls/libc-2.3.6.so)
==6154==    by 0x80498D0: ??? (start.S:119)


and some lines from strace:

open("/home/kdedev/.kde/share/config/kdeglobals", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0600, st_size=167, ...}) = 0
fstat64(3, {st_mode=S_IFREG|0600, st_size=167, ...}) = 0
mmap2(NULL, 167, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7d55000
fstat64(3, {st_mode=S_IFREG|0600, st_size=167, ...}) = 0
rt_sigaction(SIGBUS, {0xb7bf8840, [], SA_ONESHOT}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
fstat64(3, {st_mode=S_IFREG|0600, st_size=167, ...}) = 0
munmap(0xb7d55000, 167)                 = 0
rt_sigaction(SIGBUS, {SIG_DFL}, NULL, 8) = 0
close(3)                                = 0
access("/home/kdedev/.kde/share/config/kde4-configrc", W_OK) = -1 ENOENT (No 
such file or directory)
access("/home/kdedev/.kde/share/config/kde4-configrc", F_OK) = -1 ENOENT (No 
such file or directory)
access("/home/kdedev/.kde/share/config", W_OK) = 0
stat64("/home/kdedev/.kde/share/config/kde4-configrc", 0x80579cc) = -1 ENOENT 
(No such file or directory)
stat64("/home/kdedev/.kde/share/config/kde4-configrc", 0xbf9130b0) = -1 ENOENT 
(No such file or directory)
stat64("/home/kdedev/.kde/share/config/kde4-configrc", 0xbf912d80) = -1 ENOENT 
(No such file or directory)
stat64("/home/kdedev/install/share/config/kde4-configrc", 0xbf912d80) = -1 
ENOENT (No such file or directory)
lstat64("/home", {st_mode=S_IFDIR|0755, st_size=288, ...}) = 0
lstat64("/home/kdedev", {st_mode=S_IFDIR|0711, st_size=880, ...}) = 0
lstat64("/home/kdedev/.kde", {st_mode=S_IFDIR|0700, st_size=200, ...}) = 0
lstat64("/home/kdedev/.kde/share", {st_mode=S_IFDIR|0700, st_size=200, ...}) = 
0
lstat64("/home/kdedev/.kde/share/apps", {st_mode=S_IFDIR|0700, 
st_size=368, ...}) = 0
lstat64("/home", {st_mode=S_IFDIR|0755, st_size=288, ...}) = 0
lstat64("/home/kdedev", {st_mode=S_IFDIR|0711, st_size=880, ...}) = 0
lstat64("/home/kdedev/install", {st_mode=S_IFDIR|0755, st_size=168, ...}) = 0
lstat64("/home/kdedev/install/share", {st_mode=S_IFDIR|0755, 
st_size=272, ...}) = 0
lstat64("/home/kdedev/install/share/apps", {st_mode=S_IFDIR|0755, 
st_size=824, ...}) = 0
stat64("/home/kdedev/install/share/apps", {st_mode=S_IFDIR|0755, 
st_size=824, ...}) = 0
fstat64(1, {st_mode=S_IFCHR|0700, st_rdev=makedev(136, 4), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb7d55000
write(1, "/home/kdedev/.kde/share/apps/:/h"..., 
63/home/kdedev/.kde/share/apps/:/home/kdedev/install/share/apps/
) = 63
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

-- 
  Konrad Rzepecki (Hannibal)




More information about the kde-core-devel mailing list