Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 118900 - libebml produces wrong output with > -O1
Summary: libebml produces wrong output with > -O1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-13 10:43 UTC by Daniel Kenzelmann
Modified: 2006-04-17 11:52 UTC (History)
0 users

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 Daniel Kenzelmann 2006-01-13 10:43:06 UTC
libebml produces wrong output when using -O2 or -O3... those flags should be filtered
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-01-13 10:50:01 UTC
Which version(s)? Some better description of what is "wrong output"? Also, emerge --info please.
Comment 2 Daniel Kenzelmann 2006-01-13 11:22:40 UTC
The produced .mkv files are almost unplayable (with mkvtoolnix) ...
i asked in #matroska at irc.corecodec.org .. they said there is a known problem with libebml producing b0rked output with more than -O1 ...

recompiling libebml with empty CFLAGS solved the problem ...
i only tried with libebml-0.7.6 ...


emerge --info (doesn't matter with this bug...)


Portage 2.1_pre3-r1 (default-linux/x86/2005.1, gcc-4.0.2, glibc-2.3.6-r2, 2.6.15 i686)
=================================================================
System uname: 2.6.15 i686 Intel(R) Pentium(R) M processor 1.60GHz
Gentoo Base System version 1.12.0_pre13
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium-m -mtune=pentium-m -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O3 -march=pentium-m -mtune=pentium-m -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/"
LANG="de_DE.UTF-8"
LINGUAS="de en zh_CN"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/media/External/tmp/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac acl acpi alsa apache2 audiofile avi berkdb bitmap-fonts bzip2 cairo cdr cjk crypt cups curl dbus dri dts dvd dvdr eds emboss encode exif expat faac faad fam flac foomaticdb fortran fuse gd gdbm gif glitz glut glx gmp gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal idn imap imlib iproute2 ipv6 java jpeg lcms libg++ libwww mad matroska mikmod mime mmx mng mono mozilla mp3 mpeg nautilus ncurses nls nptl nptlonly offensive ogg oggvorbis openal opengl pam pcre pda pdflib perl png python quicktime readline recode samba sdl speex spell sse sse2 ssl svg tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev unicode usb vorbis win32codecs xine xinerama xml2 xprint xv xvid zlib elibc_glibc kernel_linux linguas_de linguas_en linguas_zh_CN userland_GNU"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, MAKEOPTS
Comment 3 Daniel Kenzelmann 2006-01-13 11:24:56 UTC
regarding "wrong output"
"timecodescale" is wrong and some other parameters ...
effect: the file can only be "streamed" in totem (no seeking)
mplayer shows a full playtime of 0:00:000
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-04-17 08:24:32 UTC
Can't reproduce here.
Which engine is totem using?
Comment 5 Daniel Kenzelmann 2006-04-17 11:44:16 UTC
To reproduce first emerge libebml with -O3 then merge a stream with mkvtoolnix.

The resulting file has wrong information (like duration etc...), check it with mkvinfo (look for duration). You will see something like this:


+ EBML head
|+ Doc type: matroska
|+ Doc type version: 1
|+ Doc type read version: 1
+ Segment, size 510989
|+ Seek head (subentries will be skipped)
|+ EbmlVoid (size: 4029)
|+ Segment information
| + Timecode scale: 1000000
| + Muxing application: libebml v0.7.6 + libmatroska v0.8.0
| + Writing application: mkvmerge v1.6.5 ('Watcher Of The Skies') built on Jan 13 2006 19:56:06
| + Duration: -0.000s (00:00:00.-00000028)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^



Now with libebml compiled with -O1 and muxing the same file (.avi source) you get:
+ EBML head
|+ Doc type: matroska
|+ Doc type version: 1
|+ Doc type read version: 1
+ Segment, size 510989
|+ Seek head (subentries will be skipped)
|+ EbmlVoid (size: 4029)
|+ Segment information
| + Timecode scale: 1000000
| + Muxing application: libebml v0.7.6 + libmatroska v0.8.0
| + Writing application: mkvmerge v1.6.5 ('Watcher Of The Skies') built on Jan 13 2006 19:56:06
| + Duration: 20.000s (00:00:20.000000000)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
That is the correct duration (20 sec).


The problem with libebml and using -O2 or -O3 was confirmed in #matroska on freenode.
Comment 6 Daniel Kenzelmann 2006-04-17 11:47:29 UTC
#matroska not on freenode, but on irc.corecodec.org like i said in comment #2
Comment 7 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-04-17 11:52:21 UTC
Okay, replaced the flags -O2 and -O3 to -O1, without revbump tho.