Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#53680 - [opencv] Rebuild needed because of ffmpeg

Attached to Project: Arch Linux
Opened by Lukáš Mandák (LukeRichese) - Saturday, 15 April 2017, 23:14 GMT
Last edited by Jelle van der Waa (jelly) - Sunday, 16 April 2017, 18:39 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
Several of my applications that use opencv started crashing recently and the stack trace points to libavutil.so.55 provided by the recently updated ffmpeg package.

Rebuilding the opencv package with its current PKGBUILD solved the issue.

opencv 3.2.0-1
ffmpeg 1:3.3-1

Steps to reproduce:

In python interpreter run:
import cv2; cv2.VideoCapture('/path/to/video_file_orgif.gif')

Using any animated gif file should result in segmentation fault with following stack trace:
#0 0x00007f732740b370 in av_buffer_unref () at /usr/lib/libavutil.so.55
#1 0x00007f7327416426 in av_frame_unref () at /usr/lib/libavutil.so.55
#2 0x00007f732e871818 in () at /usr/lib/libopencv_videoio.so.3.2
#3 0x00007f732e871a10 in () at /usr/lib/libopencv_videoio.so.3.2
#4 0x00007f732e871c29 in cvCreateFileCapture_FFMPEG () at /usr/lib/libopencv_videoio.so.3.2
#5 0x00007f732e874371 in () at /usr/lib/libopencv_videoio.so.3.2
#6 0x00007f732e856e5d in cvCreateFileCaptureWithPreference () at /usr/lib/libopencv_videoio.so.3.2
#7 0x00007f732e857e9a in cv::VideoCapture::open(cv::String const&, int) () at /usr/lib/libopencv_videoio.so.3.2
#8 0x00007f732e857fbe in cv::VideoCapture::VideoCapture(cv::String const&) () at /usr/lib/libopencv_videoio.so.3.2
#9 0x00007f7337bc6bdd in () at /usr/lib/python2.7/site-packages/cv2.so
This task depends upon

Closed by  Jelle van der Waa (jelly)
Sunday, 16 April 2017, 18:39 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in 3.2.0-2
Comment by Tyler Rhodes (tylerrhodes8Jy) - Sunday, 16 April 2017, 15:20 GMT
Up for this

GDB:
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffd9293700 (LWP 1744)]

Thread 1 "a.out" received signal SIGSEGV, Segmentation fault.
0x00007fffe9497370 in av_buffer_unref () from /usr/lib/libavutil.so.55

Loading...