Page 1 of 1

VLC causes segmentation fault in Fedora KDE

Posted: 05 Apr 2011 08:47
by Kevin Hoang
I open vlc in the following details:

- Open terminal
- Type vlc, it open vlc gui application
- Select a file to play by File > Open File ... (my example is a .mov file)

When I click 'Close button' it show the following error message in Terminal:

Code: Select all

Program received signal SIGSEGV, Segmentation fault. 0x0000003cc8040e8b in ?? () from /usr/lib64/libQtDBus.so.4
Backtrace when I run vlc in gdb

Code: Select all

Program received signal SIGSEGV, Segmentation fault. 0x0000003cc8040e8b in ?? () from /usr/lib64/libQtDBus.so.4 (gdb) bt #0 0x0000003cc8040e8b in ?? () from /usr/lib64/libQtDBus.so.4 #1 0x0000003cc80411d5 in ?? () from /usr/lib64/libQtDBus.so.4 #2 0x0000003cc097004f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4 #3 0x0000003cc097055f in QObject::destroyed(QObject*) () from /usr/lib64/libQtCore.so.4 #4 0x0000003cc0972967 in QObject::~QObject() () from /usr/lib64/libQtCore.so.4 #5 0x0000003f7df7dea9 in KIO::Scheduler::~Scheduler() () from /usr/lib64/libkio.so.5 #6 0x0000003f7df832db in ?? () from /usr/lib64/libkio.so.5 #7 0x0000003cbc4369f1 in exit () from /lib64/libc.so.6 #8 0x0000003cbc41ee64 in __libc_start_main () from /lib64/libc.so.6 #9 0x0000000000401039 in ?? () #10 0x00007fffffffe128 in ?? () #11 0x000000000000001c in ?? () #12 0x0000000000000001 in ?? () #13 0x00007fffffffe438 in ?? () #14 0x0000000000000000 in ?? () (gdb)
My computer details:
Fedora 14, KDE 4.6.1, Qt 4.7.1

I think this is a bug in VLC program, ...

Re: VLC causes segmentation fault in Fedora KDE

Posted: 05 Apr 2011 09:56
by Sébastien Escudier

Re: VLC causes segmentation fault in Fedora KDE

Posted: 05 Apr 2011 12:51
by Kevin Hoang
I think this is a bug in Qt Module. The Qt frameworks destroy all of child widgets automatically, so if you have code like this:

Code: Select all

/** * QObject in this code can be: QWidget, QList, and etc. */ //In parent Object or main code QObject sObject(...); QObject* object; object = &sObject; //and some where we change parent of object object.setParent(mainObject); //OR layout->addWidget(object);
The code is exactly correct and does not have problem in pure C++, but in Qt will cause segment fault like above.

Re: VLC causes segmentation fault in Fedora KDE

Posted: 05 Apr 2011 15:50
by Rémi Denis-Courmont
The crash occur in the destructor of a static C++ object from KDE. This cannot be a bug in the Qt module.
https://bugs.kde.org/show_bug.cgi?id=234484

Re: VLC causes segmentation fault in Fedora KDE

Posted: 22 Aug 2013 00:17
by hussam
still happens in vlc from git under kde 4.11

Re: VLC causes segmentation fault in Fedora KDE

Posted: 22 Aug 2013 18:31
by Rémi Denis-Courmont
Well, KDE people blamed the bug on QtDbus, and QtDbus people never bothered to fix it.

Complaining here will not solve anything, I am afraid.