Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 103263 - glibc 2.3.5 + jpeg2yuv + mpeg2enc + mplex = "glibc detected double free or corruption"
Summary: glibc 2.3.5 + jpeg2yuv + mpeg2enc + mplex = "glibc detected double free or co...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-21 10:47 UTC by csingley
Modified: 2005-12-17 17:56 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 csingley 2005-08-21 10:47:11 UTC
Upon upgrading to glibc-2.3.5, mplex (from media-video/mjpegtools-1.6.2-r4) 
began choking on output of jpeg2yuv | mpeg2enc.  Upon failure, mplex reports 
"glibc detected double free or corruption"

However, mplex handles without difficulty other mpeg2 files, e.g. demuxed output 
from avidemux2.

Upgrading to glibc-2.3.5-r1 doesn't solve the problem.

Reproducible: Always
Steps to Reproduce:
Follow the instructions from mythtv documentation, section 22.21, "Creating a 
DVD with Menus".
http://www.mythtv.org/docs/mythtv-HOWTO-22.html#ss22.21

1. jpeg2yuv -n 50 -I p -f 29.97 -j menu.jpg | mpeg2enc -n n -f 8 -o menu.m2v
2. dd if=/dev/zero bs=4 count=2000 | toolame -b 128 -s 48 /dev/stdin menu.mp2
3. mplex -f 8 -o menu.mpg menu.m2v menu.mp2

Actual Results:  
INFO: [mplex] mplex version 1.6.2 (2.2.3 $Date: 2004/01/13 20:45:26 $)
*** glibc detected *** double free or corruption (!prev): 0x800081c8
./foo.sh: line 5: 16369 Aborted                   mplex -f 8 -o menu.mpg menu.
m2v menu.mp2

Expected Results:  
Create a conforming .m2v video, and then mux it into an .mpg
Comment 1 Stefaan De Roeck (RETIRED) gentoo-dev 2005-09-19 06:06:27 UTC
This bug report doesn't say what gcc-version (emerge info would have been
handy).  If it's <3.4.3, I'm thinking maybe
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17976 ?
Comment 2 csingley 2005-09-19 06:49:43 UTC
'emerge info'

Gentoo Base System version 1.6.13
Portage 2.0.51.22-r2 (hardened/x86/2.6, gcc-3.3.5-20050130, glibc-2.3.5-r1, 2.6.
11-hardened-r15 i686)
=================================================================
System uname: 2.6.11-hardened-r15 i686 Pentium III (Coppermine)
dev-lang/python:     2.3.5-r2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/
X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/
distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac apache2 avi berkdb bitmap-fonts cdparanoia cdr crypt curl divx4linux 
dlloader esd flac gdbm gif gpm gtk2 hardened hardenedphp imagemagick imap imlib 
java libwww mad maildir mikmod mmx motif mysql nas ncurses nls nptl ogg opengl 
pam pdflib perl php pic png python readline ruby samba sasl sdl slang sse ssl 
svga tcltk tcpd tiff truetype userlocales vcd vorbis win32codecs x86 xine xml 
xml2 xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 3 Stefaan De Roeck (RETIRED) gentoo-dev 2005-09-19 10:07:02 UTC
The gcc-bug I thought of doesn't occur on this gcc version, so my hint doesn't
apply here :(
Comment 4 Sloan Poe 2005-09-26 11:26:21 UTC
I am also seeing this exact same situation on a different system.  Here is my
emerege info:

Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r1,
2.6.12-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.13
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5-r2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -pipe -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
http://mirror.datapipe.net/gentoo http://mirrors.tds.net/gentoo
http://mirror.datapipe.net/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac aalib acpi aim alsa apache2 audiofile avi berkdb
bitmap-fonts bonobo cddb cdparanoia cdr cjk crypt cups curl dar64 dvd dvdr
dvdread eds emboss encode evo evo2 fam ffmpeg flac foomaticdb fortran freetype
gd gdbm ggi gif glut gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile i8x0
ieee1394 imagemagick imap imlib imlib2 ipv6 jabber jack java jpeg junit kde
libwww lm_sensors lzw lzw-tiff mad maildir matroska mjpeg motif mozilla mp3 mpeg
mpeg4 mplayer multislot mysql mythtv nas ncurses nls nvidia odbc offensive ogg
oggvorbis opengl pam pcmcia pdflib perl php png python qt quicktime readline
real samba sdl spell sqlite ssl tcltk tcpd theora tidy tiff transcode
truetype-fonts type1-fonts usb userlocales vcd videos vim-with-x vorbis wifi
wxwindows xine xinerama xml xml2 xmms xpm xv xvid yv12 zlib userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS
Comment 5 Sloan Poe 2005-09-26 12:02:05 UTC
Okay.. I managed to figure this out.  My problem was a result of a bad m2v file.
 Mostly due to some bad options in jpeg2yuv and mpeg2enc.  Once I had a valid
m2v file this worked fine.
Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-12-17 17:56:01 UTC
Report it upstream if it's still an issue with recent versions, and if they'll provide a patch, feel free to reopen.