makemkvcon 1.16.5 crashes on FreeBSD

The place to discuss linux version of MakeMKV
Post Reply
Zirias
Posts: 22
Joined: Mon Apr 22, 2019 3:30 pm

makemkvcon 1.16.5 crashes on FreeBSD

Post by Zirias »

I know this isn't supported anyways, but as it's the first version just crashing on FreeBSD, I thought you might have an idea which change might have caused that. The only thing I could think of for "debugging" is a "truss" log (similar to "strace" on linux) which might at least give an idea what the process is doing before crashing:

Code: Select all

$ truss makemkvcon info disc:0
[...]
linux_newstat("/usr/local/bin/../share/MakeMKV/appdata.tar",0x7fffffffcaa0) = 0 (0x0)
linux_open("/usr/local/bin/../share/MakeMKV/appdata.tar",0x0,0644) = 8 (0x8)
linux_newfstat(8,0x7fffffffca70)		 = 0 (0x0)
linux_pread(0x8,0x7fffffffcba0,0x800,0xb1800)	 = 2048 (0x800)
linux_pread(0x8,0x7fffffffda58,0x8,0x2de00)	 = 8 (0x8)
close(8)					 = 0 (0x0)
linux_mmap2(0x0,0x801000,0x3,0x22,0xffffffffffffffff,0x0) = 34884038656 (0x81f403000)
linux_brk(0x0)					 = 9154560 (0x8bb000)
linux_brk(0x8e5000)				 = 9326592 (0x8e5000)
munmap(0x81f403000,8392704)			 = 0 (0x0)
munmap(0x81946a000,540672)			 = 0 (0x0)
linux_brk(0x0)					 = 9326592 (0x8e5000)
linux_brk(0x10e5000)				 = 17715200 (0x10e5000)
SIGNAL 11 (SIGSEGV) code=SEGV_MAPERR trapno=12 addr=0x18
linux_sys_futex(0x833428,0x80,0x0,0x0,0x0,0x839b30) ERESTART
<thread 1004878 exited>
<thread 1004879 exited>
process killed, signal = 11
(the "linux_" prefixes are used by FreeBSD to distinguish Linux emulation syscalls from regular ones…)
Zirias
Posts: 22
Joined: Mon Apr 22, 2019 3:30 pm

Re: makemkvcon 1.16.5 crashes on FreeBSD

Post by Zirias »

This problem unfortunately persists in 1.16.7. So far, the last version working on FreeBSD is 1.16.4 :(
Zirias
Posts: 22
Joined: Mon Apr 22, 2019 3:30 pm

Re: makemkvcon 1.16.5 crashes on FreeBSD

Post by Zirias »

I found a somewhat obscure solution! Compiling with -DFORCE_OPENSSL_NO_EC solves the problem. Not sure whether this problem is specific to FreeBSD's Linux compatibility or maybe to the OpenSSL version in Centos 7 ... just leaving it here for reference!
Post Reply