Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 481748 - media-video/ffmpeg-0.10.8 - /bin/sh: line 1: 8923 Segmentation fault ./libavcodec/cos_tablegen sin > libavcodec/sin_tables.c
Summary: media-video/ffmpeg-0.10.8 - /bin/sh: line 1: 8923 Segmentation fault ./libav...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-20 12:35 UTC by n00dl3s
Modified: 2016-12-05 13:54 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (media-video:ffmpeg-0.10.8:20130820-115854.log,178.69 KB, text/x-log)
2013-08-20 12:36 UTC, n00dl3s
Details
emerge --info (file_481748.txt,5.25 KB, text/plain)
2013-08-20 12:37 UTC, n00dl3s
Details
build.log with -ggdb (build.log,155.52 KB, text/x-log)
2013-08-30 19:58 UTC, brent
Details

Note You need to log in before you can comment on or make changes to this bug.
Description n00dl3s 2013-08-20 12:35:33 UTC
See also: http://forums.gentoo.org/viewtopic-t-967708.html

In order to make my system a real multilib installation (by adding ABI_X86="64 32" to make.conf) and rebuilding world (-uDvaN) afterwards, emul-linux-x86-medialibs pulls in ffmpeg-0.10.8. The compile always gives a segmentation fault.
Comment 1 n00dl3s 2013-08-20 12:36:31 UTC
Created attachment 356480 [details]
build log
Comment 2 n00dl3s 2013-08-20 12:37:52 UTC
Created attachment 356482 [details]
emerge --info
Comment 3 Alexis Ballier gentoo-dev 2013-08-20 14:05:38 UTC
as stated in the forums, you should provide a backtrace
Comment 4 brent 2013-08-30 19:56:13 UTC
i'm encountering the same issue.

i attempted emerge via:

CFLAGS="-O2 -pipe -ggdb" emerge -1v =media-video/ffmpeg-0.10.8

here's the emerge --info:

maqabi ffmpeg-0.10.8 # emerge --info
Portage 2.2.1 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.17, 3.10.9-gentoo x86_64)
=================================================================
System uname: Linux-3.10.9-gentoo-x86_64-Intel-R-_Core-TM-_i7-2670QM_CPU_@_2.20GHz-with-gentoo-2.2
KiB Mem:     6017868 total,    859636 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Fri, 30 Aug 2013 06:15:01 +0000
ld GNU ld (GNU Binutils) 2.21.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r2, 3.2.5-r2, 3.3.2-r2
dev-util/cmake:           2.8.11.1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.4, 1.14
sys-devel/binutils:       2.21.1-r1, 2.22-r1, 2.22.90, 2.23, 2.23.1, 2.23.2
sys-devel/gcc:            4.5.3-r2, 4.6.3, 4.7.2-r1, 4.7.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.10 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo sunrise sabayon x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://www.cyberuse.com/gentoo/ http://gentoo.wetzlmayr.com/ http://gentoo.netnitco.net http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/sabayon /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="64bit X a52 aac aalib accessibility acl acpi akamaru alsa amd64 animgif ao applet ares async asyncns atmo automount avahi banshee bash-completion berkdb bidi bluetooth bluez bonjour bookmarks branding bzip2 cairo caps cdda cddax cddb cdinstall cdio cdr cli colordiff cpulimit cracklib crypt css cups curl cxx dbus dc1394 device-mapper dga dirac directfb disk-partition diskio djvu double-precision dri dts dv dvb dvd dvdr dvdread eds elf emboss emerald empathy encode esd evo exif extensible extra-tools extras faac faad fam fbcon fbcondecor festival ffmpeg firefox flac flash fluidsynth fontconfig freetts fuse gajim games gcrypt gdbm gedit ggi gif gimp glitz gnome gnome-keyring gnomecd gnutls gpg gphoto2 gpm gsm gstreamer gtk h323 hdaps hddtemp howl-compat html httpd iconv icu id3tag idn ieee1394 imagemagick imap introspection ipc ipod iproute2 ipv6 irda jack java jpeg jpeg2k kerberos krb5 kvm lame laptop lcms ldap libass libcaca libnotify libsamplerate libssh2 libsysfs libv4l2 libwww live lm_sensors loop-aes lua lzo mad matroska mbrola mdnsresponder-compat mfd-rewrites mikmod mmap mmx mng modplug modules mono motif mp3 mp4 mpeg mudflap multilib multislot musepack nautilus ncurses network nls nntp nptl nsplugin nss offensive ogg openexr opengl openmp openssl openstreetmap optimisememory overlays pam pango pcap pcapnav pcre pda pdf php pic pidgin png policykit ppds pulseaudio pvr qt3 qt3support qt4 quicktime quotas radius raster raw rawio readline remoteosd rtsp samba sasl scanner schroedinger scripting sdl sdl-image seamonkey session shout sip skey skins smbkrb5passwd smp smux socks5 sounds speex spell sse sse2 ssl startup-notification stream svg syslog systemd taglib tcpd theora threads tiff timezone tk tools tpctlir truetype twolame udev udisks unicode upnp upower usb utils v4l v4l2 vala vcdinfo vcdx vde videos vim-pager vim-syntax vim-with-x vlm vorbis webkit wicd win32codecs winbind wmf wxwidgets x264 xattr xext xinerama xinetd xml xosd xpm xulrunner xv xvid zeroconf zlib zsh-completion zvbi" ABI_X86="32 64" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="directory enigma13 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="nss" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" SANE_BACKENDS="apple canon canon630u canon_dr canon_pp cardscan coolscan coolscan2 coolscan3 dc210 dc240 dc25 dell1600n_net epjitsu epson epson2 fujitsu genesys hp hp3500 hp3900 hp4200 hp5400 hp5590 hpljm1005 hpsj5s hs2p ibm kodak lexmark magicolor matsushita microtek microtek2 mustek mustek_pp mustek_usb nec net niash p5 pie pixma plustek plustek_pp qcam ricoh rts8891 s9036 sceptre sharp sm3600 sm3840 snapscan sp15c st400 stv680 tamarack teco1 teco2 teco3 test u12 umax umax1220u umax_pp xerox_mfp" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.3"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



