Bug 65779 - KDevelop crashes when trying to load a corrupted pcs file
Summary: KDevelop crashes when trying to load a corrupted pcs file
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (show other bugs)
Version: 3.0.0a7
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-10 05:16 UTC by Bernd Pol
Modified: 2003-11-13 00:07 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.