Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 283406 - kde-base/kdm: unable to start with media-libs/jpeg-7 [solved]
Summary: kde-base/kdm: unable to start with media-libs/jpeg-7 [solved]
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-01 12:57 UTC by Darren Dale
Modified: 2009-11-27 09:43 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 Darren Dale 2009-09-01 12:57:53 UTC
I recently upgraded to media-libs/jpeg-7 and afterwords ran "emerge @preserved-rebuild". When that was done, I rebooted and was then unable to start kdm, which crashed with a segfault. The crash report claimed that kdmgreet had crashed, and the stack trace indicated that QtGui's libqjpeg had called libjpeg, and libjpeg had crashed. I tried rebuilding kdm, qtgui, kdelibs, and finally I remerged my entire system, and still could not start kdm. 

I finally found bug #283241, a tracker for jpeg-7 incompatibilities, and tried masking ">=media-libs/jpeg-7" and updated and ran "emerge @preserved-rebuild" again. Then I rebooted and now I can log in again.

I would consider this a critical or blocker bug, but I'd rather let the gentoo devs be the judge of that.

Reproducible: Always

Steps to Reproduce:




Portage 2.2_rc40 (default/linux/amd64/2008.0/desktop, gcc-4.4.1, glibc-2.10.1-r0, 2.6.30-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r6-x86_64-Dual_Core_AMD_Opteron-tm-_Processor_275-with-gentoo-2.0.1
Timestamp of tree: Tue, 01 Sep 2009 12:30:01 +0000
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.9
dev-lang/python:     2.6.2-r1, 3.1.1
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.4-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.1
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, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -mtune=k8 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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="-O2 -march=k8 -mtune=k8 -pipe -fomit-frame-pointer"
DISTDIR="/home/distfiles"
FEATURES="assume-digests distlocks fixpackages parallel-fetch preserve-libs sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US"
MAKEOPTS="-j5"
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/science /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl acpi alsa amd64 apache2 atlas avahi bash-completion berkdb blas bluetooth bookmarks branding bzip2 cairo cblas cdr cleartype cli consolekit cracklib crypt ctype cups dbus dirac doc dri dts dvd dvdr eds emacs emboss encode esd evo examples f77 fam fftw firefox flac foomativdb fortran gdbm gfortran gif gimpprint glitz gnome gpm gstreamer gtk hal iconv imagemagick imap isdnlog ivman java jpeg jpeg2k kde kdrive kpathsea lapack latex ldap libnotify lzo mad mdnsresponder-compat mikmod mime mmap mmx mozbranding mozilla mozsvg mp3 mp4 mpeg mplayer mudflap multilib multislot mysql ncurses newspr nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdf perl pertty pic png policykit postgres ppds pppd python qt3support qt4 quicktime readline reflection rss samba sdl semantic-desktop session spell spl sse sse2 ssl startup-notification subversion svg symlink sysfs tcpd threads thunar tiff transparency truetype umfpack unicode usb v4l v4l2 vorbis webdav webkit winbind x264 xcomposite xfs xft xml xorg xulrunner xv xvid zeroconf zlib" 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="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="nvidia vga nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2009-09-01 13:33:07 UTC
No useful information provided. Need specific information on which file in which package is needing old jpeg. Or backtrace. Or linking information. Any date that would help solving the issue since kdm is working fine here.
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2009-09-01 13:33:40 UTC
(In reply to comment #1)
> date that would help solving the issue since kdm is working fine here.

*data
Comment 3 Darren Dale 2009-09-01 13:51:02 UTC
(In reply to comment #1)
> No useful information provided. Need specific information on which file in
> which package is needing old jpeg. Or backtrace. Or linking information. Any
> date that would help solving the issue since kdm is working fine here.

Classic. No suggestion on how I can provide it? Just mark it resolved and look the other way? I protest.
Comment 5 Darren Dale 2009-09-01 15:58:20 UTC
Now that someone else on the forum seems to have had the same problem as I reported (see comment #4), I would like to request that the bug be reopened long enough for others to find it and post the requested data. 
Comment 6 DaggyStyle 2009-09-01 17:58:38 UTC
as requested, I have upgraded to version 7, had some breakage, revdep-rebuild had fixed it, the only thing I can see different is that I don't use Portage 2.2, I use the latest stable one. I can guess that using the sets won't repair the breakage in some way.
Comment 7 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-09-02 09:04:26 UTC
Darren can you re-install jpeg-7 and this time run 

  revdep-rebuild

from app-portage/gentoolkit package instead of "emerge @preserved-rebuild"? Pleaase report your success/failures back here.
Comment 8 Robin Bankhead 2009-09-02 12:23:50 UTC
revdep-rebuild seemed to iron out all these related issues for me (apologies if this is not true for others).

I would have thought the need for this step should have been einfo'd in jpeg-7.ebuild...
Comment 9 Darren Dale 2009-09-02 12:42:00 UTC
(In reply to comment #7)
> Darren can you re-install jpeg-7 and this time run 
> 
>   revdep-rebuild
> 
> from app-portage/gentoolkit package instead of "emerge @preserved-rebuild"?
> Pleaase report your success/failures back here.

I will do so, but don't understand why that would work when running "emerge @preserved-rebuild" and then "emerge -e @system @world" did not.

I'll report my results.

Comment 10 Darren Dale 2009-09-02 13:06:36 UTC
(In reply to comment #9)
> (In reply to comment #7)
> > Darren can you re-install jpeg-7 and this time run 
> > 
> >   revdep-rebuild
> > 
> > from app-portage/gentoolkit package instead of "emerge @preserved-rebuild"?
> > Pleaase report your success/failures back here.
> 
> I will do so, but don't understand why that would work when running "emerge
> @preserved-rebuild" and then "emerge -e @system @world" did not.
> 
> I'll report my results.
> 

I unmasked ">=jpeg-7", ran "emerge -uDN @system @world", and then ran "revdep-rebuild -p" which yielded no packages that need to be rebuilt. I don't think this is surprising, since libjpeg.so.62.0.0 and libjpeg.so are still present on my system.

At this point, I think I should try to reboot, I don't think there will be problems until I run "emerge @preserved-rebuild". If the reboot works, I'll do preserved-rebuild and revdep-rebuild again, reboot, and report back.
Comment 11 Darren Dale 2009-09-02 13:16:42 UTC
rebooting was successful, now I will run preserved-rebuild again:

$ sudo emerge @preserved-rebuild -p
Password:

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-libs/tiff-3.8.2-r8
[ebuild   R   ] media-libs/jasper-1.900.1-r3
[ebuild   R   ] media-libs/gd-2.0.35
[ebuild   R   ] media-libs/libmng-1.0.10
[ebuild   R   ] net-libs/libvncserver-0.9.7
[ebuild   R   ] dev-python/imaging-1.1.6-r1
[ebuild   R   ] media-video/mplayer-1.0_rc2_p20090731-r1
[ebuild   R   ] media-gfx/sane-backends-1.0.20-r1
[ebuild   R   ] media-libs/libgphoto2-2.4.7
[ebuild   R   ] dev-python/pygame-1.8.1-r1
[ebuild   R   ] dev-libs/poppler-0.10.7
[ebuild   R   ] media-gfx/imagemagick-6.5.4.10
[ebuild   R   ] media-libs/lcms-1.18-r1
[ebuild   R   ] www-client/links-2.2
[ebuild   R   ] media-gfx/blender-2.49a
[ebuild   R   ] media-libs/imlib2-1.4.2-r1
[ebuild   R   ] media-libs/vigra-1.6.0
[ebuild   R   ] net-print/cups-1.3.11
[ebuild   R   ] x11-libs/gtk+-2.16.5
[ebuild   R   ] x11-libs/qt-gui-4.5.2-r2
[ebuild   R   ] app-text/ghostscript-gpl-8.70-r1
[ebuild   R   ] net-libs/webkit-gtk-1.1.10
[ebuild   R   ] media-libs/libquicktime-1.1.3
[ebuild   R   ] media-libs/gegl-0.1.0
[ebuild   R   ] net-libs/xulrunner-1.9.1.2-r2
[ebuild   R   ] media-gfx/graphviz-2.24.0
[ebuild   R   ] kde-base/kdelibs-4.3.0
[ebuild   R   ] media-gfx/gimp-2.6.7
[ebuild   R   ] net-libs/libproxy-0.2.3-r2
[ebuild   R   ] media-video/transcode-1.1.4
[ebuild   R   ] net-print/gutenprint-5.2.3
[ebuild   R   ] media-gfx/pstoedit-3.45
[ebuild   R   ] net-print/hplip-3.9.4b-r1
[ebuild   R   ] kde-base/libkdcraw-4.3.0
[ebuild   R   ] kde-base/gwenview-4.3.0
[ebuild   R   ] kde-base/kdebase-kioslaves-4.3.0
[ebuild   R   ] kde-base/krdc-4.3.0
[ebuild   R   ] kde-base/okular-4.3.0
[ebuild   R   ] kde-base/krfb-4.3.0
 
Comment 12 Darren Dale 2009-09-02 17:07:13 UTC
Ok, I tried running emerge @preserved-rebuild, as portage suggested. When it was done, portage again said it had to run @preserved-rebuild for dev-python/imaging, no matter how many times I ran it. So I deleted libjpeg.so.6* from my libs, ran "emerge -1 imaging", ran revdep-rebuild (which found no problems) and rebooted. Again, kdm segfaults before I see the login screen. Here is all the information the crash report provides:

Application: unknown (kdmgreet), signal: Segmentation fault
[KCrash Handler]
#4  0x00007fffac2e3cdc in jpeg_CreateDecompress () from /usr/lib64/libjpeg.so.7
#5  0x00007fffab08456f in ?? () from /usr/lib64/qt4/plugins/imageformats/libqjpeg.so
#6  0x00007fffb35392b4 in QImageReader::read () from /usr/lib64/qt4/libQtGui.so.4
#7  0x00007fffb353980c in QImageReader::read () from /usr/lib64/qt4/libQtGui.so.4
#8  0x00007fffb3528ad6 in QImage::load () from /usr/lib64/qt4/libQtGui.so.4
#9  0x000000000044294b in ?? ()
#10 0x0000000000442e69 in ?? ()
#11 0x000000000043bf93 in ?? ()
#12 0x000000000043c1c5 in ?? ()
#13 0x000000000043c66c in ?? ()
#14 0x00000000004416ce in ?? ()
#15 0x000000000044d0d3 in ?? ()
#16 0x000000000043cb38 in ?? ()
#17 0x0000000000438c87 in ?? ()
#18 0x0000000000436a35 in ?? ()
#19 0x00007fffb2824a2d in __libc_start_main () from /lib/libc.so.6
#20 0x0000000000418829 in _start ()
Comment 13 Tomáš Chvátal (RETIRED) gentoo-dev 2009-09-07 11:52:43 UTC
Just hint:
if you see in your backtrace more 0 or ? than any other character it is worthless :]
Comment 14 Darren Dale 2009-09-08 14:38:49 UTC
Based on comments toward the end of https://bugs.kde.org/show_bug.cgi?id=204232, I went looking for jpeg-6 headers that may have been lingering an my system. I found a complete jpeg-6 installation in /usr/local, including headers. I don't know how they got there, but I'm guessing that some package picked up headers from usr/local and libjpeg.so.7 from /usr. I'm cleaning out my /usr/local and upgrading to jpeg-7 again, I'm almost certain this was the problem.

I'll mark this as resolved/invalid and beg the forum's pardon.
Comment 15 Darren Dale 2009-09-09 13:25:37 UTC
I've just confirmed that the jpeg-6 installation in /usr/local was indeed the problem. I also tracked down the package that put it there, a scientific application not supported by portage. 
Comment 16 Karsten Hiddemann 2009-11-27 09:43:29 UTC
Just an information for other people searching for the backtrace message:

You have been linking against the wrong media-libs/jpeg version. If you re-emerge it, then you should see the following post-install message:

 * Old versions of installed libraries were detected on your system.
 * In order to avoid breaking packages that depend on these old libs,
 * the libraries are not being removed.  You need to run revdep-rebuild
 * in order to remove these old dependencies.  If you do not have this
 * helper program, simply emerge the 'gentoolkit' package.
 *
 *   # revdep-rebuild --library libjpeg.so.62
 *
 * Once you've finished running revdep-rebuild, it should be safe to
 * delete the old libraries.  Here is a copy & paste for the lazy:
 *   # rm '/usr/lib/libjpeg.so.62'