Bug 347264

Summary: 15.04.0 Crashes at start
Product: [Applications] kdenlive Reporter: Mikael Bergqvist <mkaelb>
Component: User InterfaceAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED UPSTREAM    
Severity: grave CC: h.k.ghost, imkozhedub, ingesvensson, laurent, mrboese, o.g.m.belleux, serge, ttguy1, verdna2008, wegwerf-1-2-3
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Mikael Bergqvist 2015-05-05 23:30:07 UTC
When starting kdenlive from K-menu or command line the application crashes with a Segmentation Error

Reproducible: Always

Steps to Reproduce:
1. Run kdenlive from command line
2.
3.

Actual Results:  
Application crashes with "Segmentation error"

Expected Results:  
Application should start normally

(gdb) thread apply all bt

Thread 2 (Thread 0x7fffe42d3700 (LWP 3761)):
#0  0x00007ffff1a1b8dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fffedb8fb72 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007fffedb9164f in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fffe681e099 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so
#4  0x00007ffff25bab0e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff10bc6aa in start_thread (arg=0x7fffe42d3700) at pthread_create.c:333
#6  0x00007ffff1a26eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7ffff7e027c0 (LWP 3757)):
#0  QList (this=0x7fffda43c818 <QPrinterInfoPrivate::shared_null+24>) at ../../include/QtCore/../../src/corelib/tools/qlist.h:121
#1  QPrinterInfoPrivate (name=..., this=0x7fffda43c800 <QPrinterInfoPrivate::shared_null>) at painting/qprinterinfo_p.h:71
#2  __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at painting/qprinterinfo.cpp:35
#3  _GLOBAL__sub_I_qprinterinfo.cpp(void) () at painting/qprinterinfo.cpp:163
#4  0x00007ffff7de95ba in call_init (l=<optimized out>, argc=argc@entry=1, argv=argv@entry=0x7fffffffde88, env=env@entry=0x7fffffffde98) at dl-init.c:72
#5  0x00007ffff7de96cb in call_init (env=<optimized out>, argv=<optimized out>, argc=<optimized out>, l=<optimized out>) at dl-init.c:30
#6  _dl_init (main_map=main_map@entry=0xfc0910, argc=1, argv=0x7fffffffde88, env=0x7fffffffde98) at dl-init.c:120
#7  0x00007ffff7dee587 in dl_open_worker (a=a@entry=0x7fffffffc228) at dl-open.c:579
#8  0x00007ffff7de9464 in _dl_catch_error (objname=objname@entry=0x7fffffffc218, errstring=errstring@entry=0x7fffffffc220, 
    mallocedp=mallocedp@entry=0x7fffffffc217, operate=operate@entry=0x7ffff7dee0a0 <dl_open_worker>, args=args@entry=0x7fffffffc228) at dl-error.c:187
#9  0x00007ffff7ded9a3 in _dl_open (file=0xe389f0 "/usr/lib/x86_64-linux-gnu/mlt/libmltqt.so", mode=-2147483646, 
    caller_dlopen=0x7ffff511aa24 <mlt_repository_init+292>, nsid=-2, argc=<optimized out>, argv=<optimized out>, env=0x7fffffffde98) at dl-open.c:663
#10 0x00007fffed36dfc9 in dlopen_doit (a=a@entry=0x7fffffffc440) at dlopen.c:66
#11 0x00007ffff7de9464 in _dl_catch_error (objname=0xd11ac0, errstring=0xd11ac8, mallocedp=0xd11ab8, operate=0x7fffed36df70 <dlopen_doit>, 
    args=0x7fffffffc440) at dl-error.c:187
#12 0x00007fffed36e62d in _dlerror_run (operate=operate@entry=0x7fffed36df70 <dlopen_doit>, args=args@entry=0x7fffffffc440) at dlerror.c:163
#13 0x00007fffed36e061 in __dlopen (file=<optimized out>, mode=<optimized out>) at dlopen.c:87
#14 0x00007ffff511aa24 in mlt_repository_init (directory=0x1 <error: Cannot access memory at address 0x1>) at mlt_repository.c:107
#15 0x00007ffff511a158 in mlt_factory_init (directory=0x7ffff511e8ec "/usr/lib/x86_64-linux-gnu/mlt") at mlt_factory.c:179
#16 0x00007ffff4eebc2b in Mlt::Factory::init (directory=<optimized out>) at MltFactory.cpp:32
#17 0x0000000000810012 in initEffects::parseEffectFiles(QString const&) ()
#18 0x0000000000911fa0 in MainWindow::MainWindow(QString const&, QUrl const&, QString const&, QWidget*) ()
#19 0x000000000090b223 in main ()
(gdb)
Comment 1 Pependos 2015-05-06 12:24:40 UTC
I can confirm the same to me.
Comment 2 Olivier BELLEUX 2015-05-06 13:34:18 UTC
I can confirme too:

