Bug 359263

Summary: Kdevelop crashes on exit if indexing process is not finished
Product: [Developer tools] kdev-python Reporter: blaze
Component: generalAssignee: Sven Brauch <mail>
Status: RESOLVED FIXED    
Severity: normal CC: mail
Priority: NOR    
Version First Reported In: git master   
Target Milestone: 1.7.3   
Platform: Other   
OS: Linux   
URL: https://paste.kde.org/puqpuqmw7/jkrk8a
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Backtrace

Description blaze 2016-02-11 10:36:52 UTC
See the backtrace here: https://paste.kde.org/puqpuqmw7/jkrk8a (paste entry will be expired in a week).

Reproducible: Always

Steps to Reproduce:
1. Open new python project in develop
2. Ensure that indexing is happening
3. Exit Kdevelop

Actual Results:  
Kdevelop crashes with a segfault

Expected Results:  
Clean exit with no crash
Comment 1 blaze 2016-02-11 10:42:50 UTC
Created attachment 97145 [details]
Backtrace
Comment 2 Kevin Funk 2016-02-11 10:53:35 UTC
[11:42:19] <kfunk> blaze: hm, I probably know what's the problem
[11:42:25] <kfunk> kdev-python needs a similar change like here: http://osdir.com/ml/kde-commits/2016-01/msg05621.html
[11:42:27] <kfunk> scummos: ^
[11:42:41] <kfunk> maybe you could try adding that in pythonlanguagesupport.cpp?
Comment 3 Sven Brauch 2016-02-11 11:50:15 UTC
Git commit 4b4857bdffb2b5667c2e82f137cb7a974a6e3179 by Sven Brauch.
Committed on 11/02/2016 at 11:50.
Pushed by brauch into branch 'master'.

lock parse lock for a short moment when destroying language support

should fix crash on shutdown. by courtesy of kfunk :)

M  +5    -0    pythonlanguagesupport.cpp

http://commits.kde.org/kdev-python/4b4857bdffb2b5667c2e82f137cb7a974a6e3179
Comment 4 Sven Brauch 2016-02-11 23:51:45 UTC
Git commit fe7fde50ffcd913a543e9ae41777c922393410e8 by Sven Brauch.
Committed on 11/02/2016 at 23:51.
Pushed by brauch into branch '5.0'.

lock parse lock for a short moment when destroying language support

should fix crash on shutdown. by courtesy of kfunk :)

M  +5    -0    pythonlanguagesupport.cpp

http://commits.kde.org/kdev-python/fe7fde50ffcd913a543e9ae41777c922393410e8