Package: kdenlive
Version: 16.04.3-1
Severity: normal

Dear Maintainer,

I have a kdenlive project, HD 720p 25fps, with multiple tracks. On the first
track (Video 1, MP4/H.264/AAC source with 24 fps), I can apply the `compand`
filter as expected. On the second track (Audio 1, MKV/H.264/Opus source with 10
fps), when I do this, kdenlive crashes with a segfault in libavfilter.

I'm not really sure whether kdenlive, libmlt or libavfilter are at fault here,
feel free to reassign to these packages.

A gdb session log is attached, a coredump (amd64, 594MB, gzipped to 22 MB) is
available at
https://rohieb.name/stuff/temp/kdenlive-avfilter-compand-segfault.core.gz

Cheers,
  Roland

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 
'testing'), (170, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.6.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages kdenlive depends on:
ii  ffmpeg                       7:3.1.1-2
ii  kded5                        5.23.0-1
ii  kdenlive-data                16.04.3-1
ii  kinit                        5.23.0-1
ii  kio                          5.23.0-1
ii  libc6                        2.23-2
ii  libgcc1                      1:6.1.1-9
ii  libgl1-mesa-glx [libgl1]     11.2.2-1
ii  libglu1-mesa [libglu1]       9.0.0-2.1
ii  libkf5archive5               5.24.0-1
ii  libkf5attica5                5.23.0-1
ii  libkf5auth5                  5.23.0-1
ii  libkf5bookmarks5             5.23.0-1
ii  libkf5codecs5                5.23.0-1
ii  libkf5completion5            5.23.0-1
ii  libkf5configcore5            5.23.0-1
ii  libkf5configgui5             5.23.0-1
ii  libkf5configwidgets5         5.23.0-1
ii  libkf5coreaddons5            5.23.0-1
ii  libkf5crash5                 5.23.0-1
ii  libkf5dbusaddons5            5.23.0-1
ii  libkf5filemetadata3          5.23.0-1
ii  libkf5guiaddons5             5.23.0-1
ii  libkf5i18n5                  5.23.0-1
ii  libkf5iconthemes5            5.23.0-1
ii  libkf5itemviews5             5.23.0-1
ii  libkf5jobwidgets5            5.23.0-1
ii  libkf5kiocore5               5.23.0-1
ii  libkf5kiofilewidgets5        5.23.0-1
ii  libkf5kiontlm5               5.23.0-1
ii  libkf5kiowidgets5            5.23.0-1
ii  libkf5newstuff5              5.23.0-1
ii  libkf5notifications5         5.23.0-1
ii  libkf5notifyconfig5          5.23.0-1
ii  libkf5plotting5              5.23.0-1
ii  libkf5service-bin            5.23.0-1
ii  libkf5service5               5.23.0-1
ii  libkf5solid5                 5.23.0-1
ii  libkf5sonnetui5              5.23.0-1
ii  libkf5textwidgets5           5.23.0-1
ii  libkf5widgetsaddons5         5.23.0-1
ii  libkf5xmlgui5                5.23.0-1
ii  libmlt++3                    6.2.0-1
ii  libmlt6                      6.2.0-1
ii  libqt5concurrent5            5.6.1+dfsg-3
ii  libqt5core5a                 5.6.1+dfsg-3
ii  libqt5dbus5                  5.6.1+dfsg-3
ii  libqt5gui5                   5.6.1+dfsg-3
ii  libqt5network5               5.6.1+dfsg-3
ii  libqt5qml5                   5.6.1-5
ii  libqt5quick5                 5.6.1-5
ii  libqt5script5                5.6.1+dfsg-2
ii  libqt5svg5                   5.6.1-2
ii  libqt5widgets5               5.6.1+dfsg-3
ii  libqt5xml5                   5.6.1+dfsg-3
ii  libstdc++6                   6.1.1-9
ii  libv4l-0                     1.10.1-1
ii  melt                         6.2.0-1
ii  oxygen-icon-theme            4:4.14.0-1
ii  qml-module-qtquick-controls  5.6.1-2
ii  qml-module-qtquick2          5.6.1-5

Versions of packages kdenlive recommends:
ii  dvdauthor        0.7.0-1.4+b1
ii  dvgrab           3.5+git20160707.1.e46042e-1
ii  frei0r-plugins   1.4-3+b2
ii  genisoimage      9:1.1.11-3
ii  recordmydesktop  0.3.8.1+svn602-1+b1
ii  swh-plugins      0.4.16+git20160602~repack1-2

Versions of packages kdenlive suggests:
pn  khelpcenter  <none>

-- no debconf information
$ gdb /usr/bin/kdenlive
GNU gdb (Debian 7.11.1-2) 7.11.1
Copyright (C) 2016 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 /usr/bin/kdenlive...Reading symbols from 
/usr/lib/debug/.build-id/ed/65ef70ffbc9807daceed09dfba1032a3c6cbfd.debug... 
done.
done.
(gdb) set substitute-path src/ ~/tmp/deb/ffmpeg-3.1.1/
(gdb) r
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".
[New Thread 0x7fffe1ff1700 (LWP 18908)]
[New Thread 0x7fffe13db700 (LWP 18909)]
[New Thread 0x7fffbc045700 (LWP 19069)]
[New Thread 0x7fffb6ccf700 (LWP 19233)]
[New Thread 0x7fffb5cce700 (LWP 19234)]
[New Thread 0x7fffb54cd700 (LWP 19235)]
Removing cache at "/home/rohieb/.cache/kdenlive-thumbs.kcache"
[New Thread 0x7fffa3666700 (LWP 19309)]
[Thread 0x7fffa3666700 (LWP 19309) exited]
[New Thread 0x7fffa3666700 (LWP 19310)]
OpenGL vendor:  "Intel Open Source Technology Center"
OpenGL renderer:  "Mesa DRI Mobile Intel? GM45 Express Chipset "
OpenGL ARG_SYNC:  true
OpenGL OpenGLES:  false
[New Thread 0x7fffa7666700 (LWP 19313)]
OpenGL vendor:  "Intel Open Source Technology Center"
OpenGL renderer:  "Mesa DRI Mobile Intel? GM45 Express Chipset "
OpenGL ARG_SYNC:  true
OpenGL OpenGLES:  false
[New Thread 0x7fffa6e65700 (LWP 19314)]
[New Thread 0x7fffa6664700 (LWP 19319)]
[New Thread 0x7fffa5e63700 (LWP 19324)]
QXcbConnection: XCB error: 8 (BadMatch), sequence: 631, resource id: 23068685, 
major code: 155 (Unknown), minor code: 11
QFile::setFileName: File 
(/home/rohieb/.local/share/stalefiles/kdenlive/2016-07-14-drahflow-random-vim-tricks.kdenliveUNzfile_%2Fmedia%2Frohieb%2FAT-AT%2Ftalks-2016-07-14en6HPUNz)
 is already opened
Removing cache at "/home/rohieb/.cache/kdenlive-thumbs.kcache"
 // / processing file open
 // / processing file open: validate
Opening a document with version  0.94  /  0.94
 // / processing file validate ok
[Thread 0x7fffa3666700 (LWP 19310) exited]
[Thread 0x7fffa5e63700 (LWP 19324) exited]
[Thread 0x7fffa6e65700 (LWP 19314) exited]
[New Thread 0x7fffa6e65700 (LWP 19587)]
[New Thread 0x7fffa6e65700 (LWP 19588)]
[Thread 0x7fffa6e65700 (LWP 19587) exited]
[New Thread 0x7fffa5e63700 (LWP 19589)]
[New Thread 0x7fffa3666700 (LWP 19590)]
[Thread 0x7fffa6e65700 (LWP 19588) exited]
[Thread 0x7fffa3666700 (LWP 19590) exited]
[New Thread 0x7fffa3666700 (LWP 19593)]
[Thread 0x7fffa5e63700 (LWP 19589) exited]
[New Thread 0x7fffa3666700 (LWP 19602)]
[Thread 0x7fffa3666700 (LWP 19593) exited]
[New Thread 0x7fffa5e63700 (LWP 19603)]
[New Thread 0x7fffa6e65700 (LWP 19604)]
[New Thread 0x7fff8bffe700 (LWP 19607)]
***********
FOUND GUIDES:  2 
**********
"Creating audio thumbnails (1/1)"
"Creating audio thumbnails (2/2)"
"Creating audio thumbnails (3/2)"
[Thread 0x7fff8bffe700 (LWP 19607) exited]
[Thread 0x7fffa3666700 (LWP 19602) exited]
[Thread 0x7fffa6e65700 (LWP 19604) exited]
[New Thread 0x7fffa6e65700 (LWP 19734)]
[Thread 0x7fffa5e63700 (LWP 19603) exited]
[New Thread 0x7fffa6e65700 (LWP 19735)]
[Thread 0x7fffa6e65700 (LWP 19734) exited]
[New Thread 0x7fffa5e63700 (LWP 19736)]
[New Thread 0x7fffa3666700 (LWP 19737)]
[New Thread 0x7fff8bffe700 (LWP 19738)]
[New Thread 0x7fff93fff700 (LWP 19739)]
[New Thread 0x7fff8f7fe700 (LWP 19753)]
[New Thread 0x7fff8effd700 (LWP 19754)]
QTimeLine::start: already running
[Thread 0x7fff8effd700 (LWP 19754) exited]
[Thread 0x7fffa6e65700 (LWP 19735) exited]
[Thread 0x7fff8f7fe700 (LWP 19753) exited]
[Thread 0x7fffa5e63700 (LWP 19736) exited]
[New Thread 0x7fffa5e63700 (LWP 19852)]
[New Thread 0x7fffa5e63700 (LWP 19853)]
[Thread 0x7fffa5e63700 (LWP 19852) exited]
[New Thread 0x7fff8f7fe700 (LWP 19854)]
[New Thread 0x7fffa6e65700 (LWP 19855)]
[Thread 0x7fffa5e63700 (LWP 19853) exited]
[Thread 0x7fffa6e65700 (LWP 19855) exited]
[New Thread 0x7fffa6e65700 (LWP 19956)]
[Thread 0x7fff8f7fe700 (LWP 19854) exited]
[New Thread 0x7fffa6e65700 (LWP 19957)]
[Thread 0x7fffa6e65700 (LWP 19956) exited]
[New Thread 0x7fff8f7fe700 (LWP 19958)]
[New Thread 0x7fffa5e63700 (LWP 19959)]
[New Thread 0x7fff8effd700 (LWP 20219)]
[New Thread 0x7fff8e7fc700 (LWP 20784)]
[New Thread 0x7fff8dffb700 (LWP 20785)]
[New Thread 0x7fff8d7fa700 (LWP 20786)]
[filt @ 0x7fff9cfebae0] Invalid and/or missing input/output value.
[filt @ 0x7fff9cfebae0] Failed to configure output pad on filt
[filter avfilter.compand] Cannot configure the filter graph

Thread 37 "RenderThread" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff8f7fe700 (LWP 19958)]
0x0000000000000000 in ?? ()
(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x00007fffd1eb6e9b in ff_filter_frame_framed 
(link=link@entry=0x7fff9d362f60, frame=0x7fff9cf08520) at 
src/libavfilter/avfilter.c:1125
#2  0x00007fffd1eb80b0 in ff_filter_frame (link=link@entry=0x7fff9d362f60, 
frame=0x7fff9cf08520) at src/libavfilter/avfilter.c:1223
#3  0x00007fffd1e85365 in filter_frame (inlink=inlink@entry=0x7fff9c054f00, 
insamplesref=0x7fff9d41bde0) at src/libavfilter/af_aresample.c:227
#4  0x00007fffd1eb6e9b in ff_filter_frame_framed 
(link=link@entry=0x7fff9c054f00, frame=0x7fff9d41bde0) at 
src/libavfilter/avfilter.c:1125
#5  0x00007fffd1eb80b0 in ff_filter_frame (link=link@entry=0x7fff9c054f00, 
frame=0x7fff9d41bde0) at src/libavfilter/avfilter.c:1223
#6  0x00007fffd1ebc77f in request_frame (link=0x7fff9c054f00) at 
src/libavfilter/buffersrc.c:450
#7  0x00007fffd1eb70b6 in ff_request_frame_to_filter (link=0x7fff9c054f00) at 
src/libavfilter/avfilter.c:387
#8  0x00007fffd1ebb335 in ff_filter_graph_run_once (graph=<optimized out>) at 
src/libavfilter/avfiltergraph.c:1434
#9  0x00007fffd1ebbc93 in av_buffersink_get_frame_flags (ctx=0x7fff9d367f40, 
frame=0x555557c6e580, flags=flags@entry=0) at src/libavfilter/buffersink.c:144
#10 0x00007fffd1ebbd8f in av_buffersink_get_frame (ctx=<optimized out>, 
frame=<optimized out>) at src/libavfilter/buffersink.c:125
#11 0x00007fffd86956e5 in filter_get_audio (frame=frame@entry=0x7fff9cf4e7b0, 
buffer=buffer@entry=0x7fff8f7fda50, format=format@entry=0x555558259730, 
frequency=frequency@entry=0x7fff8f7fda38, 
    channels=channels@entry=0x7fff8f7fda40, 
