Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 183061 - kded-3.5.7 crashing with openssl-0.9.8
Summary: kded-3.5.7 crashing with openssl-0.9.8
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-24 17:17 UTC by Daniel Franke
Modified: 2008-08-05 22:45 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Franke 2007-06-24 17:17:44 UTC
Related Forum thread: http://forums.gentoo.org/viewtopic-t-565653.html

Due to some wierd interaction, kded from kdelibs-3.5.7 (responsible for plugin-loading, e.g. kwallet, kcookiejar) crashes with openssl-0.9.8x:

[...]
kdecore (KLibLoader): Loading the next library global with flag 257.
kdecore (KLibLoader): WARNING: KLibrary: /usr/lib/libcrypto.so.0.9.8: undefined symbol: PKCS7_content_free
kdecore (KLibLoader): Loading the next library global with flag 257.
KDE Daemon (kded) already running.
kded: ERROR: Communication problem with kded, it probably crashed.

Marking this PR as Major as without kded, KDE is sort of crippled and hardly usable.

Reproducible: Always

Steps to Reproduce:
Merge KDE-3.5.7 and openssl-0.9.8x, try to access secure IMAP (kmail) or secure web server (https). 




Downgrading to openssl-0.9.7i solved the issue. Related output:

kdecore (KLibLoader): Loading the next library global with flag 257.
kdecore (KLibLoader): WARNING: KLibrary: /usr/lib/libcrypto.so: undefined symbol                          : PKCS7_content_free
kdecore (KLibLoader): Loading the next library global with flag 257.
kdecore (KLibLoader): WARNING: KLibrary: /usr/lib/libcrypto.so: undefined symbol                          : OpenSSL_add_all_algorithms
kdecore (KLibLoader): WARNING: KLibrary: /usr/lib/libcrypto.so: undefined symbol                          : OPENSSL_add_all_algorithms
kdecore (KLibLoader): WARNING: KLibrary: /usr/lib/libcrypto.so: undefined symbol                          : OpenSSL_add_all_algorithms_conf
kded: Successfully loaded module 'kssld'

Although the unresolved symbols are the same, kded does not crash here?!
Comment 1 Wulf Krueger (RETIRED) gentoo-dev 2007-06-25 17:28:18 UTC
I've been getting these warnings for ages without any noticeable effect. https and everything else ssl-related works just fine

Are you on x86 and missed the warning, maybe?

		ewarn "Due to the way openssl is architected, you cannot"
		ewarn "switch between optimized versions without breaking"
		ewarn "ABI.  The default i686 0.9.8 ABI was an unoptimized"
		ewarn "version with horrible performance.  This version uses"
		ewarn "the optimized ABI.  If you experience segfaults when"
		ewarn "using ssl apps (like openssh), just re-emerge the"
		ewarn "offending package."
		
