LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-03-2016, 11:40 AM   #1
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
VLC 2.2.1 on current: 32-bit OK, segfault on 64-bit


Hi,

I just built VLC 2.2.1 on Slackware -current, on 32-bit as well as on 64-bit with multilib installed. Here's what I have so far.

1. Both version built perfectly.

2. The 32-bit version runs perfectly.

3. The 64-bit version immediately segfaults.

Here are the SlackBuild, sources and patches I used: they're pretty much Matteo Bernardini's unmodified source from his Github repo:

http://www.microlinux.fr/microlinux/...vlc.SlackBuild

Since I have a multilib system, I tried rebuilding it with the following modification:

Code:
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \
./configure \
  --prefix=/usr \
Note: I only uploaded the previous version of the SlackBuild, so this is only a local test.

This time I have a slight improvement. VLC starts up and I see the GUI... but as soon as I try to open a file with it, it segfaults again.

Any suggestions?

Niki
 
Old 01-03-2016, 11:55 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,109

Rep: Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178
Hi Niki,

I just tried to build vlc with all the dependencies (included a full-featured ffmpeg) on a slackware64-current install (no multilib) using my unsupported repository for current and all went well: I just excluded avahi from the stuff I had listed in vlc.info's REQUIRED because I just can't stand it

I also tried using the resulting package with some movies encoded with different codecs and they played fine too with no segfaults.

frankly I don't know what went wrong with your package.
 
Old 01-03-2016, 12:40 PM   #3
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,670

Rep: Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786
one of the deps requires changes due to multilib setup?
 
Old 01-03-2016, 01:19 PM   #4
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Original Poster
Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Quote:
Originally Posted by willysr View Post
one of the deps requires changes due to multilib setup?
I've also come to that conclusion. Only to wonder how I could possibly find the needle in the haystack.
 
Old 01-03-2016, 02:45 PM   #5
moesasji
Member
 
Registered: May 2008
Distribution: Slackware Current / OpenBSD
Posts: 322

Rep: Reputation: 104Reputation: 104
Quote:
Originally Posted by kikinovak View Post
I've also come to that conclusion. Only to wonder how I could possibly find the needle in the haystack.
It looks like a pointer bug to me as valgrind shows a memory read at address 0x0 when vlc segfaults. See:

Code:
==1210== Invalid read of size 8
==1210==    at 0x40131A0: __tls_get_addr (in /lib64/ld-2.22.so)
==1210==    by 0x339B5EF2: ??? (in /usr/lib64/libpixman-1.so.0.33.6)
==1210==    by 0x33971828: pixman_image_composite32 (in /usr/lib64/libpixman-1.so.0.33.6)
==1210==    by 0x33674AA4: ??? (in /usr/lib64/libcairo.so.2.11400.6)
==1210==    by 0x336B73F0: ??? (in /usr/lib64/libcairo.so.2.11400.6)
==1210==    by 0x336AA22F: ??? (in /usr/lib64/libcairo.so.2.11400.6)
==1210==    by 0x336AAC09: ??? (in /usr/lib64/libcairo.so.2.11400.6)
==1210==    by 0x336ABA52: ??? (in /usr/lib64/libcairo.so.2.11400.6)
==1210==    by 0x33668A27: ??? (in /usr/lib64/libcairo.so.2.11400.6)
==1210==    by 0x33679546: ??? (in /usr/lib64/libcairo.so.2.11400.6)
==1210==    by 0x336AEAD6: ??? (in /usr/lib64/libcairo.so.2.11400.6)
==1210==    by 0x3367093B: ??? (in /usr/lib64/libcairo.so.2.11400.6)
==1210==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==1210== 
==1210== 
==1210== Process terminating with default action of signal 11 (SIGSEGV)
==1210==  Access not within mapped region at address 0x0
==1210==    at 0x40131A0: __tls_get_addr (in /lib64/ld-2.22.so)
==1210==    by 0x339B5EF2: ??? (in /usr/lib64/libpixman-1.so.0.33.6)
==1210==    by 0x33971828: pixman_image_composite32 (in /usr/lib64/libpixman-1.so.0.33.6)
==1210==    by 0x33674AA4: ??? (in /usr/lib64/libcairo.so.2.11400.6)
==1210==    by 0x336B73F0: ??? (in /usr/lib64/libcairo.so.2.11400.6)
==1210==    by 0x336AA22F: ??? (in /usr/lib64/libcairo.so.2.11400.6)
==1210==    by 0x336AAC09: ??? (in /usr/lib64/libcairo.so.2.11400.6)
==1210==    by 0x336ABA52: ??? (in /usr/lib64/libcairo.so.2.11400.6)
==1210==    by 0x33668A27: ??? (in /usr/lib64/libcairo.so.2.11400.6)
==1210==    by 0x33679546: ??? (in /usr/lib64/libcairo.so.2.11400.6)
==1210==    by 0x336AEAD6: ??? (in /usr/lib64/libcairo.so.2.11400.6)
==1210==    by 0x3367093B: ??? (in /usr/lib64/libcairo.so.2.11400.6)
I don't really know how to read this output from valgrind, but my guess would be that it relates to a problem with cairo.

