Review Request: Potential crash due to notification during file save

Dag Andersen danders at get2net.dk
Tue May 22 10:02:44 BST 2012


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

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/7b36e0bf/attachment.htm>


More information about the calligra-devel mailing list