Thus, please try re-emerging kdelibs and let us know if that helped. (I'm rather sure it will.) I can't reproduce the problem.
Comment 2 Greisberger Christophe 2007-06-27 14:51:08 UTC
I had the same problem (but with kdelibs-3.5.5-r10).
Re-emerging kdelibs fixed the problem.
Comment 3 Carsten Lohrke (RETIRED) gentoo-dev 2007-06-27 15:01:12 UTC
The libcrypto warning is harmless and unrelated to the problem. When you remove a library under the hood of a service kded will crash. Run `revdep-rebuild`. When this doesn't help, feel free to reopen.
Comment 4 Daniel Franke 2008-04-04 09:39:08 UTC
This one is ancient and invalid, but since it was reported by me ...

Eventually, after recompiling OpenSSL and kdelibs I-don't-know-how-many-times (up to 0.9.8g and 3.5.9-r1 respectively), I probably found a solution: compile OpenSSL without zlib support. Now it seems to work. 

See also backtraces and analysis at:
    http://bugs.kde.org/show_bug.cgi?id=160348
Comment 5 Thomas Capricelli 2008-08-05 22:33:51 UTC
i, i have the same problem here, using dev-libs/openssl-0.9.8h-r1 and kde-base/kdelibs-3.5.9-r4

kded does indeed say :
kdecore (KLibLoader): WARNING: KLibrary: /usr/lib64/libcrypto.so.0.9.8: undefined symbol: PKCS7_content_free
but it doesn't crash there. Using gdb and the '--nofork' option, i can have this backtrace.

#3  0x00007fe7744d8acb in ?? () from /lib64/ld-linux-x86-64.so.2
#4  0x00007fe76ea62f6b in ?? () from /lib/libdl.so.2
#5  0x00007fe7744d4e86 in ?? () from /lib64/ld-linux-x86-64.so.2
#6  0x00007fe76ea6331c in ?? () from /lib/libdl.so.2
#7  0x00007fe76ea62ed1 in dlopen () from /lib/libdl.so.2
#8  0x00007fe767f02896 in ?? () from /usr/lib64/libcrypto.so.0.9.8
#9  0x00007fe767f032c7 in DSO_load () from /usr/lib64/libcrypto.so.0.9.8
#10 0x00007fe767f5cea9 in COMP_zlib () from /usr/lib64/libcrypto.so.0.9.8
#11 0x00007fe767c31f03 in ?? () from /usr/lib64/libssl.so.0.9.8
#12 0x00007fe767c320d9 in SSL_COMP_get_compression_methods () from /usr/lib64/libssl.so.0.9.8
#13 0x00007fe767c37ef4 in SSL_library_init () from /usr/lib64/libssl.so.0.9.8
#14 0x00007fe773e47537 in KOpenSSLProxy::KOpenSSLProxy () from /usr/kde/3.5/lib64/libkio.so.4
---Type <return> to continue, or q <return> to quit---
#15 0x00007fe773e47745 in KOpenSSLProxy::self () from /usr/kde/3.5/lib64/libkio.so.4
#16 0x00007fe773e38536 in KSSLCertificate::fromString () from /usr/kde/3.5/lib64/libkio.so.4
#17 0x00007fe7681dd8ad in KSSLD::cacheLoadDefaultPolicies () from /usr/kde/3.5/lib64/kde3/kded_kssld.so
#18 0x00007fe7681e01f0 in KSSLD::KSSLD () from /usr/kde/3.5/lib64/kde3/kded_kssld.so
#19 0x00007fe7681e0239 in create_kssld () from /usr/kde/3.5/lib64/kde3/kded_kssld.so
#20 0x00007fe7742be0b8 in Kded::loadModule () from /usr/kde/3.5/lib64/libkdeinit_kded.so
#21 0x00007fe7742beca6 in Kded::loadModule () from /usr/kde/3.5/lib64/libkdeinit_kded.so
#22 0x00007fe7742bed92 in Kded::process () from /usr/kde/3.5/lib64/libkdeinit_kded.so


I've recompiled openssl and kdelibs, in this order, using sane values (gcc 4.2, no fancy flags) and it still crashes.

According to some googling I've made, it seems some people do have this problem, on different distribution (ubuntu,gentoo), but those all are isolated case. Don't know what to do, but this is really annoying : without kded running, no more coockies, no more password for kmail and such... The system is quickly not usable.
Comment 6 Thomas Capricelli 2008-08-05 22:45:36 UTC
I can confirm that using 
USE=-zlib emerge --oneshot openssl

fixed the problem here. Not sure about what i loose here, but it works. it prints those message, althought this doesn't seem to prevent it from working :


kdecore (KLibLoader): WARNING: KLibrary: /usr/lib64/libcrypto.so.0.9.8: undefined symbol: PKCS7_content_free
kdecore (KLibLoader): WARNING: KLibrary: /usr/lib64/libcrypto.so.0.9.8: undefined symbol: OpenSSL_add_all_algorithms
kdecore (KLibLoader): WARNING: KLibrary: /usr/lib64/libcrypto.so.0.9.8: undefined symbol: OPENSSL_add_all_algorithms
kdecore (KLibLoader): WARNING: KLibrary: /usr/lib64/libcrypto.so.0.9.8: undefined symbol: OpenSSL_add_all_algorithms_conf