btw) I don't see why VLC would use multilib just to open a file-open menu; but if so it might be that cairomm requires a compat32?
 
Old 01-04-2016, 12:18 AM   #6
andrew.46
Senior Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 1,365

Rep: Reputation: 493Reputation: 493Reputation: 493Reputation: 493Reputation: 493
Probably not much help but I run the development version of vlc on 64bit -current multilib with no patches. (Using my own SlackBuild). And no seg faults there but I guess this is a long way down the track from the version that you are building.

You can get some odd results if the config files are screwed and often this helps:

Code:
cvlc --reset-config && cvlc --reset-plugins-cache
a very outside chance....

Last edited by andrew.46; 01-04-2016 at 12:21 AM.
 
Old 01-04-2016, 10:03 AM   #7
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Original Poster
Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
I've solved the problem by removing VLC and replacing it by UMPlayer. VLC is a nice multimedia, but it's a PITA to build and a nightmare to debug. Whenever I feel the need for it again, I'll just use Eric's statically built package.

Cheers,

Niki
 
Old 01-05-2016, 09:15 AM   #8
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by kikinovak View Post
I've solved the problem by removing VLC and replacing it by UMPlayer.
Might I suggest SMPlayer over UMPlayer? UMPlayer was originally a fork of SMPlayer because development of it ceased in 2009. However, the opposite is now true. UMPlayer hasn't been updated since 2011 while SMPlayer development started again in 2013 and is now actively maintained. I also prefer the UI of SMPlayer, however, it is themeable. There is also a SlackBuild on SBo for it.

SMPlayer also has support for mpv, for those who prefer it over mplayer.
 
4 members found this post helpful.
Old 01-05-2016, 04:59 PM   #9
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Original Poster
Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Quote:
Originally Posted by bassmadrigal View Post
Might I suggest SMPlayer over UMPlayer? UMPlayer was originally a fork of SMPlayer because development of it ceased in 2009. However, the opposite is now true. UMPlayer hasn't been updated since 2011 while SMPlayer development started again in 2013 and is now actively maintained. I also prefer the UI of SMPlayer, however, it is themeable. There is also a SlackBuild on SBo for it.

SMPlayer also has support for mpv, for those who prefer it over mplayer.
I hesitated over the two and decided to go for UMPlayer. SMplayer likes to nag with updates and does strange thinks like opening Firefox on the SMplayer homepage when you open your first video. I think with MPlayer frontends you have to go not for the best, but for the lesser evil.
 
Old 01-05-2016, 05:11 PM   #10
_gin
Member
 
Registered: Aug 2012
Distribution: Oracle Linux
Posts: 106

Rep: Reputation: Disabled
@kikinovak

In 2013, the Smplayer team did release a corrected umplayer version, released as umplayer-0.98.2 .

Did you give it a try?

http://smplayer.sourceforge.net/fr/umplayer
 
1 members found this post helpful.
Old 01-05-2016, 05:58 PM   #11
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Original Poster
Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Quote:
Originally Posted by _gin View Post
@kikinovak

