Review Request: Potential crash due to notification during file save

Boudewijn Rempt boud at valdyas.org
Tue May 22 10:04:51 BST 2012


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/105010/#review14031
-----------------------------------------------------------

Ship it!


Good research! Just one question:


sheets/CMakeLists.txt
<http://git.reviewboard.kde.org/r/105010/#comment11110>

    er, why this?


- Boudewijn Rempt


On May 22, 2012, 9:02 a.m., Dag Andersen wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/105010/
> -----------------------------------------------------------
> 
> (Updated May 22, 2012, 9:02 a.m.)
> 
> 
> Review request for Calligra.
> 
> 
> Description
> -------
> 
> AFAICS any calligra app potentially crashes during query close.
> The reason is a notification issued in KoDocument::saveFile() which results in an async dbus message.
> The reply to this message can be received (timing dependent) during deletion of the dbus conection in which case it will crash.
> 
> I propose to just remove the notification as I cannot see a use case for it (unless saving a file takes a looong time)
> Also it is only activated in Sheets (where it is still called KSpread, btw), no other app uses it.
> 
> So the patch removes the notification from KoDocument::saveFile() and removes the sheets.notifyrc file from sheets.
> 
> 
> This addresses bug 297822.
>     http://bugs.kde.org/show_bug.cgi?id=297822
> 
> 
> Diffs
> -----
> 
>   libs/main/KoDocument.cpp 03086b3 
>   sheets/CMakeLists.txt 5355719 
> 
> Diff: http://git.reviewboard.kde.org/r/105010/diff/
> 
> 
> Testing
> -------
> 
> Well, hard to test, but I found that running plan under gdb triggered the crash most of the time (ymmv).
> With patch applied I have not seen a crash yet.
> 
> 
> Thanks,
> 
> Dag Andersen
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/calligra-devel/attachments/20120522/db6a578b/attachment.htm>


More information about the calligra-devel mailing list