will attach the build.log with -ggdb shortly.
Comment 5 brent 2013-08-30 19:58:23 UTC
Created attachment 357458 [details]
build.log with -ggdb
Comment 6 brent 2013-10-01 06:35:07 UTC
is there any further information on this? do you need any further data?
Comment 7 brent 2013-10-13 18:33:11 UTC
i did a bit more digging, as this is still occurring with media-video/ffmpeg-0.10.9

i discovered that:

1.) ffmpeg 64-bit compiles fine.
2.) the x86 dies on segfault, but only the first time- the rest gives errors with aacdec.o:

maqabi work # cd ffmpeg-0.10.9-x86/
maqabi ffmpeg-0.10.9-x86 # make
GEN     libavcodec/cbrt_tables.h
/bin/sh: line 1:  4448 Segmentation fault      ./libavcodec/cbrt_tablegen > libavcodec/cbrt_tables.h
make: *** [libavcodec/cbrt_tables.h] Error 139

...
maqabi ffmpeg-0.10.9-x86 # strace ./libavcodec/cbrt_tablegen 
execve("./libavcodec/cbrt_tablegen", ["./libavcodec/cbrt_tablegen"], [/* 68 vars */]) = 0
[ Process PID=4505 runs in 32 bit mode. ]
brk(0)                                  = 0x8054000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xfffffffff7756000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=283925, ...}) = 0
mmap2(NULL, 283925, PROT_READ, MAP_PRIVATE, 3, 0) = 0xfffffffff7710000
close(3)                                = 0
open("/lib32/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`Y\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=267660, ...}) = 0
mmap2(NULL, 266384, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xfffffffff76ce000
mmap2(0xf770e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x40000) = 0xfffffffff770e000
close(3)                                = 0
open("/lib32/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\316\1\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1742556, ...}) = 0
mmap2(NULL, 1751772, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xfffffffff7522000
mmap2(0xf76c8000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a5000) = 0xfffffffff76c8000
mmap2(0xf76cb000, 10972, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xfffffffff76cb000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xfffffffff7521000
set_thread_area(0xff925dd0)             = 0
mprotect(0xf76c8000, 8192, PROT_READ)   = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x58d6} ---
+++ killed by SIGSEGV +++
Segmentation fault

...

maqabi ffmpeg-0.10.9-x86 # pwd;make
/var/tmp/portage/media-video/ffmpeg-0.10.9/work/ffmpeg-0.10.9-x86
CC      libavcodec/aacdec.o
/var/tmp/portage/media-video/ffmpeg-0.10.9/work/ffmpeg-0.10.9/libavcodec/aacdec.c: In function ‘decode_spectrum_and_dequant’:
/var/tmp/portage/media-video/ffmpeg-0.10.9/work/ffmpeg-0.10.9/libavcodec/aacdec.c:1262:46: error: ‘cbrt_tab’ undeclared (first use in this function)
/var/tmp/portage/media-video/ffmpeg-0.10.9/work/ffmpeg-0.10.9/libavcodec/aacdec.c:1262:46: note: each undeclared identifier is reported only once for each function it appears in
/var/tmp/portage/media-video/ffmpeg-0.10.9/work/ffmpeg-0.10.9/libavcodec/aacdec.c:1246:41: warning: variable ‘n’ set but not used [-Wunused-but-set-variable]
/var/tmp/portage/media-video/ffmpeg-0.10.9/work/ffmpeg-0.10.9/libavcodec/aacdec.c: In function ‘aac_decode_frame_int’:
/var/tmp/portage/media-video/ffmpeg-0.10.9/work/ffmpeg-0.10.9/libavcodec/aacdec.c:2177:22: warning: missing braces around initializer [-Wmissing-braces]
/var/tmp/portage/media-video/ffmpeg-0.10.9/work/ffmpeg-0.10.9/libavcodec/aacdec.c:2177:22: warning: (near initialization for ‘new_che_pos[0]’) [-Wmissing-braces]
/var/tmp/portage/media-video/ffmpeg-0.10.9/work/ffmpeg-0.10.9/libavcodec/aacdec.c:2280:43: warning: to be safe all intermediate pointers in cast from ‘float **’ to ‘const float **’ must be ‘const’ qualified [-Wcast-qual]
/var/tmp/portage/media-video/ffmpeg-0.10.9/work/ffmpeg-0.10.9/libavcodec/aacdec.c:2284:52: warning: to be safe all intermediate pointers in cast from ‘float **’ to ‘const float **’ must be ‘const’ qualified [-Wcast-qual]
make: *** [libavcodec/aacdec.o] Error 1


the package emerges successfully with ABI_X86="64" emerge -1uv ffmpeg (and/or USE="-abi_x86_32" emerge -1uv ffmpeg)

(it is presumed that USE="-aac" may also allow for a successful compile as the issue occurs in the 32bit aacdec.o, but the segfault may still occur for libavcodec- i did not test that.)
Comment 8 Alexis Ballier gentoo-dev 2016-12-05 13:54:10 UTC
ffmpeg 0.10 is long gone; nothing about new version, assuming obsolete