samples=samples@entry=0x7fff8f7fda48) at filter_avfilter.c:430
#12 0x00007ffff66c2229 in mlt_frame_get_audio (self=self@entry=0x7fff9cf4e7b0, 
buffer=buffer@entry=0x7fff8f7fda50, format=format@entry=0x555558259730, 
frequency=frequency@entry=0x7fff8f7fda38, 
    channels=channels@entry=0x7fff8f7fda40, 
samples=samples@entry=0x7fff8f7fda48) at mlt_frame.c:750
#13 0x00007fffc0bde27e in transition_get_audio 
(frame_a=frame_a@entry=0x7fff9cf4b3b0, buffer=buffer@entry=0x7fff8f7fdc50, 
format=format@entry=0x555558259730, frequency=frequency@entry=0x55555825982c, 
    channels=channels@entry=0x555558259828, 
samples=samples@entry=0x7fff8f7fdc4c) at transition_mix.c:117
#14 0x00007ffff66c2229 in mlt_frame_get_audio (self=self@entry=0x7fff9cf4b3b0, 
buffer=buffer@entry=0x7fff8f7fdc50, format=format@entry=0x555558259730, 
frequency=frequency@entry=0x55555825982c, 
    channels=channels@entry=0x555558259828, 
samples=samples@entry=0x7fff8f7fdc4c) at mlt_frame.c:750
#15 0x00007ffff66d7ca6 in producer_get_audio (self=self@entry=0x7fff9d029980, 
buffer=buffer@entry=0x7fff8f7fdc50, format=format@entry=0x555558259730, 
frequency=frequency@entry=0x55555825982c, 
    channels=channels@entry=0x555558259828, 
