Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 293919 - mjpegtools: jpeg2yuv crashes in libjpeg.so.7
Summary: mjpegtools: jpeg2yuv crashes in libjpeg.so.7
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal with 3 votes (vote)
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords:
: 301481 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-11-21 05:33 UTC by Christopher Byrne
Modified: 2010-02-04 22:53 UTC (History)
9 users (show)

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


Attachments
File in which is crashing on (dummy.jpg,2.26 KB, image/jpeg)
2009-11-21 05:35 UTC, Christopher Byrne
Details
explicitly set do_fancy_upsampling to FALSE (mjpegtools-1.9.0-jpeg-7.patch,777 bytes, patch)
2010-01-23 06:36 UTC, Christopher Byrne
Details | Diff
mjpegtools-1.9.0-r1.ebuild patch (mjpegtools-1.9.0-r1.ebuild.patch,321 bytes, patch)
2010-01-23 06:39 UTC, Christopher Byrne
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Byrne 2009-11-21 05:33:59 UTC
jpeg2yuv no longer seems to work right, it now crashes where it did not previously. I don't think I've used it since the jpeg 6.2->7.0 update. revdep-rebuild, remergeing nor downgrading to a previous version of mjpegtools doesn't work. Downgrading and rebuilding against libjpeg 6.2 eludes me, unfortunately. 

This is being run as part of tovid / todisc (note the results of the command are being piped to transcode, which ALSO crashes in libjpeg.so.7, but that could be because the read side of the pipe is crashing first)

emerge --info
Portage 2.1.6.13 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r8 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r8-i686-Intel-R-_Celeron-R-_CPU_2.66GHz-with-gentoo-1.12.13
Timestamp of tree: Sat, 21 Nov 2009 04:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.2-r1
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe -g"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=pentium4 -O2 -pipe -g"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg ccache distlocks fixpackages metadata-transfer parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac accessibility acl acpi alsa avahi berkdb bluetooth branding bzip2 cairo caps cddb cdr cli consolekit cracklib crypt cups dbus dri dts dv dvd dvdr dvdread eds emboss encode evo fam ffmpeg flac fortran gdbm gif gnome gnome-keyring gnutls gpm gstreamer gtk hal iconv ipod ipv6 java jpeg ldap libnotify logrotate mad mikmod mmx mmxext modules mono mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd pulseaudio python qt3support quicktime readline reflection samba sasl sdl session spell spl sse ssl startup-notification svg sysfs tcl tcpd thunar tiff tk truetype unicode usb v4l2 vorbis x264 x86 xml xorg xulrunner xv xvid 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 mmap_emul 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="evdev keyboard mouse void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="dummy fbdev vesa nv nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

backtrace:
#0  0xb805e45e in jpeg_idct_16x16 (cinfo=0xbfcfbf04, compptr=0x8db0ae4, 
    coef_block=0x8db4c24, output_buf=0xbfcfc300, output_col=0)
    at jidctint.c:2760
#1  0xb8044a08 in decompress_onepass (cinfo=0xbfcfbf04, output_buf=0xbfcfc320)
    at jdcoefct.c:197
#2  0xb80426fa in jpeg_read_raw_data (cinfo=0xbfcfbf04, data=0xbfcfc320, 
    max_lines=16) at jdapistd.c:210
#3  0xb806d205 in decode_jpeg_raw (jpeg_data=0x804d120 "����", len=2310, 
    itype=0, ctype=420, width=720, height=480, raw0=0xb7e5b008 "", 
    raw1=0x8d86018 "", raw2=0x8d9b1a0 "") at jpegutils.c:625
#4  0x08049b02 in main (argc=Cannot access memory at address 0x906
) at jpeg2yuv.c:507
Comment 1 Christopher Byrne 2009-11-21 05:35:31 UTC
Created attachment 210760 [details]
File in which is crashing on

This is the command that causes the crash

