makemkvcon causes segfaults in orc

The place to discuss linux version of MakeMKV
darkphader
Posts: 10
Joined: Fri Feb 22, 2013 7:41 pm
Location: Motown
Contact:

Re: makemkvcon causes segfaults in orc

Post by darkphader »

Problem still exists in 1.8.10, quite frustrating at this point.
Chewi
Posts: 22
Joined: Sun May 11, 2014 9:24 am
Location: Edinburgh, Scotland

Re: makemkvcon causes segfaults in orc

Post by Chewi »

I just hit this after updating my Gentoo system. I think glibc is almost certainly the cause, the liborc stuff is just a red herring. In my case, it actually reports libfftw3f. This really needs addressing because I suspect Ubuntu Trusty and Fedora 20 users will be hit too. I've seen one report from a Fedora 20 user here. One of those distros should be easier for Mike to test.

One user suggested setting up an older Gentoo system in a chroot but I couldn't be bothered. Instead I used debootstrap to install a base Ubuntu Saucy. I wanted to use the libaacs emulation feature so I set up a wrapper on the Gentoo system to invoke makemkvcon in the Ubuntu system. Then I just use VLC in Gentoo like normal. Works like a charm. :D

/usr/bin/makemkvcon:

Code: Select all

#!/bin/sh 

exec /mnt/makemkv/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 --library-path /mnt/makemkv/usr/lib:/mnt/makemkv/lib/x86_64-linux-gnu:/mnt/makemkv/usr/lib/x86_64-linux-gnu /mnt/makemkv/usr/bin/makemkvcon "${@}"
kevmitch
Posts: 72
Joined: Mon Mar 11, 2013 6:35 am

Re: makemkvcon causes segfaults in orc

Post by kevmitch »

Stupid question, but no one else here seems to have mentioned it, but we should just confirm that this still happens after

Code: Select all

emerge --update --deep --with-bdeps=y --newuse @world
and then recompiling makemkv (unless that was already done by the above command)..
There may be some incompatible linking to old library versions going on
Chewi
Posts: 22
Joined: Sun May 11, 2014 9:24 am
Location: Edinburgh, Scotland

Re: makemkvcon causes segfaults in orc

Post by Chewi »

I already did that but without --with-bdeps=y. That option isn't likely to make a difference here.
kevmitch
Posts: 72
Joined: Mon Mar 11, 2013 6:35 am

Re: makemkvcon causes segfaults in orc

Post by kevmitch »

It may also be worth checking out "revdep-rebuild" in gentoolkit which actually checks for consistent linking. I just tried emerging makemkv 1.8.9 in my gentoo chroot and I get "Application Failed to Initialize", but no segfault. Below is the back trace if I interrupted at the dialogue window before hitting "OK", not sure if that's useful. Gentoo's using glibc 2.17. There are no such problemson my debian host eglibc 2.18. I was going to try and build makemkv manually, but I don't know what pacakge has moc-qt4.

Code: Select all

$ gdb /opt/bin/makemkv
GNU gdb (Gentoo 7.6.2 p1) 7.6.2
Copyright (C) 2013 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-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /opt/bin/makemkv...(no debugging symbols found)...done.
(gdb) run
Starting program: /opt/bin/makemkv 
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
^C
Program received signal SIGINT, Interrupt.
0x00007ffff7b14060 in poll () from /lib64/libc.so.6
(gdb) where
#0  0x00007ffff7b14060 in poll () from /lib64/libc.so.6
#1  0x00007ffff5547e4c in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007ffff5547f74 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007ffff6799726 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007ffff6d35afe in ?? () from /usr/lib64/qt4/libQtGui.so.4
#5  0x00007ffff676b35f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#6  0x00007ffff676b5e8 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#7  0x00007ffff7119918 in QDialog::exec() () from /usr/lib64/qt4/libQtGui.so.4
#8  0x00007ffff7138b02 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#9  0x00007ffff7138bcf in QMessageBox::critical(QWidget*, QString const&, QString const&, QFlags<QMessageBox::StandardButton>, QMessageBox::StandardButton) ()
   from /usr/lib64/qt4/libQtGui.so.4
#10 0x0000000000411e04 in ?? ()
#11 0x00007ffff7a54bf5 in __libc_start_main () from /lib64/libc.so.6
#12 0x000000000040f9f9 in ?? ()
(gdb) 
rdoac
Posts: 1
Joined: Thu May 15, 2014 12:17 am