konsole:
olivier@linux-d88k (%) : ~
⤷ kdenlive
[1]    25917 segmentation fault  kdenlive
Comment 3 laurent 2015-05-06 17:50:55 UTC
It crashes for me too on Kubuntu 15.04 64 bits with the backports compilation. Here is the backtrace:

Starting program: /usr/bin/kdenlive 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
kf5.kiconthemes: "Theme tree: (Brise)"
[New Thread 0x7fffe25e2700 (LWP 4214)]

Program received signal SIGSEGV, Segmentation fault.
0x00007fffd7c00fcc in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
(gdb) bt
#0  0x00007fffd7c00fcc in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#1  0x00007ffff7de95ba in call_init (l=<optimized out>, argc=argc@entry=1, argv=argv@entry=0x7fffffffdf58, env=env@entry=0x7fffffffdf68) at dl-init.c:72
#2  0x00007ffff7de96cb in call_init (env=<optimized out>, argv=<optimized out>, argc=<optimized out>, l=<optimized out>) at dl-init.c:30
#3  _dl_init (main_map=main_map@entry=0x10793a0, argc=1, argv=0x7fffffffdf58, env=0x7fffffffdf68) at dl-init.c:120
#4  0x00007ffff7dee587 in dl_open_worker (a=a@entry=0x7fffffffc2f8) at dl-open.c:579
#5  0x00007ffff7de9464 in _dl_catch_error (objname=objname@entry=0x7fffffffc2e8, errstring=errstring@entry=0x7fffffffc2f0, 
    mallocedp=mallocedp@entry=0x7fffffffc2e7, operate=operate@entry=0x7ffff7dee0a0 <dl_open_worker>, args=args@entry=0x7fffffffc2f8) at dl-error.c:187
#6  0x00007ffff7ded9a3 in _dl_open (file=0xfe02e0 "/usr/lib/x86_64-linux-gnu/mlt/libmltqt.so", mode=-2147483646, 
    caller_dlopen=0x7ffff505ea24 <mlt_repository_init+292>, nsid=-2, argc=<optimized out>, argv=<optimized out>, env=0x7fffffffdf68) at dl-open.c:663
#7  0x00007fffec08dfc9 in dlopen_doit (a=a@entry=0x7fffffffc510) at dlopen.c:66
#8  0x00007ffff7de9464 in _dl_catch_error (objname=0xcff110, errstring=0xcff118, mallocedp=0xcff108, operate=0x7fffec08df70 <dlopen_doit>, args=0x7fffffffc510)
    at dl-error.c:187                                                                                                                                           
#9  0x00007fffec08e62d in _dlerror_run (operate=operate@entry=0x7fffec08df70 <dlopen_doit>, args=args@entry=0x7fffffffc510) at dlerror.c:163                    
#10 0x00007fffec08e061 in __dlopen (file=<optimized out>, mode=<optimized out>) at dlopen.c:87                                                                  
#11 0x00007ffff505ea24 in mlt_repository_init () from /usr/lib/x86_64-linux-gnu/libmlt.so.6                                                                     
#12 0x00007ffff505e158 in mlt_factory_init () from /usr/lib/x86_64-linux-gnu/libmlt.so.6                                                                        
#13 0x00007ffff4e2fc2b in Mlt::Factory::init(char const*) () from /usr/lib/x86_64-linux-gnu/libmlt++.so.3                                                       
#14 0x0000000000810012 in initEffects::parseEffectFiles(QString const&) ()                                                                                      
#15 0x0000000000911fa0 in MainWindow::MainWindow(QString const&, QUrl const&, QString const&, QWidget*) ()                                                      
#16 0x000000000090b223 in main ()                                                                                                                               
(gdb)
Comment 4 Jean-Baptiste Mardelle 2015-05-06 20:34:51 UTC
This is a packaging issue. Kdenlive 15.04.x requires MLT to be compiled against Qt5, not Qt4.
Kubuntu backport PPA should contain an updated version of MLT compiled against Qt5, like the one provided on the CI PPA:
https://launchpad.net/~kubuntu-ci/+archive/ubuntu/stable

