[Bug 170043] New: [PATCH] KConfigGroupPrivate::expandString causes kdeinit crash with Fedora configuration
Kevin Kofler
kevin.kofler at chello.at
Fri Aug 29 17:20:50 CEST 2008
http://bugs.kde.org/show_bug.cgi?id=170043
Summary: [PATCH] KConfigGroupPrivate::expandString causes kdeinit
crash with Fedora configuration
Product: kdelibs
Version: unspecified
Platform: Fedora RPMs
OS/Version: Linux
Status: NEW
Severity: crash
Priority: NOR
Component: kdecore
AssignedTo: kdelibs-bugs at kde.org
ReportedBy: kevin.kofler at chello.at
Version: >= 4.0.98 (using KDE 4.1.1)
OS: Linux
Installed from: Fedora RPMs
Since revision 829259, i.e. in KDE >= 4.0.98, kinit.cpp uses KConfig without a
KComponentData to read the "Documents" path, because initializing a
KComponentData at that place was breaking kioslave translations.
Unfortunately, if the setting for Documents contains a shell command, as it
does in the Fedora configuration:
Documents[$e]=$(xdg-user-dir DOCUMENTS)
KConfigGroupPrivate::expandString gets called and tries to unconditionally
access the KComponentData which has not been initialized yet. This causes
either an assertion failure or a NULL pointer dereference, depending on whether
NDEBUG is defined or not.
See: https://bugzilla.redhat.com/show_bug.cgi?id=455130 for the Fedora bug
report.
The change triggering the regression (plus followup fix):
http://websvn.kde.org/?view=rev&revision=829259
http://websvn.kde.org/?view=rev&revision=829264
At first, we "fixed" this in Fedora by reverting those changes, but we have a
proper fix now, which I'm about to attach.
--
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Kdelibs-bugs
mailing list