Bug 65779

Summary: KDevelop crashes when trying to load a corrupted pcs file
Product: [Applications] kdevelop Reporter: Bernd Pol <bernd.pol>
Component: Language Support: CPP (old)Assignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version: 3.0.0a7   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Bernd Pol 2003-10-10 05:16:16 UTC
Version:           3.0.0a7 (using KDE 3.1.4)
Installed from:    SuSE
Compiler:          gcc version 3.3 20030226 (prerelease) (SuSE Linux)
OS:          Linux (i686) release 2.4.20-4GB-athlon

It happened twice to me now. When KDevelop crashed on/after a compile before it could update the pcs file, it will crash when you try to load the project again. Removing the pcs and kdevses files did help.
It would be better to anticipate those chrashes on corrupted pcs files and warn the user and/or abandon those files in that case and try a complete rebuild.
Is there any way to check pcs file consistency beforehand?
Comment 1 Jens Dagerbo 2003-11-13 00:07:29 UTC
Roberto just added safeguards. If the PCS isn't written correctly to disc, KDevelop should not attempt to read it next time. If KDevelop crashes when attempting to read the PCS on project load, it will not read the PCS on a second attempt.

Closing as fixed.