Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 212315 - media-libs/libtheora-1.0_beta2-r1 fails test
Summary: media-libs/libtheora-1.0_beta2-r1 fails test
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-04 21:12 UTC by Benno Schulenberg
Modified: 2008-09-07 22:01 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benno Schulenberg 2008-03-04 21:12:08 UTC
libtheora-1.0_beta2-r1 fails its third test:

[...]
----  + Initializing theora_info struct ...
----  + Initializing theora_state for encoding ...
----  + Clearing theora_state ...
/bin/sh: line 4:  8134 Segmentation fault      ${dir}$tst
FAIL: granulepos
===================
1 of 3 tests failed
===================

emerge --info

Portage 2.1.4.4 (hardened/x86/2.6, gcc-3.4.6-vanilla, glibc-2.7-r1, 2.6.23 i686)
=================================================================
System uname: 2.6.23 i686 AMD Athlon(tm) XP 2800+
Timestamp of tree: Tue, 04 Mar 2008 15:46:01 +0000
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/init.d /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer notitles sandbox sfperms strict test unmerge-orphans userfetch userpriv usersandbox"
LANG="nl_NL.utf8"
LC_ALL="en_GB.utf8"
LINGUAS="en en_GB en_US eo es es_ES nl nl_NL"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="gzip"
PORTAGE_RSYNC_EXTRA_OPTS="--progress --human-readable                           --exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
USE="3dnow X aac alsa apm arts asf audiofile avi bash-completion berkdb bzip2 cdparanoia cdr cracklib crypt dbus dri exif fam fbcon ffmpeg flac gif glx gphoto2 gpm gtk gtk2 gtkhtml hardened imagemagick imap imlib jabber jpeg jpeg2k kde kdeenablefinal lcms lm_sensors mad mbox memlimit midi mikmod mime mmap mmx mng modplug mp3 mpeg musepack ncurses nls nptl nptlonly nsplugin ogg opengl pdf pic png python qt3 quicktime readline recode sasl scanner sdl shorten sndfile sox speex spell sqlite sse ssl svg test theora threads tidy tiff timidity truetype unicode urandom usb vcd vorbis win32codecs wmf x86 xface xine xml xorg xpm xsl xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB en_US eo es es_ES nl nl_NL" USERLAND="GNU" VIDEO_CARDS="via vesa nv fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS_FLAGS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-03-04 21:17:30 UTC
Can you reproduce this again at *exactly* the same place?
Comment 2 Benno Schulenberg 2008-03-04 23:43:49 UTC
It always fails the same test at the same place.  Only the number before "Segmentation fault" differs from run to run.  For example:

----  + Initializing theora_info struct ...
----  + Initializing theora_state for encoding ...
----  + Clearing theora_state ...
/bin/sh: line 4: 22023 Segmentation fault      ${dir}$tst
FAIL: granulepos

When cd'ing to /var/tmp/portage/media-libs/libtheora-1.0_beta2-r1/work/libtheora-1.0beta2/tests/
and running ./granulepos manually, it does not segfault, though:

----  + Initializing theora_info struct ...
----  + Initializing theora_state for encoding ...
----  + Clearing theora_state ...
----  + Setting up dummy 4:2:0 frame data ...
----  + Checking granulepos generation ...
theora_encode_YUVin() returned -11
granulepos.c:104: negative error code submitting frame for compression
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2008-03-05 04:43:28 UTC
Can't reproduce this on ~amd64, but since you are running test suites, I assume you are an advanced user and can provide us a backtrace [1]

[1] http://www.gentoo.org/proj/en/qa/backtraces.xml
Comment 4 Benno Schulenberg 2008-03-06 23:02:55 UTC
# gdb .libs/lt-granulepos --core=core
Using host libthread_db library "/lib/libthread_db.so.1".

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /usr/lib/libsandbox.so...done.
Loaded symbols for /usr/lib/libsandbox.so
Reading symbols from /var/tmp/portage/media-libs/libtheora-1.0_beta2-r1/work/libtheora-1.0beta2/lib/.libs/libtheora.so.0...done.
Loaded symbols for /var/tmp/portage/media-libs/libtheora-1.0_beta2-r1/work/libtheora-1.0beta2/lib/.libs/libtheora.so.0
Reading symbols from /usr/lib/libogg.so.0...done.
Loaded symbols for /usr/lib/libogg.so.0
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Core was generated by `/var/tmp/portage/media-libs/libtheora-1.0_beta2-r1/work/libtheora-1.0beta2/test'.
Program terminated with signal 11, Segmentation fault.
#0  0x4002baf8 in theora_clear (_th=0xbfa61d30) at dec/apiwrapper.c:50
50          (*((oc_state_dispatch_vtbl *)_th->internal_decode)->clear)(_th);
(gdb) bt
#0  0x4002baf8 in theora_clear (_th=0xbfa61d30) at dec/apiwrapper.c:50
#1  0x080489c5 in granulepos_test_encode (frequency=1, auto_p=4096) at granulepos.c:81
#2  0x08048d2e in main (argc=1, argv=0xbfa61ec4) at granulepos.c:140


A second run produces the same backtrace, but with a different value for _th:

#0  0x4002baf8 in theora_clear (_th=0xbf81ae80) at dec/apiwrapper.c:50
#1  0x080489c5 in granulepos_test_encode (frequency=1, auto_p=4096) at granulepos.c:81
#2  0x08048d2e in main (argc=1, argv=0xbf81b014) at granulepos.c:140
Comment 5 Harald van Dijk (RETIRED) gentoo-dev 2008-04-17 17:39:57 UTC
Having just run into this myself, I found that some tests rely on USE=encode, and won't (can't) work when that flag is disabled. They should probably just be skipped. There's no problem when encoding fails when encoding is disabled.
Comment 6 Alexis Ballier gentoo-dev 2008-09-07 22:01:59 UTC
fixed in _beta3-r1