jpeg2yuv -v 1 -f 29.970 -I p -n 1 -l 30 -L 1 -b1 -j dummy.jpg
Comment 2 Christopher Byrne 2009-11-24 06:20:05 UTC
I finally figured out how to downgrade libjpeg to 6.2 and rebuild mjpegtools against it. That fixes the problem. So the problem is definitely caused by the jpeg 6.2->7 update. 
Comment 3 George Tantiras 2009-11-24 08:26:07 UTC
I have the exact same problem, however, downgrading jpeg seems to be a rather complicated issue in my case. (AMD 64, emerge --info pasted at the end of the post)

Calculating dependencies... done!
[ebuild     UD] media-libs/jpeg-6b-r8 [7] 621 kB

Total: 1 package (1 downgrade), Size of downloads: 621 kB

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

media-libs/jpeg:0

  ('ebuild', '/', 'media-libs/jpeg-6b-r8', 'merge') pulled in by
    media-libs/jpeg required by ('installed', '/', 'x11-libs/qt-3.3.8b-r2', 'nomerge')
    media-libs/jpeg required by ('installed', '/', 'net-libs/webkit-gtk-1.1.10', 'nomerge')
    media-libs/jpeg required by ('installed', '/', 'media-libs/jasper-1.900.1-r3', 'nomerge')
    (and 46 more)

  ('installed', '/', 'media-libs/jpeg-7', 'nomerge') pulled in by
    >=media-libs/jpeg-7 required by ('installed', '/', 'media-libs/sdl-image-1.2.7-r1', 'nomerge')
    (and 49 more)

In ubuntu forums ( http://ubuntuforums.org/showthread.php?t=1043096 ) the same issue has been addressed by installing libavcodec-unstripped-51 libavutil-unstripped-49 libavformat-unstripped-52.

Kind regards,
GT

emerge --info
Portage 2.1.6.13 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r5 x86_64)
=================================================================                                      
System uname: Linux-2.6.30-gentoo-r5-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4800+-with-gentoo-1.12.13
Timestamp of tree: Mon, 23 Nov 2009 21:45:01 +0000                                                            
app-shells/bash:     4.0_p28                                                                                  
dev-java/java-config: 2.1.9-r1                                                                                
dev-lang/python:     2.6.2-r1                                                                                 
dev-util/cmake:      2.6.4-r3                                                                                 
sys-apps/baselayout: 1.12.13                                                                                  
sys-apps/sandbox:    1.6-r2                                                                                   
sys-devel/autoconf:  2.13, 2.63-r1                                                                            
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                                     
sys-devel/binutils:  2.18-r3                                                                                  
sys-devel/gcc-config: 1.4.1                                                                                   
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /var/lib/hsqldb /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d /usr/X11R6/bin/startx"
CXXFLAGS="-march=athlon64 -O2 -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://files.gentoo.org http://files.gentoo.org ftp://ftp.ntua.gr/pub/linux/gentoo/ http://ftp.ntua.gr/pub/linux/gentoo/ ftp://ftp.uoi.gr/mirror/OS/gentoo/ http://ftp.uoi.gr/mirror/OS/gentoo/ http://ftp.physics.auth.gr/pub/mirrors/gentoo/ ftp://ftp.physics.auth.gr/pub/mirrors/gentoo/ "
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_GB el uk"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
SYNC="rsync://192.168.10.20/gentoo-portage"
USE="3dnow 3dnowext X Xaw3d a52 aac aalib accessibility acl acpi addbookmarks akode alias alsa amarok amd64 amr amrnb amrwb aotuv apache2 apm applet ares artworkextra asf aspell ass asterisk audio audiofile avahi avi beagle bindist bitmap-fonts bluetooth bonjour bzip2 bzlib cairo caps cdda cddax cddb cdiao cdio cdparanoia cdr cdrkit cgraph cms connectionstatus consolekit contactnotes corefonts cpudetection cracklib crypt css ctype cups curl curlwrappers cxx dbus dc1394 device-mapper dga digitalradio dirac disk-partition divx divx4linux djbfft djvu dlloader dmi dmx doc dri dts dv dvb dvd dvdr dvdread dvi ecc effects elf enca encode epiphany exif expat extrafilters fam fame ffmpeg fftw firefox flac flash fontconfig fortran fpx fuse gadu galago gcj gd gdbm gif gimp gimpprint gmedia gnome gnomecd gnutls gpac gphoto2 gpm graphviz gs gsm gstreamer gtk gtk2 guile hal hdri highlight history httpd hunspell iconv icu idn ieee1394 imagemagick imap imlib inkjar irc jadetex java javascript jbig jingle jpeg jpeg2k jsapi ladspa lapack lcms ldap lesstif libass libburn libcaca libffi libgcrypt libnotify libsamplerate libsexy libssh2 libsysfs libwww lirc live lm_sensors logitech-mouse lua lzo mad maildir matroska mbrola md5sum mdnsresponder-compat memlimit midi mikmod mjpeg mmap mmx mmxext mng modplug mono motif mozilla mp2 mp3 mp4 mpeg mpi mplayer mpm-prefork mudflap multilib musepack musicbrainz nas nautilus ncurses neXt nemesi network networking networkmanager nls nntp no-suexec nowlistening nptl nptlonly nsplugin nvidia nvtv objc objc++ objc-gc odbc offensive ogg oggvorbis openexr opengl openmp openmpnls oss pam pcf pcre pda pdf perl png pnm posix povray ppds profile psf pulseaudio python q32 qt3 qt3support quicktime radio rar raw rdesktop readline realmedia regex romio rpm rtc ruby sametime sasl scanner schroedinger sdl sdl-image semantic-desktop session shout skins slang slp smartcard smp sms smux sndfile snmp sockets sox speex spell sqlite sse sse2 ssh ssl ssse3 static-modules statistics stream subtitles svg t1lib tacl tcl tcltk tcpd teletext texteffect theora threads tidy tiff timezone tk tokenizer totem tracker translator truetype truetype-fonts twolame type1-fonts udev unicode usb utf8 v4l v4l2 vcd vcdinfo vcdx vdr vhook video vlm vorbis wavpack webkit webpresence winpopup wmf wmp wxwindows x264 xanim xine xinetd xml xmldoclet xmp xorg xpm xscreensaver xsl xulrunner xv xvid xvmc yahoo yv12 zeroconf zlib zoran zvbi" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="alaw copy dshare dsnoop extplug null shm adpcm file hooks ladspa lfloat linear meter mulaw multi rate route share asym dmix empty iec958 ioplug mmap_emul plug softvol" APACHE2_MODULES="access auth mime-magic headers log_config setenvif mime dir so authz_host alias negotiation" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB el uk" LIRC_DEVICES="all" USERLAND="GNU" VIDEO_CARDS="nvidia fbdev vesa vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 billpreston 2009-12-04 05:53:29 UTC
same problem
gdb back trace says

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f2d22bc06f0 (LWP 2306)]
0x00007f2d223a19d2 in jpeg_idct_16x16 (cinfo=<value optimized out>, compptr=<value optimized out>, 
    coef_block=<value optimized out>, output_buf=0x7fff9ed708f0, output_col=0) at jidctint.c:2760
