Composition of Motion Blur and Noise Filters causes a segfault
Steps to reproduce Using VLC 1.1.0 on Ubuntu 10.04:
- Start playing a video
- Goto Tools->Effects and Filters->Video Effects->Image modification
- Check Motion Blur
- Check Noise
VLC should now segfault.
$ gdb --args vlc film.ogv
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 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".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/vlc...Reading symbols from /usr/lib/debug/usr/bin/vlc...done.
done.
(gdb) r
Starting program: /usr/bin/vlc /home/alex/Desktop/1125_GPLv3_Better_Copyleft_for_Developers_and_Users.ogv
[Thread debugging using libthread_db enabled]
VLC media player 1.1.0 The Luggage (revision exported)
Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS")
Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE")
Warning: call to signal(13, 0x1)
[New Thread 0x7ffff510e710 (LWP 25265)]
[New Thread 0x7ffff500d710 (LWP 25266)]
[New Thread 0x7ffff4d09710 (LWP 25267)]
[Thread 0x7ffff500d710 (LWP 25266) exited]
[New Thread 0x7ffff500d710 (LWP 25268)]
Blocked: call to setlocale(6, "")
Blocked: call to sigaction(17, 0x7ffff500cb30, 0x7ffff500ca90)
Warning: call to signal(13, 0x1)
Warning: call to srand(1282140260)
Warning: call to rand()
Blocked: call to setlocale(6, "")
(process:25260): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Warning: call to signal(13, 0x1)
Warning: call to signal(13, 0x1)
Warning: call to signal(13, 0x1)
Blocked: call to setlocale(6, "")
[New Thread 0x7fffda916710 (LWP 25269)]
Warning: call to rand()
[New Thread 0x7fffd89d5710 (LWP 25270)]
Warning: call to rand()
Warning: call to rand()
[New Thread 0x7fffd7897710 (LWP 25271)]
[0x7fffec003aa0] main input error: ES_OUT_RESET_PCR called
[Thread 0x7fffd89d5710 (LWP 25270) exited]
[New Thread 0x7fffd89d5710 (LWP 25272)]
[Thread 0x7fffd7897710 (LWP 25271) exited]
[New Thread 0x7fffd7897710 (LWP 25273)]
Warning: call to rand()
[New Thread 0x7fffd23c9710 (LWP 25274)]
swScaler: pal8 is not supported as output pixel format
[0xb04820] swscale scale error: could not init SwScaler and/or allocate memory
[New Thread 0x7fffcf900710 (LWP 25275)]
[New Thread 0x7fffcd45d710 (LWP 25277)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffcf900710 (LWP 25275)]
0x00007ffff71b0392 in _int_free (av=0x7ffff74b4e40, p=0xcb3910) at malloc.c:4954
4954 malloc.c: No such file or directory.
in malloc.c
(gdb) bt
[#0](https://code.videolan.org/videolan/vlc/-/issues/0) 0x00007ffff71b0392 in _int_free (av=0x7ffff74b4e40, p=0xcb3910) at malloc.c:4954
[#1](https://code.videolan.org/videolan/vlc/-/issues/1) 0x00007ffff71b3e53 in *__GI___libc_free (mem=<value optimized out>) at malloc.c:3738
[#2](https://code.videolan.org/videolan/vlc/-/issues/2) 0x00007ffff79444a9 in picture_Delete (p_picture=0xb499a0) at video_output/vout_pictures.c:832
[#3](https://code.videolan.org/videolan/vlc/-/issues/3) 0x00007fffcc05bd9c in picture_Release (p_filter=0x7fffccbec080, p_pic=<value optimized out>)
at ../../include/vlc_picture.h:199
[#4](https://code.videolan.org/videolan/vlc/-/issues/4) CopyInfoAndRelease (p_filter=0x7fffccbec080, p_pic=<value optimized out>) at filter_picture.h:85
[#5](https://code.videolan.org/videolan/vlc/-/issues/5) Filter (p_filter=0x7fffccbec080, p_pic=<value optimized out>) at noise.c:135
[#6](https://code.videolan.org/videolan/vlc/-/issues/6) 0x00007ffff797c7b8 in filter_chain_VideoFilter (p_chain=<value optimized out>,
p_pic=0x6b6a696766666566) at misc/filter_chain.c:229
[#7](https://code.videolan.org/videolan/vlc/-/issues/7) 0x00007ffff794219a in RunThread (p_this=0x7fffec378040) at video_output/video_output.c:1125
[#8](https://code.videolan.org/videolan/vlc/-/issues/8) 0x00007ffff76c39ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
[#9](https://code.videolan.org/videolan/vlc/-/issues/9) 0x00007ffff721c6fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
[#10](https://code.videolan.org/videolan/vlc/-/issues/10) 0x0000000000000000 in ?? ()
(gdb)