Bug 326287 - Background parser crashes randomly in kdevelop 4.3.0
Summary: Background parser crashes randomly in kdevelop 4.3.0
Status: RESOLVED DUPLICATE of bug 318972
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR major
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-19 20:00 UTC by Ray
Modified: 2013-10-19 22:39 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 Ray 2013-10-19 20:00:37 UTC
KDevelop started crashing randomly for me a couple of weeks ago.  I believe this was precipitated by some code edits (in my project) but I have been unable to narrow down which edits are causing the problem.  I have been able to confirm that turning off the background parser stops the crashing (but this is tricky to do; must first clear the session cache to start cleanly, then turn it off).

The complete scenario is that I alternate between development on my desktop and laptop systems.  (Desktop is Fedora 16 and laptop Fedora 17.  Both are running KDevelop 4.5.1.)  After doing some changes on my desktop and syncing to the laptop with Mercurial, KDevelop now crashes a few seconds after it starts.  It does this every time with this project unless the background parser is disabled.

I have been unable to acquire a useful crash dump as the crash helper usually does not even run when this happens.  If I clear the cache (i.e. ~/.cache/kdevduchain/* and ~/.kde/share/apps/kdevelop/sessions/*) I can get KDevelop to start without crashing but when I reload the project it starts crashing again.  The only way to continue working is to disable the background parser.

I did find a bug report about this about a week ago but I cannot locate it today.  The comments in that report suggested that a fix had been found and the devs were debating whether to wait for 4.6 or to push a bug fix out now.  If this is indeed correct, PLEASE PUSH OUT A BUG FIX (4.5.2?).  The work-around for this bug (turning off background processing) effectively disables many important features and is therefore a big problem for folks that experience it.  4.6 will probably not come to many current distros (including the two I'm using) even if it is close to release.

I will continue trying to acquire a useful crash dump and narrowing down the edits that are causing the crash and I will post them here when I get them.


Reproducible: Always

Actual Results:  
crash

Expected Results:  
no crash
Comment 1 Ray 2013-10-19 20:47:01 UTC
Correction: My Fedora 16 desktop is running kdevelop 4.3.0
Comment 2 Ray 2013-10-19 21:02:41 UTC
Sorry for the confusion.  The crash happens on kdevelop 4.5.1.  However, I also sometimes use kdevelop 4.3.0 on a different system but it DOES NOT crash there.  The code edits that I believe may have precipitated the crashing were done on the 4.3.0 system and DID NOT crash it.  When I moved those code changes over to the 4.5.1 system, that's when the crashing started.

I fixed the version in the bug report to reflect where the crash actually is.

BTW, still trying to reproduce this to get a backtrace.  It's been doing this relentlessly for about two weeks and, all of a sudden, today I can no longer reproduce it!  :(  I'll try backing out the changes I made today and see if it crashes again.
Comment 3 Milian Wolff 2013-10-19 21:04:46 UTC
Probably you talk about 318972 and yes we should do a bugfix release.

If you talk about a different bug, please reopen this but do attach a backtrace, otherwise this input is worthless I'm afraid to say.

*** This bug has been marked as a duplicate of bug 318972 ***
Comment 4 Ray 2013-10-19 22:39:06 UTC
I'm not 100% certain that it's the same bug but I will try to isolocate it tonight and post something when I do.  Thanks for porting the patch, BTW.