Review Request 118816: Don't crash konsole when a container destructs

Jeremy Whiting jpwhiting at kde.org
Wed Jun 18 23:54:25 BST 2014



> On June 18, 2014, 4:25 p.m., Kurt Hindenburg wrote:
> > If it stops the crashing, go ahead - thanks.

It's a bit inconsistent here. I can make it crash in konsole or yakuake by doing split view then exit in one of the splits. and sometimes it crashes still in yakuake when I hit the - button, but not always.


- Jeremy


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/118816/#review60455
-----------------------------------------------------------


On June 18, 2014, 3:51 p.m., Jeremy Whiting wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/118816/
> -----------------------------------------------------------
> 
> (Updated June 18, 2014, 3:51 p.m.)
> 
> 
> Review request for KDE Base Apps and Eike Hein.
> 
> 
> Bugs: 331724
>     http://bugs.kde.org/show_bug.cgi?id=331724
> 
> 
> Repository: konsole
> 
> 
> Description
> -------
> 
> When containers are destructed, they emit a signal that the splitter is connected to which removes and unregisters the container from the splitter.
> A crash happens when the splitter is destroyed before the container, so a slot in a deleted splitter is called, tries to unregister the container, and segfaults.
> I added a destructor to ViewSplitter which unregisters all it's containers, this fixes the crash here on closing of a tab in yakuake and on closing a tab in konsole.
> 
> 
> Diffs
> -----
> 
>   src/ViewSplitter.h c1e4552 
>   src/ViewSplitter.cpp bfc727e 
>   src/ViewContainer.cpp 79c24d5 
> 
> Diff: https://git.reviewboard.kde.org/r/118816/diff/
> 
> 
> Testing
> -------
> 
> Manual testing, it seems to work fine.
> 
> 
> Thanks,
> 
> Jeremy Whiting
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20140618/d0e71228/attachment.htm>


More information about the kde-core-devel mailing list