Summary: | KDevelop crashed on saved session open [Python::Helper::getSearchPaths] | ||
---|---|---|---|
Product: | [Developer tools] kdev-python | Reporter: | leo venturini <info> |
Component: | Language support | Assignee: | Sven Brauch <mail> |
Status: | RESOLVED FIXED | ||
Severity: | crash | Keywords: | drkonqi |
Priority: | NOR | ||
Version: | 1.7.1 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 5.0.0 |
Description
leo venturini
2015-09-29 07:53:26 UTC
after bug reporting KDevelop restarted the second session correctly Python::Helper::getSearchPaths was called from multiple threads, accessing shared data => race. I presume this got fixed by: commit 6ceb1bee7efb5e05d17a0242b1bc710cee8d6e17 Author: Radek Novacek <rnovacek@redhat.com> Date: Sun Jan 18 09:15:55 2015 +0000 cache custom includes in main thread Sven Brauch: added a mutex locker to make this thread-safe Refactoring of the Helper stuff should be done in near future to avoid all the statics. REVIEW:122164 note, in c++11 you can do "thread_local static" which is probably a good way to avoid this kind of issue too. but yes, I think this is fixed |