LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-07-2017, 09:54 AM   #1
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
Slackware current - MPlayer + ffmpeg-3.3 segfault


I noticed that ffmpeg-3.3 was added to current and as I have been building both MPlayer and ffmpeg myself for a while I noticed that it now segfaults with ffmpeg newer than 3.2 when switching between videos in a playlist. So in the event anyone else will now run into this issue I thought it'd be best to mention it here since upstream doesn't seem to care.

A playlist can be made with a command like this.

Code:
find -maxdepth 1 -type f -iregex ".*\.\(flac\|mp3\|ogg\|wav\|avi\|mkv\|mp4\|ogm\|webm\)$" | sort > playlist
And then played with.

Code:
mplayer -playlist playlist
Pressing '>' for the next track a few times should reproduce it.

A backtrace for the segfault made with both ffmpeg and MPlayer built with debugging symbols.

https://pastebin.com/bFYN0DPn

An issue report for MPlayer.

https://trac.mplayerhq.hu/ticket/2324#ticket
 
Old 05-07-2017, 10:05 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
I cannot reproduce this.

Edit: OK, I spoke too soon. I have my own ffmpeg installed... so my report is null & void.
 
Old 05-07-2017, 10:18 AM   #3
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Original Poster
Rep: Reputation: Disabled
It potentially could be just me, which I guess is good for everyone else.
 
Old 05-07-2017, 10:30 AM   #4
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Original Poster
Rep: Reputation: Disabled
Actually, you got me to look at this a bit closer and I think its connected to hwdec as I can not reproduce it without it. Possibly only with nouveau? Following the directions from the nouveau documentation I installed the required firmware and configured mplayer.

~/.mplayer/config
Code:
vo=vdpau
[vo.vdpau]
vc=ffmpeg12vdpau,ffwmv3vdpau,ffvc1vdpau,ffh264vdpau,ffodivxvdpau,
nvidia-firmware (blob version doesn't seem to matter so I used what nouveau documented)
https://slackbuilds.org/repository/1...vidia-firmware

Upstream documentation
https://nouveau.freedesktop.org/wiki/VideoAcceleration/
 
Old 05-07-2017, 12:52 PM   #5
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Original Poster
Rep: Reputation: Disabled
To make this worse it the backtrace is not the same every time and it does not crash in valgrind. It also occurs with the llvmpipe here so I guess its not only nouveau. It would be helpful if someone with intel or amd hardware using the free drivers in mesa could try to reproduce this too.

MPlayer Memory map - https://pastebin.com/QSTGYUPy
gdb log 1 - https://pastebin.com/Kb75BJJ7
gdb log 2 - https://pastebin.com/VyYN5JPrin
valgrind - https://pastebin.com/ExYmAEgK
 
Old 05-08-2017, 06:57 AM   #6
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,753

Rep: Reputation: Disabled
Possibly unrelated but I had to downgrade from 3.3 > 3.2.4 because it would break often on x264/ffh264vdpau
Hard to reproduce the issue cause sometimes the file plays fine, sometimes just freezes the machine.
The same file can play perfectly and freeze the next time it's opened, and it's not just one file, I've tested about a dozen mp4 and mkv files.
 
Old 05-08-2017, 07:14 AM   #7
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
I tested this on my desktop and i can't reproduce it. Pressing ">" several times jump to the next song in the playlist.

PS: I always rebuilt ffmpeg using Slackware's ffmpeg SlackBuild script with no changes nor additional parameters since i may have more additional libraries installed from SBo that may be auto-detected by ffmpeg.
 
Old 05-08-2017, 08:10 AM   #8
SpiderTux
Member
 
Registered: Sep 2009
Distribution: Slackware64 15
Posts: 32

Rep: Reputation: 17
No problem here with clean current-May.6.2017
 
Old 05-08-2017, 11:21 AM   #9
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Original Poster
Rep: Reputation: Disabled
Thanks for the additional tests. I guess it seems likely there is something specific in my setup causing this. I can try bisecting ffmpeg when I have a chance to see where this started...

Quote:
Originally Posted by elcore View Post
Possibly unrelated but I had to downgrade from 3.3 > 3.2.4 because it would break often on x264/ffh264vdpau
Hard to reproduce the issue cause sometimes the file plays fine, sometimes just freezes the machine.
The same file can play perfectly and freeze the next time it's opened, and it's not just one file, I've tested about a dozen mp4 and mkv files.
This sounds familiar, except that only MPlayer freezes/crashes for me.
 
Old 10-31-2017, 08:51 AM   #10
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Original Poster
Rep: Reputation: Disabled
This was caused by memory corruption in ffmpeg and appears to have been solved in ffmpeg-3.4.

More specifically in this commit.
https://git.videolan.org/?p=ffmpeg.g...eae06453f65668
 
1 members found this post helpful.
  


Reply



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
Slackware current 64bit dirmngr Segmentation fault(segfault) toodr Slackware 2 09-03-2015 04:40 PM
[SOLVED] Dropbear returning segfault on Slackware current 32 and 64 bits usbboot.img Jeronimo Barros Slackware 3 07-03-2013 01:26 PM
Segfault with E17 on Slackware --Current frankbell Slackware 5 03-26-2013 07:19 PM
Help me in installing ffmpeg, ffmpeg-PHP, Mplayer, Mencoder, flv2tool, LAME MP3 Encod mitesh.ever Red Hat 5 05-16-2009 12:14 PM

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

All times are GMT -5. The time now is 07:05 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