I reported the bug downstream to the Kubuntu packaging team:
https://bugs.launchpad.net/kubuntu-ppa/+bug/1452441
Comment 5 h.k.ghost 2015-05-11 04:20:40 UTC
I can confirm this bug, too. Unfortunately, I don't get the bug report assistant afterwards, so I don't have a back-trace. Trying from the shell give me a basic error/crash message:

$ kdenlive
kf5.kiconthemes: "Theme tree: (Breeze)"
[1]    8274 segmentation fault (core dumped)  kdenlive
Comment 6 h.k.ghost 2015-05-11 05:41:58 UTC
Output of trying to launch kdenlive from GDB is below.

----------------
$ gdb kdenlive
GNU gdb (Ubuntu 7.9-1ubuntu1) 7.9
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from kdenlive...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/kdenlive
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
kf5.kiconthemes: "Theme tree: (Breeze)"
[New Thread 0x7fffcf9e2700 (LWP 9336)]
[New Thread 0x7fffe25e7700 (LWP 9334)]

Program received signal SIGSEGV, Segmentation fault.
QList (this=0x7fffcd706818 <QPrinterInfoPrivate::shared_null+24>) at ../../include/QtCore/../../src/corelib/tools/qlist.h:121
121     ../../include/QtCore/../../src/corelib/tools/qlist.h: No such file or directory.
Comment 7 Inge Svensson 2015-05-15 16:21:10 UTC
I get the same error in openSUSE Tumbleweed with kdenlive 15.04.1-1.1 The error occured first after I changed vendor with ffmpeg and xine to packman and installed dvgrab and dvdauthor. I tried to change back and uninstall but still got segmentation error.
Comment 8 Inge Svensson 2015-05-15 18:55:59 UTC
Crash was caused by frei0r-plugin
Comment 9 Christoph Feck 2015-05-16 23:29:30 UTC
Are MLT packages for Qt4 and for Qt5 versions co-installable? Otherwise, MLT needs to restrict its plugin loading.
Comment 10 laurent 2015-05-17 06:27:14 UTC
The problem is now fixed for me under Kubuntu 15.04 usining the latests backports.
Comment 11 Roger Morton 2015-06-22 14:07:44 UTC
not a problem on 15.04.3 from kbuntu ci stable
Comment 12 Inge Svensson 2015-06-22 15:26:04 UTC
(In reply to Inge Svensson from comment #8)
> Crash was caused by frei0r-plugin

With newer versions of kdenlive crash doesn't occur.
Comment 13 imkozhedub 2015-07-09 15:35:55 UTC
I am having the same problem with openSUSE 13.2. Below are two crash reports:

1- from KDE crash handler:
Application: Kdenlive (kdenlive), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[KCrash Handler]
#5  0x00007f6a13db906c in __strcmp_ssse3 () at /lib64/libc.so.6
#6  0x00007f69f688db2e in QMetaType::registerNormalizedType(QByteArray const&, void (*)(void*), void* (*)(void const*), void (*)(void*), void* (*)(void*, void const*), int, QFlags<QMetaType::TypeFlag>, QMetaObject const*) () at /usr/lib64/libQt5Core.so.5
#7  0x00007f69f6d8e077 in  () at /usr/lib64/libQt5Gui.so.5
#8  0x00007f6a18fc792a in call_init.part () at /lib64/ld-linux-x86-64.so.2
#9  0x00007f6a18fc7a13 in _dl_init_internal () at /lib64/ld-linux-x86-64.so.2
#10 0x00007f6a18fcbb48 in dl_open_worker () at /lib64/ld-linux-x86-64.so.2
#11 0x00007f6a18fc77e4 in _dl_catch_error () at /lib64/ld-linux-x86-64.so.2
#12 0x00007f6a18fcb33b in _dl_open () at /lib64/ld-linux-x86-64.so.2
#13 0x00007f6a1156a02b in dlopen_doit () at /lib64/libdl.so.2
#14 0x00007f6a18fc77e4 in _dl_catch_error () at /lib64/ld-linux-x86-64.so.2
#15 0x00007f6a1156a5dd in _dlerror_run () at /lib64/libdl.so.2
#16 0x00007f6a1156a0c1 in dlopen@@GLIBC_2.2.5 () at /lib64/libdl.so.2
#17 0x00007f6a1588b754 in mlt_repository_init () at /usr/lib64/libmlt.so.6
#18 0x00007f6a1588af18 in mlt_factory_init () at /usr/lib64/libmlt.so.6
#19 0x00007f6a1565a03b in Mlt::Factory::init(char const*) () at /usr/lib64/libmlt++.so.3
#20 0x000000000065a061 in initEffects::parseEffectFiles(QString const&) (locale=...) at /usr/src/debug/kdenlive-0.9.10/src/effectslist/initeffects.cpp:145
#21 0x000000000072acf9 in MainWindow::MainWindow(QString const&, KUrl const&, QString const&, QWidget*) (this=0x11774a0, MltPath=..., Url=..., clipsToLoad=..., parent=<optimized out>, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kdenlive-0.9.10/src/mainwindow.cpp:210
#22 0x000000000045b879 in main(int, char**) (argc=<optimized out>, argv=0x7ffd2024a7a8) at /usr/src/debug/kdenlive-0.9.10/src/main.cpp:87

2- from GDB
(gdb) thread apply all backtrace

Thread 1 (Thread 0x7ffff7f67800 (LWP 3517)):
#0  0x00007ffff2bdc06c in __strcmp_ssse3 () at /lib64/libc.so.6
#1  0x00007fffd56c3b2e in QMetaType::registerNormalizedType(QByteArray const&, void (*)(void*), void* (*)(void const*), void (*)(void*), void* (*)(void*, void const*), int, QFlags<QMetaType::TypeFlag>, QMetaObject const*) () at /usr/lib64/libQt5Core.so.5
#2  0x00007fffd5bc4077 in  () at /usr/lib64/libQt5Gui.so.5
#3  0x00007ffff7dea92a in call_init.part () at /lib64/ld-linux-x86-64.so.2
#4  0x00007ffff7deaa13 in _dl_init_internal () at /lib64/ld-linux-x86-64.so.2
#5  0x00007ffff7deeb48 in dl_open_worker () at /lib64/ld-linux-x86-64.so.2
#6  0x00007ffff7dea7e4 in _dl_catch_error () at /lib64/ld-linux-x86-64.so.2
#7  0x00007ffff7dee33b in _dl_open () at /lib64/ld-linux-x86-64.so.2
#8  0x00007ffff038d02b in dlopen_doit () at /lib64/libdl.so.2
#9  0x00007ffff7dea7e4 in _dl_catch_error () at /lib64/ld-linux-x86-64.so.2
#10 0x00007ffff038d5dd in _dlerror_run () at /lib64/libdl.so.2
#11 0x00007ffff038d0c1 in dlopen@@GLIBC_2.2.5 () at /lib64/libdl.so.2
#12 0x00007ffff46ae754 in mlt_repository_init () at /usr/lib64/libmlt.so.6
#13 0x00007ffff46adf18 in mlt_factory_init () at /usr/lib64/libmlt.so.6
#14 0x00007ffff447d03b in Mlt::Factory::init(char const*) ()
    at /usr/lib64/libmlt++.so.3
#15 0x000000000065a061 in initEffects::parseEffectFiles(QString const&) (locale=...)
    at /usr/src/debug/kdenlive-0.9.10/src/effectslist/initeffects.cpp:145
#16 0x000000000072acf9 in MainWindow::MainWindow(QString const&, KUrl const&, QString---Type <return> to continue, or q <return> to quit---
 const&, QWidget*) (this=0xc5a350, MltPath=..., Url=..., clipsToLoad=..., parent=<optimized out>, __in_chrg=<optimized out>, __vtt_parm=<optimized out>)
    at /usr/src/debug/kdenlive-0.9.10/src/mainwindow.cpp:210