samples=samples@entry=0x7fff8f7fdc4c) at mlt_tractor.c:403
#16 0x00007ffff66c2229 in mlt_frame_get_audio (self=self@entry=0x7fff9d029980, 
buffer=buffer@entry=0x7fff8f7fdc50, format=format@entry=0x555558259730, 
frequency=frequency@entry=0x55555825982c, 
    channels=channels@entry=0x555558259828, 
samples=samples@entry=0x7fff8f7fdc4c) at mlt_frame.c:750
#17 0x00007ffff66d50b2 in consumer_read_ahead_thread (arg=0x55555824f550) at 
mlt_consumer.c:873
#18 0x000055555585130d in RenderThread::run (this=0x7fff997333a0) at 
/build/kdenlive-16.04.3/src/monitor/glwidget.cpp:1230
#19 0x00007ffff0718808 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007fffec6dd464 in start_thread (arg=0x7fff8f7fe700) at 
pthread_create.c:333
#21 0x00007fffefb1630d in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:109
(gdb) up
#1  0x00007fffd1eb6e9b in ff_filter_frame_framed 
(link=link@entry=0x7fff9d362f60, frame=0x7fff9cf08520) at 
src/libavfilter/avfilter.c:1125
1125        ret = filter_frame(link, out);
(gdb) p filter_frame
$1 = (int (*)(AVFilterLink *, AVFrame *)) 0x7fffd1e8fe00 <filter_frame>
(gdb) p *link
$2 = {src = 0x7fff9cbe4ae0, srcpad = 0x7fff9c00c4a0, dst = 0x7fff9cfebae0, 
dstpad = 0x7fff9cbfabe0, type = AVMEDIA_TYPE_AUDIO, w = 0, h = 0, 
sample_aspect_ratio = {num = 0, den = 0}, channel_layout = 3, 
  sample_rate = 48000, format = 9, time_base = {num = 1, den = 48000}, 
in_formats = 0x0, out_formats = 0x0, in_samplerates = 0x0, out_samplerates = 
0x0, in_channel_layouts = 0x0, out_channel_layouts = 0x0, 
  request_samples = 0, init_state = AVLINK_INIT, graph = 0x0, current_pts = 
-9223372036854775808, current_pts_us = -9223372036854775808, age_index = 0, 
frame_rate = {num = 0, den = 0}, partial_buf = 0x0, 
  partial_buf_size = 0, min_samples = 0, max_samples = 0, status = 0, channels 
= 2, flags = 0, frame_count = 0, video_frame_pool = 0x0, frame_wanted_in = 0, 
frame_wanted_out = 0, hw_frames_ctx = 0x0}
(gdb) p *out
$3 = {data = {0x7fff9cf44120 "", 0x7fff9d3f9d80 "", 0x0, 0x0, 0x0, 0x0, 0x0, 
0x0}, linesize = {15616, 0, 0, 0, 0, 0, 0, 0}, extended_data = 0x7fff9cf08520, 
width = 0, height = 0, nb_samples = 1920, format = 9, 
  key_frame = 1, pict_type = AV_PICTURE_TYPE_NONE, sample_aspect_ratio = {num = 
0, den = 1}, pts = 66677760, pkt_pts = -9223372036854775808, pkt_dts = 
-9223372036854775808, coded_picture_number = 0, 
  display_picture_number = 0, quality = 0, opaque = 0x0, error = {0, 0, 0, 0, 
0, 0, 0, 0}, repeat_pict = 0, interlaced_frame = 0, top_field_first = 0, 
palette_has_changed = 0, reordered_opaque = 0, 
  sample_rate = 48000, channel_layout = 3, buf = {0x7fff9d41c000, 
0x7fff9d3a50c0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, extended_buf = 0x0, 
nb_extended_buf = 0, side_data = 0x0, nb_side_data = 0, flags = 0, 
  color_range = AVCOL_RANGE_UNSPECIFIED, color_primaries = 
AVCOL_PRI_UNSPECIFIED, color_trc = AVCOL_TRC_UNSPECIFIED, colorspace = 
AVCOL_SPC_UNSPECIFIED, chroma_location = AVCHROMA_LOC_UNSPECIFIED, 
  best_effort_timestamp = -9223372036854775808, pkt_pos = -1, pkt_duration = 0, 
metadata = 0x0, decode_error_flags = 0, channels = 2, pkt_size = -1, 
qscale_table = 0x0, qstride = 0, qscale_type = 0, 
  qp_table_buf = 0x0, hw_frames_ctx = 0x0}
(gdb) q
A debugging session is active.

        Inferior 1 [process 18831] will be killed.

Quit anyway? (y or n) y

Reply via email to