FS#42079 - [handbrake] Segfault opening MKV source

Attached to Project: Community Packages
Opened by Rob Hasselbaum (Rob_H) - Tuesday, 23 September 2014, 03:04 GMT
Last edited by Evangelos Foutras (foutrelis) - Tuesday, 23 September 2014, 16:40 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Evangelos Foutras (foutrelis)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Handbrake: 0.9.9-7

After recent upgrades to dependent libraries, Handbrake crashes with a segfault trying to open any MKV source file. The specific library seems to be libdvdread, which was upgraded September 20 (4.9.9-1 -> 5.0.0-1), although related libraries were upgraded at the same time including libdvdcss, libdvdnav, and libbluray. Running Handbrake under strace produces the following output right before the crash:

open("/usr/lib/libdvdcss.so.2", O_RDONLY|O_CLOEXEC) = 25
read(25, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240\17\0\0\0\0\0\0"..., 832) = 832
fstat(25, {st_mode=S_IFREG|0755, st_size=34984, ...}) = 0
mmap(NULL, 2132360, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 25, 0) = 0x7f0e90504000
mprotect(0x7f0e9050c000, 2093056, PROT_NONE) = 0
mmap(0x7f0e9070b000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 25, 0x7000) = 0x7f0e9070b000
close(25) = 0
mprotect(0x7f0e9070b000, 4096, PROT_READ) = 0
munmap(0x7f0ea957f000, 265780) = 0
write(2, "libdvdread: Missing symbols in l"..., 71) = 71
munmap(0x7f0e90504000, 2132360) = 0
write(2, "libdvdread: Using libdvdcss vers"..., 52) = 52
stat("/home/rob/Incoming/redacted.mkv", {st_mode=S_IFREG|0644, st_size=30425981939, ...}) = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x7f0e905050a0} ---
+++ killed by SIGSEGV (core dumped) +++
Segmentation fault (core dumped)

This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Tuesday, 23 September 2014, 16:40 GMT
Reason for closing:  Fixed
Additional comments about closing:  handbrake 0.9.9-8
Comment by Evangelos Foutras (foutrelis) - Tuesday, 23 September 2014, 05:42 GMT
Thanks for the report. The issue was that Handbrake was using a bundled older version of libdvdread which was incompatible with the system libdvdcss.

handbrake 0.9.9-8 shouldn't have this problem as it uses the system provided libdvdread.

Loading...