#17 0x000000000045b879 in main(int, char**) (argc=<optimized out>, argv=0x7fffffffdd68) at /usr/src/debug/kdenlive-0.9.10/src/main.cpp:87
Comment 14 serge 2015-09-25 11:38:00 UTC
gentoo ~amd64, crash (MLT is compliled against qt5)


Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `kdenlive'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0000000000000000 in ?? ()
[Current thread is 1 (Thread 0x7fe92ea27800 (LWP 12751))]

Thread 3 (Thread 0x7fe9138fe700 (LWP 12754)):
#0  0x00007fe928905aed in poll () from /lib64/libc.so.6
No symbol table info available.
#1  0x00007fe922e7da92 in ?? () from /usr/lib64/libxcb.so.1
No symbol table info available.
#2  0x00007fe922e7f67f in xcb_wait_for_event () from /usr/lib64/libxcb.so.1
No symbol table info available.
#3  0x00007fe915ed2419 in ?? () from /usr/lib64/qt5/plugins/platforms/libqxcb.so
No symbol table info available.
#4  0x00007fe9292593e3 in ?? () from /usr/lib64/libQt5Core.so.5
No symbol table info available.
#5  0x00007fe9272f1204 in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#6  0x00007fe92890e73d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 2 (Thread 0x7fe905f93700 (LWP 12755)):
#0  0x00007fe928905aed in poll () from /lib64/libc.so.6
No symbol table info available.
#1  0x00007fe925229bc4 in ?? () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#2  0x00007fe925229efa in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#3  0x00007fe9113a24a6 in ?? () from /usr/lib64/libgio-2.0.so.0
No symbol table info available.
#4  0x00007fe92524ebf5 in ?? () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#5  0x00007fe9272f1204 in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#6  0x00007fe92890e73d in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 1 (Thread 0x7fe92ea27800 (LWP 12751)):
#0  0x0000000000000000 in ?? ()
No symbol table info available.
#1  0x00007fe915ef83b3 in ?? () from /usr/lib64/qt5/plugins/platforms/libqxcb.so
No symbol table info available.
#2  0x00007fe915ef9748 in ?? () from /usr/lib64/qt5/plugins/platforms/libqxcb.so
No symbol table info available.
#3  0x00007fe915ed39fb in ?? () from /usr/lib64/qt5/plugins/platforms/libqxcb.so
No symbol table info available.
#4  0x00007fe92973a19b in QOpenGLContext::create() () from /usr/lib64/libQt5Gui.so.5
No symbol table info available.
#5  0x00007fe915efa1cd in ?? () from /usr/lib64/qt5/plugins/platforms/libqxcb.so
No symbol table info available.
#6  0x00007fe915efa341 in ?? () from /usr/lib64/qt5/plugins/platforms/libqxcb.so
No symbol table info available.
#7  0x00007fe92d4cc6b3 in QSGRenderLoop::instance() () from /usr/lib64/libQt5Quick.so.5
No symbol table info available.
#8  0x00007fe92d4fb9c0 in QQuickWindowPrivate::init(QQuickWindow*, QQuickRenderControl*) () from /usr/lib64/libQt5Quick.so.5
No symbol table info available.
#9  0x00007fe92d5a2dcd in QQuickView::QQuickView(QWindow*) () from /usr/lib64/libQt5Quick.so.5
No symbol table info available.
#10 0x0000000000733f10 in GLWidget::GLWidget(QObject*) ()
No symbol table info available.
#11 0x0000000000739b3b in Monitor::Monitor(Kdenlive::MonitorId, MonitorManager*, QWidget*) ()
No symbol table info available.
#12 0x000000000080862a in MainWindow::MainWindow(QString const&, QUrl const&, QString const&, QWidget*) ()
No symbol table info available.
#13 0x0000000000513bb5 in main ()
No symbol table info available.
Comment 15 serge 2015-09-25 11:45:39 UTC
 ldd /usr/lib/mlt/libmltqt.so  | grep -i qt
	libQt5Core.so.5 => /usr/lib64/libQt5Core.so.5 (0x00007fe57a322000)
	libQt5Gui.so.5 => /usr/lib64/libQt5Gui.so.5 (0x00007fe579e98000)
	libQt5Xml.so.5 => /usr/lib64/libQt5Xml.so.5 (0x00007fe579e5d000)
	libQt5Svg.so.5 => /usr/lib64/libQt5Svg.so.5 (0x00007fe579e09000)
	libQt5Widgets.so.5 => /usr/lib64/libQt5Widgets.so.5 (0x00007fe579795000)
Comment 16 serge 2015-09-25 11:49:38 UTC
kdenlive is 15.08.1