| Summary: | race conditions using kDebug in kconfig | ||
|---|---|---|---|
| Product: | [Unmaintained] kdelibs | Reporter: | Gaël de Chalendar (aka Kleag) <kleagg> |
| Component: | kdecore | Assignee: | Oswald Buddenhagen <ossi> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | SVN | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | patch changing kWarnings into qWarnings | ||
|
Description
Gaël de Chalendar (aka Kleag)
2007-12-02 16:49:38 UTC
Created attachment 22281 [details]
patch changing kWarnings into qWarnings
As asked by reviewers, removed a stray space and endls
I forgot the gdb output. Here it is:
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb7bc8206 in pthread_cond_wait@@GLIBC_2.3.2 ()
from /lib/i686/libpthread.so.0
#2 0xb7c145b5 in QMutexPrivate::wait (this=0x8066f88, timeout=-1)
at /opt/kde4/kdesvn/qt-copy/src/corelib/thread/qmutex_unix.cpp:78
#3 0xb7c11145 in QMutex::lock (this=0x8066df8)
at /opt/kde4/kdesvn/qt-copy/src/corelib/thread/qmutex.cpp:213
#4 0xb7a6021c in kDebugStream (level=QtWarningMsg, area=0,
file=0xb7ba1ac0 "/opt/kde4/kdesvn/kdelibs/kdecore/config/kconfigini.cpp",
line=151,
funcinfo=0xb7ba1da0 "KConfigBackend::ParseInfo
KConfigIniBackend::parseConfig(const QByteArray&, KEntryMap&,
QFlags<KConfigBackend::ParseOption>, bool)")
at /opt/kde4/kdesvn/qt-copy/src/corelib/thread/qmutex.h:109
#5 0xb7a2362b in KConfigIniBackend::parseConfig (this=0x8067470,
currentLocale=@0xbfe68164, entryMap=@0xbfe68144, options=@0xbfe680b4,
merging=false)
at /opt/kde4/kdesvn/kdelibs/kdecore/io/kdebug.h:214
#6 0xb7a24ac6 in KConfigIniBackend::parseConfig (this=0x8067470,
currentLocale=@0xbfe68164, entryMap=@0xbfe68144, options=@0xbfe68168)
at /opt/kde4/kdesvn/kdelibs/kdecore/config/kconfigini.cpp:67
#7 0xb7a0b0fc in KConfigPrivate (this=0x8066e68, componentData_=@0x8060ad0,
flags=@0xbfe681d8, resource=0xb7ba0ef0 "config")
at /opt/kde4/kdesvn/kdelibs/kdecore/config/kconfig.cpp:83
#8 0xb7a0c53b in KConfig (this=0x8066cc0, file=@0xbfe682d0, mode=@0xbfe682cc,
resourceType=0xb7ba0ef0 "config")
at /opt/kde4/kdesvn/kdelibs/kdecore/config/kconfig.cpp:118
#9 0xb7a61d13 in KDebugPrivate::areaData (this=0x8066df8, type=QtWarningMsg,
num=0)
at /opt/kde4/kdesvn/kdelibs/kdecore/io/kdebug.cpp:358
#10 0xb7a62e9d in KDebugPrivate::stream (this=0x8066df8, type=QtWarningMsg,
area=0,
debugFile=0xb7ba1ac0 "/opt/kde4/kdesvn/kdelibs/kdecore/config/kconfigini.cpp",
line=151,
funcinfo=0xb7ba1da0 "KConfigBackend::ParseInfo
KConfigIniBackend::parseConfig(const QByteArray&, KEntryMap&,
QFlags<KConfigBackend::ParseOption>, bool)")
at /opt/kde4/kdesvn/kdelibs/kdecore/io/kdebug.cpp:514
#11 0xb7a601dd in kDebugStream (level=QtWarningMsg, area=0,
file=0xb7ba1ac0 "/opt/kde4/kdesvn/kdelibs/kdecore/config/kconfigini.cpp",
line=151,
funcinfo=0xb7ba1da0 "KConfigBackend::ParseInfo
KConfigIniBackend::parseConfig(const QByteArray&, KEntryMap&,
QFlags<KConfigBackend::ParseOption>, bool)")
at /opt/kde4/kdesvn/kdelibs/kdecore/io/kdebug.cpp:608
#12 0xb7a2362b in KConfigIniBackend::parseConfig (this=0x8060e30,
currentLocale=@0xbfe686d4, entryMap=@0xbfe686b4, options=@0xbfe68624,
merging=false)
at /opt/kde4/kdesvn/kdelibs/kdecore/io/kdebug.h:214
#13 0xb7a24ac6 in KConfigIniBackend::parseConfig (this=0x8060e30,
currentLocale=@0xbfe686d4, entryMap=@0xbfe686b4, options=@0xbfe686d8)
at /opt/kde4/kdesvn/kdelibs/kdecore/config/kconfigini.cpp:67
#14 0xb7a0b0fc in KConfigPrivate (this=0x8062178, componentData_=@0x8060ad0,
flags=@0xbfe68748, resource=0xb7ba0ef0 "config")
at /opt/kde4/kdesvn/kdelibs/kdecore/config/kconfig.cpp:83
warningProlog does the required prefixing so one knows what goes wrong, so the patch should be fine. patch commited as release 744368 |