Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
jpeg2yuv Segmentation fault [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
WillemM
n00b
n00b


Joined: 01 Dec 2007
Posts: 11

PostPosted: Tue Jan 12, 2010 9:30 pm    Post subject: jpeg2yuv Segmentation fault [SOLVED] Reply with quote

I can't get mytharchive to work. In mythburn.py jpeg2yuv (beloings to mjpegtools) is called and ends with a segmentation fault.

I'm running 64 bit on AMD64

Code:
 jpeg2yuv -n 250 -v0 -I p -f 25 -j '/var2/tv/tmp/work/background-1-f%06d.jpg'
YUV4MPEG2 W720 H576 F25:1 Ip A1:1 C420jpeg
Segmentation fault


Code:
$ gdb jpeg2yuv
GNU gdb (Gentoo 7.0 p2) 7.0
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/bin/jpeg2yuv...(no debugging symbols found)...done.
(gdb) r  -n 250 -v0 -I p -f 25 -j '/var2/tv/tmp/work/background-1-f%06d.jpg'
Starting program: /usr/bin/jpeg2yuv -n 250 -v0 -I p -f 25 -j '/var2/tv/tmp/work/background-1-f%06d.jpg'
[Thread debugging using libthread_db enabled]
YUV4MPEG2 W720 H576 F25:1 Ip A1:1 C420jpeg

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff779bcae in jpeg_idct_16x16 () from /usr/lib/libjpeg.so.7
(gdb)


I found other people with this issue, indicating the upgrade media-libs/jpeg from 6 to 7 is the cause.
https://forums.gentoo.org/viewtopic-t-805496-highlight-mytharchive.html

I didn't succeed in downgrading and do not think that is a good solution.

Reinstalled jpeg en mjepgtools, ran revdep-rebuild, manually removed all jpeg libraries and rerun revdep-rebuild

Code:
 $ ls -l /usr/lib/libjpeg.so.7
lrwxrwxrwx 1 root root 16 2010-01-09 11:40 /usr/lib/libjpeg.so.7 -> libjpeg.so.7.0.0

$ equery belongs  libjpeg.so.7.0.0
[ Searching for file(s) libjpeg.so.7.0.0 in *... ]
media-libs/jpeg-7 (/usr/lib64/libjpeg.so.7.0.0)
app-emulation/emul-linux-x86-baselibs-20091231 (/usr/lib32/libjpeg.so.7.0.0)


Can there be a problem with the 64 and 32 bit libraries?


Last edited by WillemM on Tue Jan 26, 2010 7:38 pm; edited 1 time in total
Back to top
View user's profile Send private message
pianosaurus
l33t
l33t


Joined: 19 Apr 2004
Posts: 944
Location: Bash$

PostPosted: Tue Jan 12, 2010 10:59 pm    Post subject: Reply with quote

Could you post your emerge --info. If your CFLAGS are aggressive, you could try with just -O2.
_________________
PKA Cuber
Please add [SOLVED] to the subject of your original post when you feel that your problem is resolved.
Adopt an unanswered post
Back to top
View user's profile Send private message
salahx
Guru
Guru


Joined: 12 Mar 2005
Posts: 533

PostPosted: Wed Jan 13, 2010 4:35 am    Post subject: Reply with quote

You're not the only one with this problem (and mine is on a 32-but system): https://bugs.gentoo.org/show_bug.cgi?id=293919
Back to top
View user's profile Send private message
WillemM
n00b
n00b


Joined: 01 Dec 2007
Posts: 11

PostPosted: Wed Jan 13, 2010 7:29 am    Post subject: Reply with quote

Cuber wrote:
Could you post your emerge --info. If your CFLAGS are aggressive, you could try with just -O2.


As far as I know my CFLAGS are standard. Thanks for your advise.

Code:
# emerge --info               
Portage 2.1.6.13 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r5 x86_64)                                                         
=================================================================               
System uname: Linux-2.6.29-gentoo-r5-x86_64-AMD_Athlon-tm-64_X2_Dual_Core_Processor_3800+-with-gentoo-1.12.13                                                   
Timestamp of tree: Thu, 07 Jan 2010 06:15:02 +0000                             
app-shells/bash:     4.0_p35                                                   
dev-java/java-config: 2.1.9-r2                                                 
dev-lang/python:     2.6.4                                                     
dev-python/pycrypto: 2.1.0_beta1                                               
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.4_p6, 1.5, 1.6.3, 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.6b                                                     
virtual/os-headers:  2.6.27-r2                                                 
ACCEPT_KEYWORDS="amd64"                                                         
CBUILD="x86_64-pc-linux-gnu"                                                   
CFLAGS="-march=k8 -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/X11/xkb /usr/share/config /var/bind"                           
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=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.tiscali.nl/ "
LANG="en_US.UTF8"
LDFLAGS="-Wl,-O1"
LINGUAS="nl en"
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/layman/ftd4linux /usr/local/portage/layman/lottanzb /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aac acl alsa amd64 apache2 audiofile avi bacula-console berkdb bitmap-fonts bzip2 cdda cddb cdr cli cracklib crypt ctype cups cxx dba dbus dri dv dvb dvd dvdread eds emboss encode esd ethereal exif expat fam fastbuild ffmpeg foomaticdb force-cgi-redirect fortran ftp gd gdbm gif glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml hal iconv idn imap imlib ipv6 jpeg kde lcms ldap lm_sensors logitech-mouse lzw lzw-tiff mad mbox memlimit midi mjpeg mmx mng modules mozilla mp3 mpeg mpm-worker mudflap multilib mysql ncurses nls nptl nptlonly nsplugin opengl openmp pam pcre pdflib perl png pop3d posix pppd python qt qt3support quicktime readline reflection rtsp samba sdl session simplexml soap sockets spell spl sse sse2 ssl swat sysfs tcltk tcpd threads tiff tk tokenizer truetype truetype-fonts type1-fonts udev unicode usb userlocales v4l vcd virtual-users wxwindows xine xml xml2 xorg xpm xprint xsl xulrunner xv xvid zlib zvbi" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="nl en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Fri Jan 15, 2010 2:22 pm    Post subject: Reply with quote

To solve this on my system I downgraded to jpeg-6b and masked the broken "stable" jpeg libraries (yes jpeg-8 does not work either). Then rebuilt mjpegtools.

Since the ebuild is no longer in portage I recreated it in my overlay.

http://github.com/drescherjm/jmdgentoooverlay/tree/master/media-libs/jpeg/

[EDIT]Hmm. jpeg-6b is back in portage today so no need for an overlay...[/EDIT]
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
WillemM
n00b
n00b


Joined: 01 Dec 2007
Posts: 11

PostPosted: Tue Jan 26, 2010 7:39 pm    Post subject: Reply with quote

Installed media-video/mjpegtools (~)1.9.0-r1 and media-libs/jpeg (~)8 and mytharchive is back again.

Thanks for your advise.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum