Review Request: Fix a VLC crash by delaying object deletion to avoid invalid access by QtDBus

Dawit Alemayehu adawit at
Mon Jan 30 06:35:07 GMT 2012

This is an automatically generated e-mail. To reply, visit:

(Updated Jan. 30, 2012, 6:35 a.m.)

Review request for kdelibs and Thiago Macieira.


Bring back an updated version of this patch since this crash can be reproduced using Qt 4.8.

Summary (updated)

Fix a VLC crash by delaying object deletion to avoid invalid access by QtDBus

Description (updated)

As described in the bug report when opening the file dialog, canceling it and exiting VLC causes the application to seg fault. The backtraces posted in the bug report shows that the crash happens somewhere in QtDBus and I get a similar backtrace when using v1.1.7 of this application. 

When I looked into this issue what I discovered was that only KIO classes that register themselves with QtDBus cause the crash. I only found that out because fixing the crash in KIO::Scheduler by defering its deletion using deleteLater() did not prevent the application from still crashing on exit. However, the crash had moved to another location, KBookmarkManager. The only common thing between the crash at KBookmarkmanager and KIO::Scheduler was that in both cases the backtrace shows QtDBus attempting to invoke or access some method or slot in the object that was just destroyed. At this point I decided to check how many other classes in KIO register themselves with QtDBus and found only one more. I then applied the same changes to all three,  defering the deletion of any object registered with QtDBus using QObject::deleteLater, and the crashing went away.

Anyhow, I have no idea why the crashes are only seen with this application. I was not able to duplicate the crash using the same sequences in another Qt only app, Arora or any of the other KDE applications I tried.

This addresses bug 234484.

Diffs (updated)

  kio/bookmarks/ d8a9cb7 
  kio/kio/fileundomanager.cpp f580c29 
  kio/kio/scheduler.cpp 6b36d9d 




Dawit Alemayehu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the kde-core-devel mailing list