2760	jidctint.c: No such file or directory.
	in jidctint.c
(gdb) bt
#0  0x00007f2d223a19d2 in jpeg_idct_16x16 (cinfo=<value optimized out>, compptr=<value optimized out>, 
    coef_block=<value optimized out>, output_buf=0x7fff9ed708f0, output_col=0) at jidctint.c:2760
#1  0x00007f2d22387735 in decompress_onepass (cinfo=0x0, output_buf=0x7fff9ed70930) at jdcoefct.c:197
#2  0x00007f2d223856b9 in jpeg_read_raw_data (cinfo=0x7fff9ed702f0, data=0x7fff9ed70930, max_lines=16)
    at jdapistd.c:210
#3  0x00007f2d225b476a in decode_jpeg_raw (jpeg_data=0x6041e0 "����", len=2310, itype=0, ctype=420, width=720, 
    height=480, raw0=0x7f2d22b6b010 "", raw1=0x745030 "", raw2=0x75a1c0 "") at jpegutils.c:625
#4  0x0000000000402195 in main (argc=<value optimized out>, argv=<value optimized out>) at jpeg2yuv.c:507

strace says at bottom

mmap(NULL, 348160, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fdb47340000
brk(0x790000)                           = 0x790000
write(1, "YUV4MPEG2 W720 H480 F30000:1001 I"..., 49) = 49
open("dummy.jpg", O_RDONLY)             = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=2310, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fdb473d1000
read(3, "\377\330\377\340\0\20JFIF\0\1\1\1\0H\0H\0\0\377\333\0C\0\3\2\2\2\2\2\3\2"..., 1310720) = 2310
read(3, ""..., 1306624)                 = 0
close(3)                                = 0
munmap(0x7fdb473d1000, 4096)            = 0
write(2, "   INFO: [jpeg2yuv] Processing no"..., 79) = 79
open("/proc/meminfo", O_RDONLY)         = 3
fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fdb473d1000
read(3, "MemTotal:        2059056 kB\nMemFr"..., 1024) = 1024
close(3)                                = 0
munmap(0x7fdb473d1000, 4096)            = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

So a problem grabbing memory?

Emerge info says

emerge --info
Portage 2.1.6.13 (default/linux/amd64/10.0, gcc-4.1.2, glibc-2.9_p20081201-r2, 2.6.31-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-x86_64-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-gentoo-1.12.13
Timestamp of tree: Thu, 03 Dec 2009 12:00:01 +0000
app-shells/bash:     4.0_p28
dev-java/java-config: 1.3.7-r1, 2.1.9-r1
dev-lang/python:     2.4.6, 2.5.4-r3, 2.6.4
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe "
CHOST="x86_64-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 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe "
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://gentoo.mirrors.pair.com/ "
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US en_GB"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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/portage/local/layman/wschlich-testing"
SYNC="rsync://192.168.0.2/gentoo-portage"
USE="X a52 aac aalib acl ala alsa amd64 apache2 avahi avi bash-completion berkdb bzip2 calendar cdr cli consolekit cracklib crypt ctype cups dbus devil divx4linux dri dv dvd dvdr dvdread emerald encode esd faac faad fame ffmpeg firefox flac foomaticdb fortran frontendonly ftp gd gdbm gif gimp gimpprint glitz gnome gpm gt4 gtk gtk2 hal iconv ieee1394 imagemagick innodb ipv6 java joystick jpeg jpeg2k kde lirc madwifi mdnsresponder-compat mikmod mjpeg mmx mng modules mp3 mpeg mpi mplayer mudflap multilib mysql ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl php plotutils png postgres postscript ppds pppd python qt3 qt3support quicktime readline reflection samba sdl session soap spl sql sqlite sse sse2 ssl subtitles svg sysfs tcpd teamarena threads tiff tk transcode truetype unicode usb v4l v4l2 videos vorbis webkit wifi x264 xcomposite xine xinerama xml xorg xv xvid yahoo yv12 zip zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US en_GB" RUBY_TARGETS="ruby18" SANE_BACKENDS="epson" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Comment 5 John M. Drescher 2009-12-13 16:22:33 UTC
I have the same problem and for me it prevents mytharchive from successfully finishing. I have downgraded jpeg in the past and it worked but keeping my system up to date periodically brings this issue back. 
Comment 6 Roger 2009-12-30 18:46:57 UTC
I've got similar issues with media-libs/jpeg-7 segfaulting with seamonkey... as well as, firefox.  Caught it by running "gdb seamonkey".

As to whether it's similar to this segfault in any manner, <shrugs>... just figured I should post a fore-warning here. ;-)



Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2009-12-30 18:53:35 UTC
To make sure this isn't caused by mixing libjpeg.so.62 and libjpeg.so.7 in system, one should at least:

emerge -C jpeg-compat
rm -rf /usr/lib/libjpeg.so.62*
revdep-rebuild

or just "revdep-rebuild -L libjpeg.so.62" to make sure the system is constant

mixing them will surely segfault random apps
Comment 8 billpreston 2010-01-04 03:55:28 UTC
Still doesn't help. Thanks though.
Comment 9 Samuli Suominen (RETIRED) gentoo-dev 2010-01-05 18:24:23 UTC
Same bug in mandriva, https://qa.mandriva.com/show_bug.cgi?id=55450
In macports, http://trac.macports.org/ticket/22915
Comment 10 John M. Drescher 2010-01-15 14:56:31 UTC
Can jpeg-6b be returned to portage?
Comment 11 John M. Drescher 2010-01-15 15:00:01 UTC
I spoke too soon I see its back today. Sorry for the noise.
Comment 12 Christopher Byrne 2010-01-16 06:25:12 UTC
The situation is no better with jpeg-8 either:

Program received signal SIGSEGV, Segmentation fault.
0xb7f8762e in jpeg_idct_16x16 (cinfo=0xbfffba44, compptr=0x81b8ae4, 
    coef_block=0x81bcc24, output_buf=0xbfffbe50, output_col=0)
    at jidctint.c:2760
2760	    outptr[0]  = range_limit[(int) RIGHT_SHIFT(tmp20 + tmp0,
(gdb) bt
#0  0xb7f8762e in jpeg_idct_16x16 (cinfo=0xbfffba44, compptr=0x81b8ae4, 
    coef_block=0x81bcc24, output_buf=0xbfffbe50, output_col=0)
    at jidctint.c:2760
#1  0xb7f6cfd8 in decompress_onepass (cinfo=0xbfffba44, output_buf=0xbfffbe70)
    at jdcoefct.c:197
#2  0xb7f6aa1d in jpeg_read_raw_data (cinfo=0xbfffba44, data=0xbfffbe70, 
    max_lines=16) at jdapistd.c:210
#3  0xb7f97205 in decode_jpeg_raw (jpeg_data=0x804d120 "\377\330\377\340", 
    len=2310, itype=0, ctype=420, width=720, height=480, raw0=0xb7d7d008 "", 
    raw1=0x818e018 "", raw2=0x81a31a0 "") at jpegutils.c:625
#4  0x08049b02 in generate_YUV4MPEG (argc=Cannot access memory at address 0x906
) at jpeg2yuv.c:507
#5  main (argc=Cannot access memory at address 0x906
) at jpeg2yuv.c:591

