Bug 403565

Summary: Crash when importing qif
Product: [Applications] kmymoney Reporter: Kwanza.Pili
Component: importerAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: major    
Priority: NOR    
Version: 5.0.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 5.0.3
Sentry Crash Report:
Attachments: Backtrace

Description Kwanza.Pili 2019-01-24 18:25:45 UTC
Created attachment 117642 [details]
Backtrace

SUMMARY
Whenever, I try to import a QIF file, the application crashes immediately

STEPS TO REPRODUCE
1. Select "import->QIF"
2. Select file to import (in QIF format)
3. Select Asset class

OBSERVED RESULT
Immediate crash

EXPECTED RESULT
Import file and process transactions

SOFTWARE/OS VERSIONS
Windows: 
MacOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.14.4
KDE Frameworks Version: 5.54.0
Qt Version: 5.12.0

ADDITIONAL INFORMATION
Comment 1 Thomas Baumgart 2019-01-26 15:25:19 UTC
Git commit c9bacc5dc70ebdbb046a80331efe6f7ada90484f by Thomas Baumgart.
Committed on 26/01/2019 at 14:49.
Pushed by tbaumgart into branch '5.0'.

Avoid destruction of object that is still being used

The m_qifReader object was deleted to early.
FIXED-IN: 5.0.3

M  +4    -3    kmymoney/plugins/qif/import/qifimporter.cpp

https://commits.kde.org/kmymoney/c9bacc5dc70ebdbb046a80331efe6f7ada90484f