[Kmymoney-devel] [Bug 261886] New: Once KMM opened, by force of habit, I opened CSV import. When the plugin opened, I closed it immediately and KMM crashed.

allan agander93 at gmail.com
Sun Jan 2 18:43:48 CET 2011


https://bugs.kde.org/show_bug.cgi?id=261886

           Summary: Once KMM opened, by force of habit, I opened  CSV
                    import.  When the plugin opened, I closed it
                    immediately and KMM crashed.
           Product: kmymoney4
           Version: SVN trunk
          Platform: openSUSE RPMs
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: crash
          Priority: NOR
         Component: general
        AssignedTo: kmymoney-devel at kde.org
        ReportedBy: agander93 at gmail.com


Version:           SVN trunk (using KDE 4.5.85) 
OS:                Linux

Once KMM opened, by force of habit, I opened  CSV import.  Realising it wasn't
needed for what I was intending to do, once the plugin opened, I closed it
immediately, and KMM crashed.

The crash occurred here:-
RedefineDlg::~RedefineDlg()
{
  delete m_widget;
}.

My first thought was to test for m_widget being NULL before the delete.  On
repeating the process, the identical crash occurred.

RedefineDlg() is called in the ctor of InvestmentDlg() - m_redefine = new
RedefineDlg, and destroyed in its dtor.  So I repeated the NULL test here. 
This time, there was no crash.

I then thought it could be a timing issue, as I had closed the plugin pretty
quickly, so removed the NULL tests, and waited a few seconds before closing the
plugin, and there was no crash.  However, I have since been unable to reproduce
the crash, so am a bit puzzled.  I had a crash yesterday, which I accidentally
failed to obtain the evidence, but am pretty sure the circumstances were the
same.

I'm leaving the NULL tests out for the time being.


Reproducible: Sometimes

Steps to Reproduce:
Open KMM, open the CSV Plugin, then immediately close it.

Actual Results:  
A crash occurs.

Expected Results:  
No crash occurs.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list