Bug 289458 - [patch] Kile segfaults on exiting during closing projects
Summary: [patch] Kile segfaults on exiting during closing projects
Status: RESOLVED FIXED
Alias: None
Product: kile
Classification: Applications
Component: general (show other bugs)
Version: trunk-kde4
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: Michel Ludwig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-20 21:00 UTC by Eugene Shalygin
Modified: 2011-12-20 21:27 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
fix for Manager::projectCloseAll() (613 bytes, patch)
2011-12-20 21:00 UTC, Eugene Shalygin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Shalygin 2011-12-20 21:00:54 UTC
Created attachment 66957 [details]
fix for Manager::projectCloseAll()

Version:           trunk-kde4 (using Devel) 
OS:                Linux

If more than 2 projects are opened in Kile then during closing it crashes.

Maybe this has started after upgrading Qt to 4.8, but I'm not sure. 

The problem is caused by removing items from collection during itearation in Manager::projectCloseAll() (iteration) and Manager::projectClose(const Kurl&) (removing).


Reproducible: Always

Steps to Reproduce:
1. Open 3 or more projects in Kile
2. Exit Kile

Actual Results:  
Kile crashes

Expected Results:  
Kile exits normally

Trivial patch is attached
Comment 1 Michel Ludwig 2011-12-20 21:22:20 UTC
Thanks for the patch! I've committed it now

http://commits.kde.org/kile/fd907d27dbced726d794bf24b887041eea9fbcab

(unfortunately with the wrong bug number)

As I cannot reproduce the crash here, please close this bug if it is fixed for you now.
Comment 2 Eugene Shalygin 2011-12-20 21:27:41 UTC
Thanks! I have chacked it before submission with local builds and it works.