Re: makemkvcon causes segfaults in orc

Post by rdoac »

I'm also getting this on Gentoo.

[1988948.120557] makemkvcon[9413]: segfault at 95b82000 ip 95b82000 sp 95a9cd8c error 4


Anyone have a solution yet?
darkphader
Posts: 10
Joined: Fri Feb 22, 2013 7:41 pm
Location: Motown
Contact:

Re: makemkvcon causes segfaults in orc

Post by darkphader »

Asking my Magic 8-ball... "Is this ever going to be fixed?".
darkphader
Posts: 10
Joined: Fri Feb 22, 2013 7:41 pm
Location: Motown
Contact:

Re: makemkvcon causes segfaults in orc

Post by darkphader »

Problem still exits with 1.8.11 even though the release notes seem to indicate this was resolved. :-(
jesterchen
Posts: 1
Joined: Fri Jun 27, 2014 1:47 pm

Re: makemkvcon causes segfaults in orc

Post by jesterchen »

I too experience these problems with 1.8.11 under gentoo. I created another core+ldd-dump, just uploading them and sending them to the devs... perhaps we'll see 1.8.12 soon.
Tux12Fun
Posts: 3
Joined: Thu Jun 12, 2014 9:23 am

Re: makemkvcon causes segfaults in orc

Post by Tux12Fun »

Hi,

I also hit this bug. MakeMKV Version: 1.8.11

Code: Select all

makemkvcon[6604]: segfault at 0 ip 00007faba66e5002 sp 00007fab8673f868 error 4 in libogg.so.0.8.2[7faba66e5000+6000]

*  media-video/makemkv
      Latest version available: 1.8.11
      Latest version installed: 1.8.11
      Size of files: 16.051 KiB
      Homepage:      http://www.makemkv.com/
      Description:   Tool for ripping Blu-Ray, HD-DVD and DVD discs and copying content to a Matroska container
      License:       LGPL-2.1 MPL-1.1 MakeMKV-EULA openssl

*  media-libs/libogg
      Latest version available: 1.3.2
      Latest version installed: 1.3.2
      Size of files: 398 KiB
      Homepage:      http://xiph.org/ogg/
      Description:   the Ogg media file format library
      License:       BSD

*  sys-libs/glibc
      Latest version available: 2.19-r1
      Latest version installed: 2.19-r1
      Size of files: 19.751 KiB
      Homepage:      http://www.gnu.org/software/libc/libc.html
      Description:   GNU libc6 (also called glibc2) C library
      License:       LGPL-2.1+ BSD HPND ISC inner-net rc PCRE

equery uses libogg
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for media-libs/libogg-1.3.2:
 U I
 - - abi_x86_32  : 32-bit (x86) libraries
 - - static-libs : Build static versions of dynamic libraries as well

ls -lt /usr/lib64/libogg.so*
-rwxr-xr-x 1 root root 26640  3. Aug 20:41 /usr/lib64/libogg.so.0.8.2
lrwxrwxrwx 1 root root    15  3. Aug 20:41 /usr/lib64/libogg.so -> libogg.so.0.8.2
lrwxrwxrwx 1 root root    15  3. Aug 20:41 /usr/lib64/libogg.so.0 -> libogg.so.0.8.2

ldd /usr/lib64/libogg.so
        linux-vdso.so.1 (0x00007fff45923000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f578c110000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f578c6f3000)

uname -a
Linux rechner1 3.15.5-gentoo #1 SMP Thu Jul 17 18:31:08 CEST 2014 x86_64 Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz GenuineIntel GNU/Linux

darkphader
Posts: 10
Joined: Fri Feb 22, 2013 7:41 pm
Location: Motown
Contact:

Re: makemkvcon causes segfaults in orc

Post by darkphader »

Tux12Fun wrote:Hi,

I also hit this bug. MakeMKV Version: 1.8.11
See: http://forums.gentoo.org/viewtopic-t-98 ... ight-.html

I rebuilt glibc without "export libc_cv_hashstyle=no" to solve this issue. There are other workarounds as well (LD_PRELOAD).
Chewi
Posts: 22
Joined: Sun May 11, 2014 9:24 am
Location: Edinburgh, Scotland

Re: makemkvcon causes segfaults in orc

Post by Chewi »

Worry not, I've already discovered the cause on Gentoo and have told Mike about it. He says it should be fixed in the next release.
Post Reply