Summary: | KSharedDataCache/KIcon triggers a bus error | ||
---|---|---|---|
Product: | [Unmaintained] kdelibs | Reporter: | Aleix Pol <aleixpol> |
Component: | kshareddatacache | Assignee: | kdelibs bugs <kdelibs-bugs> |
Status: | RESOLVED NOT A BUG | ||
Severity: | major | CC: | aleixpol, mpyne |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=309824 | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | More error-handling for KSharedDataCache |
Description
Aleix Pol
2012-05-10 00:59:48 UTC
The testsuite passes here without issue. :-/ KSharedDataCache does probably need better error-checking though, no excuse for a corrupted cache to induce SIGBUS. Yes, I've discussed with Milian (also from kdevelop) and he can't reproduce it either. Do you have any idea of how can I figure out what's going on? Specifically what's going on, probably not. It's undoubtedly a corrupted cache file somehow so a quick fix would be to delete the icon cache (normally /var/tmp/kdecache-$USER/icon-cache.kcache). There's a debug area for KSharedDataCache and KIconLoader which you can enable as well, might tell you which icon ended up corrupted. I don't have this directory for this user (the kde-devel user), the other one does, though. Could that be a problem? I added those debug areas and they're not adding any output :/ Well, it's possible that the missing directory is the issue, but then KSharedDataCache should fail much earlier in the process... the exact setting for the directory is returned by "kde4-config --path cache", which should return /something/ even for your kde-devel user, I would hope! kde-devel@thinktatil:~/build-kdevelop/languages/cpp$ kde4-config --path cache /home/kde-devel/.kde4/cache-thinktatil/ So I removed the icon cache, I keep having this problem, the SIGBUS... :/ Created attachment 71175 [details]
More error-handling for KSharedDataCache
Aleix, if you're still experiencing the crash then please test this patch. It adds more error checking against invalid data page access, valid cache page sizes, etc. I've tried replacing some caches with random data here without leading to crashes so hopefully it makes it a bit more resilient for you at least.
Haven't had it for a while, and not really using that codebase anymore. Closing. |