In 2013, the Smplayer team did release a corrected umplayer version, released as umplayer-0.98.2 .

Did you give it a try?

http://smplayer.sourceforge.net/fr/umplayer
Nope. Apparently, some developers love to play hide-and-seek with their sources.
 
Old 01-06-2016, 01:16 PM   #12
Diantre
Member
 
Registered: Jun 2011
Distribution: Slackware
Posts: 515

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by kikinovak View Post
SMplayer likes to nag with updates and does strange thinks like opening Firefox on the SMplayer homepage when you open your first video. I think with MPlayer frontends you have to go not for the best, but for the lesser evil.
That behavior can be disabled in SMPlayer. Go to "Preferences -> Updates" and uncheck the two options there, "Check for updates" and "Open an informative page after an upgrade". And the evil goes away...

Also, if you prefer, it's possible to change the configuration file instead. Edit ~/.config/smplayer/smplayer.ini and look for these values:

Code:
[smplayer]
version=0.8.4
check_for_new_version=true
stable_version=15.9.0
check_if_upgraded=false

[update_checker]
checked_date="@Variant(\0\0\0\xe\0%\x7f,)"
last_known_version=15.11.0.7247
enabled=false
days_to_check=7
Setting the values in bold to false should stop the nagging.
 
4 members found this post helpful.
Old 01-06-2016, 02:06 PM   #13
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by Diantre View Post
Also, if you prefer, it's possible to change the configuration file instead. Edit ~/.config/smplayer/smplayer.ini and look for these values:

Code:
[smplayer]
version=0.8.4
check_for_new_version=true
stable_version=15.9.0
check_if_upgraded=false

[update_checker]
checked_date="@Variant(\0\0\0\xe\0%\x7f,)"
last_known_version=15.11.0.7247
enabled=false
days_to_check=7
Setting the values in bold to false should stop the nagging.
If Niki wants to use smplayer due to it being newer and actively maintained, it might be worth trying to change the values before generating the package. I don't have access to the code right now, but you could probably change the default values in the code itself with a sed in the SlackBuild; then you don't need to change every individual user's config.ini files after they started the app.
 
Old 01-06-2016, 03:49 PM   #14
Nille_kungen
Member
 
Registered: Jul 2005
Distribution: Slackware64-current
Posts: 587

Rep: Reputation: 201Reputation: 201Reputation: 201
You can also remove checking for updates in GUI Options>Preferences>Updates just tick out the boxes there.
"Check for updates" box is the update_checker enabled option in the config file.
"Open an informative page after an upgrade" box is the check_if_upgraded option in the config file.
 
Old 01-06-2016, 06:31 PM   #15
Diantre
Member
 
Registered: Jun 2011
Distribution: Slackware
Posts: 515

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by bassmadrigal View Post
If Niki wants to use smplayer due to it being newer and actively maintained, it might be worth trying to change the values before generating the package. I don't have access to the code right now, but you could probably change the default values in the code itself with a sed in the SlackBuild; then you don't need to change every individual user's config.ini files after they started the app.
Yes, modifying the source is a possibility. Another approach would be to put a bare-bones .config/smplayer/smplayer.ini in /etc/skel, so every new user in the system get a default configuration. But that's just an idea, I haven't actually test it and I don't really know if this would work for Niki.
 
  


Reply

Tags
vlc



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
•Red Hat Enterprise Linux 5 (UL6+) (32-bit. 64 bit supported in 32-bit mode) download oylf1985 Linux - Newbie 13 04-08-2019 12:55 PM
[SOLVED] New kernel in -current (32 bit, 64 bit) and in 14.1( 64 bit) hitest Slackware 24 03-08-2014 10:10 AM
Can't find 32 bit libs to run 32 bit prog on 64 bit CentOS homer_3 Linux - Distributions 2 09-30-2013 08:45 PM
[SOLVED] Installing 32 bit RPMs on 64 bit Linux conflicts with 64 bit packages gheibia Linux - Server 1 08-18-2011 01:33 AM
Has anyone installed a 32-bit debian system to replace their current 64-bit system? BigVig Debian 2 06-27-2008 10:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration