INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Segmentation Violation on EL 7  (Read 4581 times)

bus-error

  • Recent member
  • *
  • Posts: 5
Segmentation Violation on EL 7
« on: September 25, 2014, 04:35:52 pm »

Hi

I'm trying to get MC20 running on Enterprise Linux 7.0. I think I have all the dependencies installed:

[bashford@localhost Downloads]$ ldd /usr/bin/mediacenter20
   linux-gate.so.1 =>  (0xf7757000)
   libcryptlib.so => /usr/lib/jriver/Media Center 20/libcryptlib.so (0xf73ea000)
   libpthread.so.0 => /lib/libpthread.so.0 (0xf73bb000)
   librt.so.1 => /lib/librt.so.1 (0xf73b2000)
   libdl.so.2 => /lib/libdl.so.2 (0xf73ad000)
   libboost_regex.so.1.54.0 => /usr/lib/jriver/Media Center 20/libboost_regex.so.1.54.0 (0xf72f9000)
   libX11.so.6 => /lib/libX11.so.6 (0xf71c0000)
   libuuid.so.1 => /lib/libuuid.so.1 (0xf71ba000)
   libstdc++.so.6 => /lib/libstdc++.so.6 (0xf70ce000)
   libm.so.6 => /lib/libm.so.6 (0xf708b000)
   libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xf7070000)
   libc.so.6 => /lib/libc.so.6 (0xf6eb4000)
   /lib/ld-linux.so.2 (0xf7758000)
   libxcb.so.1 => /lib/libxcb.so.1 (0xf6e92000)
   libXau.so.6 => /lib/libXau.so.6 (0xf6e8e000)


But when I come to run, I just get a segmentation violation:

[bashford@localhost Downloads]$ /usr/bin/mediacenter20
Segmentation fault (core dumped)


I'm using 20.0.17 and version 20-17 of RemyJ's deb to rpm re-packaging script.

I've searched the forum but cannot find any similar occurrences of this problem. Does anyone have any ideas where the problem may be or things I can do to try and narrow this down?

Many thanks

Bruce
Logged

leezer3

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1587
Re: Segmentation Violation on EL 7
« Reply #1 on: September 25, 2014, 05:12:55 pm »

My immediate suspicion would be libcrypto++.so.9 - RemyJ's scripts included this as the Fedora build had issues, and I wonder if the RHEL build hasn't caught up yet.

Please post the full segfault output and we can have a better look.

-Leezer-
Logged

RemyJ

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1249
Re: Segmentation Violation on EL 7
« Reply #2 on: September 25, 2014, 05:14:46 pm »

Try an ldd on each of the shared libraries in /usr/lib/jriver/Media\ Center\ 20/ and make sure all their dependencies are met.

You could also run mediacenter20 under gdb and get the stack trace.  
Logged
Fedora 40 x86_64 Xfce

RemyJ

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1249
Re: Segmentation Violation on EL 7
« Reply #3 on: September 25, 2014, 05:19:00 pm »

My immediate suspicion would be libcrypto++.so.9 - RemyJ's scripts included this as the Fedora build had issues, and I wonder if the RHEL build hasn't caught up yet.

-Leezer-

Actually I don't install that file anymore since MC ships its own libcryptlib.so now.

Logged
Fedora 40 x86_64 Xfce

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5233
  • "Linux Merit Badge" Recipient
Re: Segmentation Violation on EL 7
« Reply #4 on: September 25, 2014, 05:54:57 pm »

There's a new dependency for versions after 20.0.13 for one of the several libgl packages that contain libGL.so.1 (I don't use RHEL, but lib32-mesa-libgl is one such package on my distro)

http://yabb.jriver.com/interact/index.php?topic=91638.msg630530#msg630530

Not having that dependency satisfied will cause segfaults.

Additionally, typically trying to run MC without an X server running or with the DISPLAY environment variable set incorrectly will also cause segfaults (e.g. on an incorrectly configured headless system)
Logged

RemyJ

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1249
Re: Segmentation Violation on EL 7
« Reply #5 on: September 25, 2014, 06:06:49 pm »

I forgot that... it's mesa-libGL for Fedora/RedHat.

I'll add it to the spec file.
Logged
Fedora 40 x86_64 Xfce

bus-error

  • Recent member
  • *
  • Posts: 5
Re: Segmentation Violation on EL 7
« Reply #6 on: October 04, 2014, 06:17:08 am »

Hi

Thanks everyone for your help and suggestions, sorry for the delay getting back to you. I'm having some problems with the RPMfusion repository as some of the i686 packages conflict with x86_64 packages that I already have installed from the NUX repository. Anyhow, I've worked around this and have i686 versions of libGL, librtmp and libmp3lame installed and checked using ldd that the dependencies for each are satisfied. Unfortunately, when I start mediacenter20, I still get an immediate segmentation violation. Using gdb shows that the dump actually occurs in the standard C-library:

[bashford@bashford_gb-el7 ~]$ gdb mediacenter20
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-51.el7
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-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/mediacenter20...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/mediacenter20
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0xf787d59f in __memcpy_ssse3_rep () from /lib/libc.so.6
Missing separate debuginfos, use: debuginfo-install MediaCenter-20.0.17-17.el7.i686
(gdb) bt
#0  0xf787d59f in __memcpy_ssse3_rep () from /lib/libc.so.6
#1  0x08a2a012 in ?? ()
#2  0x08a69888 in ?? ()
#3  0x0805f19f in ?? ()
#4  0x08be8aae in ?? ()
#5  0x0805619d in ?? ()
#6  0xf7751933 in __libc_start_main () from /lib/libc.so.6
#7  0x08056971 in ?? ()
(gdb) quit

