View previous topic :: View next topic |
Author |
Message |
aerofly5 n00b
Joined: 03 Sep 2012 Posts: 11
|
Posted: Sun Sep 01, 2013 7:33 pm Post subject: libav* libraries cause segfaults or failed compiles |
|
|
I'm having an issue where a lot of packages that references libavcodec fails to compile and a lot of packages that use libavutils segfault. This started happening after I replaced ffmpeg-1.2.2 with libav-9.8. I have since re-installed ffmpeg (v1.2.3) and tried deleting the libraries and doing a revdep-rebuild, rolling back a few versions, compiling libav/ffmpeg manually etc.
Under both libav and ffmpeg, compiles end in error with messages along the lines of Code: | avcodec.c: In function 'ffmpeg_OpenCodec':
avcodec.c: error: 'CODEC_ID_x' undeclared (first use in this function) | where 'x' is a codec (eg "VORBIS", "AAC")
After many (successful) recompiles, mpv spits out the same segfault error every time
Code: | GNU gdb (Gentoo 7.5.1 p2) 7.5.1
Copyright (C) 2012 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 /usr/bin/mpv...Reading symbols from /usr/lib64/debug/usr/bin/mpv.debug...done.
done.
(gdb) run
Starting program: /usr/bin/mpv Videos/Electric\ Shock.mp4
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".
Playing Videos/Electric Shock.mp4.
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff38f57a7 in av_dict_get () from /usr/lib64/libavutil.so.52
(gdb) bt
#0 0x00007ffff38f57a7 in av_dict_get () from /usr/lib64/libavutil.so.52
#1 0x000000000042bc38 in handle_stream (i=0, demuxer=0x78e220) at demux/demux_lavf.c:495
#2 add_new_streams (demuxer=demuxer@entry=0x78e220) at demux/demux_lavf.c:511
#3 0x000000000042ce80 in demux_open_lavf (demuxer=0x78e220, check=DEMUX_CHECK_NORMAL) at demux/demux_lavf.c:633
#4 0x000000000042aff5 in open_given_type (check=DEMUX_CHECK_NORMAL, params=0x0, stream=0x7a08e0, desc=0x4b7e40 <demuxer_desc_lavf>, opts=0x732f40) at demux/demux.c:552
#5 demux_open (stream=0x7a08e0, force_format=<optimized out>, params=params@entry=0x0, opts=opts@entry=0x732f40) at demux/demux.c:617
#6 0x0000000000412724 in play_current_file (mpctx=<optimized out>) at mpvcore/mplayer.c:4268
#7 play_files (mpctx=<optimized out>) at mpvcore/mplayer.c:4519
#8 mpv_main (argv=<optimized out>, argc=<optimized out>) at mpvcore/mplayer.c:4759
#9 main (argc=<optimized out>, argv=<optimized out>) at mpvcore/mplayer.c:4771 |
Plz halp? |
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Sun Sep 01, 2013 8:26 pm Post subject: |
|
|
Out of curiosity, pastebin your make.conf. |
|
Back to top |
|
|
aerofly5 n00b
Joined: 03 Sep 2012 Posts: 11
|
Posted: Sun Sep 01, 2013 8:35 pm Post subject: |
|
|
make.conf:
Code: | CFLAGS="-O2 -pipe -march=core-avx-i -g"
CXXFLAGS="${CFLAGS}"
USE="pulseaudio X acpi cjk flac fontconfig sse sse2 sse3 threads vdpau xv zsh-completion avx ssse3 mmx mmxext sse4_1 wayland egl xinerama vaapi -libav ffmpeg"
VIDEO_CARDS="intel i915 i965 radeon"
source "/var/lib/layman/make.conf"
FEATURES="splitdebug" |
I added the ffmpeg and libav flags after the problem occurred |
|
Back to top |
|
|
aerofly5 n00b
Joined: 03 Sep 2012 Posts: 11
|
Posted: Tue Sep 03, 2013 12:39 pm Post subject: |
|
|
I just got this backtrace trying to play a CD
Code: | (gdb) run
Starting program: /usr/bin/mpv cdda://
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".
Playing cdda://.
Found audio CD with 21 tracks.
CD-Text (CD):
Title: 'Halo 2 Soundtrack'
Performer: 'Various'
Detected file format: Uncompressed audio
[stream] Audio (+) --aid=1 (mp-pcm)
Video: no video
Track 1
CD-Text (track):
Title: 'Halo Theme Mjolnir Mix'
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff2c322ef in av_packet_split_side_data (pkt=pkt@entry=0x7fffffffda10) at /var/tmp/portage/media-video/ffmpeg-1.2.3/work/ffmpeg-1.2.3/libavcodec/avpacket.c:266
266 /var/tmp/portage/media-video/ffmpeg-1.2.3/work/ffmpeg-1.2.3/libavcodec/avpacket.c: No such file or directory.
(gdb) bt
#0 0x00007ffff2c322ef in av_packet_split_side_data (pkt=pkt@entry=0x7fffffffda10) at /var/tmp/portage/media-video/ffmpeg-1.2.3/work/ffmpeg-1.2.3/libavcodec/avpacket.c:266
#1 0x00007ffff2eca432 in avcodec_decode_audio4 (avctx=avctx@entry=0x79fb80, frame=0xae1e40, got_frame_ptr=got_frame_ptr@entry=0x7fffffffdafc, avpkt=avpkt@entry=0x7fffffffdb10) at /var/tmp/portage/media-video/ffmpeg-1.2.3/work/ffmpeg-1.2.3/libavcodec/utils.c:1809
#2 0x000000000041b860 in decode_new_packet (sh=0x786bf0) at audio/decode/ad_lavc.c:391
#3 decode_audio (sh_audio=sh_audio@entry=0x786bf0, buf=0xae5d80 "", minlen=minlen@entry=1, maxlen=73728) at audio/decode/ad_lavc.c:440
#4 0x000000000041bea8 in init (sh_audio=0x786bf0, decoder=<optimized out>) at audio/decode/ad_lavc.c:291
#5 0x000000000041c9a8 in init_audio_codec (decoder=0xae5c70 "mp-pcm", sh_audio=0x786bf0) at audio/decode/dec_audio.c:83
#6 init_best_audio_codec (sh_audio=0x786bf0, audio_decoders=<optimized out>) at audio/decode/dec_audio.c:145
#7 0x000000000044e7bc in reinit_audio_chain (mpctx=mpctx@entry=0x732610) at mpvcore/mplayer.c:1643
#8 0x0000000000413665 in play_current_file (mpctx=<optimized out>) at mpvcore/mplayer.c:4352
#9 play_files (mpctx=<optimized out>) at mpvcore/mplayer.c:4519
#10 mpv_main (argv=<optimized out>, argc=<optimized out>) at mpvcore/mplayer.c:4759
#11 main (argc=<optimized out>, argv=<optimized out>) at mpvcore/mplayer.c:4771 |
I am particularly confused by Code: | /var/tmp/portage/media-video/ffmpeg-1.2.3/work/ffmpeg-1.2.3/libavcodec/avpacket.c: No such file or directory. | Is this a problem with the ebuild? |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|