[Kde-bindings] Smoke KGlobalSettings::Disable segfault

Tobias Rautenkranz tobias at rautenkranz.ch
Sat Feb 14 21:41:21 UTC 2009


Hi

Calling enum methods of KGlobalSettings leads to a crash when
no KApplication instance has been created, since Smoke calls 
KGlobalSettings::self() before handling the call. see the backtrace:
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0xb57ec980 (LWP 27871)]
> 0xb721a57d in ?? () from /usr/lib/libkdecore.so.5
> (gdb) bt
> #0  0xb721a57d in ?? () from /usr/lib/libkdecore.so.5
> #1  0xbf80afe0 in ?? ()
> #2  0xb7eff51b in _dl_fixup () from /lib/ld-linux.so.2
> #3  0xb721a799 in KComponentData::config () from /usr/lib/libkdecore.so.5
> #4  0xb7218cb8 in KGlobal::config () from /usr/lib/libkdecore.so.5
> #5  0xb6fa2512 in KGlobalSettings::Private::propagateSettings () from 
>	/usr/lib/libkdeui.so.5
> #6  0xb6fa3d69 in KGlobalSettings::KGlobalSettings () from 
>	/usr/lib/libkdeui.so.5
> #7  0xb6fa3fd7 in KGlobalSettings::self () from /usr/lib/libkdeui.so.5
> #8  0xb7d622a9 in xcall_KGlobalSettings (xi=1, obj=0x0, args=0xbf80b368) at 
>	/home/tobias/software/kdebindings-build/smoke/kde/x_8.cpp:1802
> #9  0x0804946b in main () at 
>	/home/tobias/progis/scratch/KGlobalSettings_test-0.1.1-Source/main.cpp:27

Attached is a test case. Usage:
cmake ./ && make && ./test

So far KGlobalSettings is the only class with this problem (Qt and KDE module 
tested) . I guess, I will leave it like this and work around it -- just wanted 
to have it recorded for further generations ;)

Regards
Tobias


-------------- next part --------------
A non-text attachment was scrubbed...
Name: KGlobalSettings_test-0.1.1-Source.tar.bz2
Type: application/x-bzip-compressed-tar
Size: 698 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20090214/9f3fff1d/attachment.tar.bz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20090214/9f3fff1d/attachment.sig>


More information about the Kde-bindings mailing list