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

David Edmundson <k...@davidedmundson.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |k...@davidedmundson.co.uk
     Ever confirmed|0                           |1
           Priority|NOR                         |HI
             Status|REPORTED                    |CONFIRMED

--- Comment #1 from David Edmundson <k...@davidedmundson.co.uk> ---
Guarding is easy, but I can't see a path causing this.

We have:
    connect(m_proc, &KProcess::errorOccurred, this,
&BacktraceGenerator::slotOnErrorOccurred);

which means the m_proc process is alive, but the member variable is null. 

The only option for m_proc to be null when in this path is:

```
void BacktraceGenerator::setBackendFailed()
{
    // Shouldn't have been set yet
    Q_ASSERT(!m_proc);
    m_proc = nullptr;
}
```
that unsets but doesn't delete because of the assumption above.

Every other path does.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to