I'm stumped at this point. Does anyone have any suggestions?

Thanks

Bruce
Logged

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5233
  • "Linux Merit Badge" Recipient
Re: Segmentation Violation on EL 7
« Reply #7 on: October 04, 2014, 08:35:57 am »

Just a a guess based on the debug info, but it looks like the fault is SSSE3 related; your processor does support SSSE3, right?  Some older processors or lower powered modern processors don't support the instruction set, and last I read, it's a hard requirement for MC.
Logged

bus-error

  • Recent member
  • *
  • Posts: 5
Re: Segmentation Violation on EL 7
« Reply #8 on: October 04, 2014, 04:39:53 pm »

mwillems: Thanks for the advice, I can see what you are saying. The processor is an 18 month old core-i7 so I wouldn't expect a problem with SSSE3. Checking the flags in /etc/proc/cpuinfo confirms that SSSE3 is available.
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13813
Re: Segmentation Violation on EL 7
« Reply #9 on: October 07, 2014, 05:25:49 pm »

I think it's a red herring. MC doesn't using anything past SSE2.
You are probably missing some library.
You can do ldd /usr/lib/jriver/Media\ Center\ 20/*.so
and
ldd /usr/lib/jriver/Media\ Center\ 20/Plugins/*.so

and look for missing stuff.
Since this is a debian package there's not much else I can suggest.
Logged

bus-error

  • Recent member
  • *
  • Posts: 5
Re: Segmentation Violation on EL 7
« Reply #10 on: October 09, 2014, 06:26:49 am »

Bob,

Thanks for the tip... yes there were some major dependencies still missing (alsa, gtk!). With this sorted, MC20 will now start but appears to crash with a segmentation violation as it tries to scan for a library. Gdb shows:

Code: [Select]
Program received signal SIGSEGV, Segmentation fault.
0xf59449f9 in ?? () from /usr/lib/jriver/Media Center 20/libJRReader.so
Missing separate debuginfos, use: debuginfo-install MediaCenter-20.0.17-17.el7.i686
(gdb) bt
#0  0xf59449f9 in ?? () from /usr/lib/jriver/Media Center 20/libJRReader.so
#1  0x0895c3d7 in ?? ()
#2  0x089df0f7 in ?? ()
#3  0x089df67f in ?? ()

I've double checked libJRReader.so for dependancies and all looks fine, as far as I can tell:

Code: [Select]
libJRReader.so:
linux-gate.so.1 =>  (0xf7786000)
libcryptlib.so => /usr/lib/jriver/Media Center 20/libcryptlib.so (0xf6ed8000)
libpthread.so.0 => /lib/libpthread.so.0 (0xf6ea6000)
libdl.so.2 => /lib/libdl.so.2 (0xf6ea1000)
librt.so.1 => /lib/librt.so.1 (0xf6e98000)
libuuid.so.1 => /lib/libuuid.so.1 (0xf6e91000)
libX11.so.6 => /lib/libX11.so.6 (0xf6d58000)
libboost_regex.so.1.54.0 => /usr/lib/jriver/Media Center 20/libboost_regex.so.1.54.0 (0xf6ca5000)
libstdc++.so.6 => /lib/libstdc++.so.6 (0xf6bb9000)
libm.so.6 => /lib/libm.so.6 (0xf6b76000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xf6b5a000)
libc.so.6 => /lib/libc.so.6 (0xf699f000)
/lib/ld-linux.so.2 (0xf7787000)
libxcb.so.1 => /lib/libxcb.so.1 (0xf697d000)
libXau.so.6 => /lib/libXau.so.6 (0xf6979000)

I'll take a look around the forum to see if this has happened to other people but any advice is more than welcome.

Thanks

Bruce
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13813
Re: Segmentation Violation on EL 7
« Reply #11 on: October 09, 2014, 10:36:14 am »

Make sure you are running as a regular user, not root, then delete the .jriver directory in the user home and try again.
You might be a little better off trying 20.0.20. It will need libpkit11 as an added dependency.

Logged

bus-error

  • Recent member
  • *
  • Posts: 5
Re: Segmentation Violation on EL 7
« Reply #12 on: October 10, 2014, 04:01:50 am »

Bob,

Thanks for the suggestion.

Delete ~/.jriver: CHECK
Build RPM for 20.0.20 and install: CHECK
Resolve horrid dependencies for p11-kit by using RPM from Fedora19: CHECK

Run mediacenter20: "The trial period has expired."  :'( I've tried entering my e-mail address to request an extension but get a dialogue saying "There was a problem requesting a trial extension."

I have a recent .mjr for the Windows version but understand from other posts that the Linux and Windows licences are separate. Is there anyway I can extend the trial period to continue trying to get this work?

Thanks

Bruce
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13813
Re: Segmentation Violation on EL 7
« Reply #13 on: October 10, 2014, 10:47:47 am »

Bob,

Thanks for the suggestion.

Delete ~/.jriver: CHECK
Build RPM for 20.0.20 and install: CHECK
Resolve horrid dependencies for p11-kit by using RPM from Fedora19: CHECK

Run mediacenter20: "The trial period has expired."  :'( I've tried entering my e-mail address to request an extension but get a dialogue saying "There was a problem requesting a trial extension."

I have a recent .mjr for the Windows version but understand from other posts that the Linux and Windows licences are separate. Is there anyway I can extend the trial period to continue trying to get this work?

Thanks

Bruce

Hi Bruce,
Let me check into the trial extension issue.
Bob
Logged
Pages: [1]   Go Up