Same as jpeg 7.0 (and I checked it is linked to 8.0)
Comment 13 Samuli Suominen (RETIRED) gentoo-dev 2010-01-19 08:10:40 UTC
*** Bug 301481 has been marked as a duplicate of this bug. ***
Comment 14 Christopher Byrne 2010-01-23 06:36:01 UTC
Created attachment 217202 [details, diff]
explicitly set do_fancy_upsampling to FALSE

Ok, I think at long last I've discovered why mjpegtools - as well as trasncode, Cinelerra and other are crashing. Apparently, when settings dinfo.raw_data_out, previous version mjpegtools automatically set dinfo.do_fancy_upsampling to FALSE. Newer versions (since 7) of media-libs/jpeg do not do that anymore and the program must do it explicitly (although I have not found any documentation to that effect). 

With this patch, jpeg2yuv no longer crashes, and produced the same output it did previous with jpeg-6b.
Comment 15 Christopher Byrne 2010-01-23 06:39:38 UTC
Created attachment 217203 [details, diff]
mjpegtools-1.9.0-r1.ebuild patch

Patch to ebuild to apply new patch mjpegtools-1.9.0-jpeg-7.patch
Comment 16 Samuli Suominen (RETIRED) gentoo-dev 2010-01-23 11:50:23 UTC
(In reply to comment #14)
> Created an attachment (id=217202) [details]
> explicitly set do_fancy_upsampling to FALSE
> 
> Ok, I think at long last I've discovered why mjpegtools - as well as trasncode,
> Cinelerra and other are crashing. Apparently, when settings dinfo.raw_data_out,
> previous version mjpegtools automatically set dinfo.do_fancy_upsampling to
> FALSE. Newer versions (since 7) of media-libs/jpeg do not do that anymore and
> the program must do it explicitly (although I have not found any documentation
> to that effect). 
> 
> With this patch, jpeg2yuv no longer crashes, and produced the same output it
> did previous with jpeg-6b.
> 

Awesome. Thank you. Applied in Portage, let's give it couple of days and then push it to stable
Comment 17 Karl Newman 2010-02-04 22:53:16 UTC
Could this be applied to mjpegtools-1.8 as well? mytharchive-0.21 has a depend on <media-video/mjpegtools-1.8.99999, so I can't install 1.9. I verified that the patch applies cleanly to 1.8, so it's simply a matter of adding the patch to the 1.8 ebuild.