Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 334115

Summary: emerge x11-libs/pango fails: pango-querymodules segmentation fault
Product: Gentoo Linux Reporter: Tibor Mezei <zemei88>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED FIXED    
Severity: normal CC: hwoarang
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: x11-libs/pango build log

Description Tibor Mezei 2010-08-23 18:13:51 UTC
I've tried this versions: 1.26.2, 1.28.1

During emerge x11-libs/pango:

Writing a pango.modules file to use with tests/examples.
/bin/sh: line 9: 25166 Segmentation fault    ../pango/pango-querymodules `find . -name '*.la' | grep -v '\.libs' | grep -v libpango` > pango.modules

The segmentation fault occurs in the file:
/var/tmp/portage/x11-libs/pango-1.28.1/work/pango-1.28.1/pango/pango-querymodules
at the line number 118:
      exec "$progdir/$program" ${1+"$@"}

which calls:
/var/tmp/portage/x11-libs/pango-1.28.1/work/pango-1.28.1/pango/.libs/pango-querymodules with parameters



Reproducible: Always

Steps to Reproduce:
1. emerge pango




emerge --info:

shell-init: error retrieving current directory: getcwd: cannot access parent directories: Nincs ilyen fájl vagy könyvtár
Portage 2.1.8.3 (default/linux/amd64/10.0/desktop, gcc-4.4.3, glibc-2.11.2-r0, 2.6.33.1 x86_64)
=================================================================
System uname: Linux-2.6.33.1-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-1.12.13
Timestamp of tree: Mon, 23 Aug 2010 17:25:01 +0000
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64-sse3 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
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/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=athlon64-sse3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.inode.at/ http://gentoo.inf.elte.hu/ "
LC_ALL="hu_HU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en hu"
MAKEOPTS="-j8"
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"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk hal iconv ipv6 jpeg lcms ldap libnotify lock mad mikmod mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png ppds pppd python qt3support readline reflection sdl session spl sse sse2 sse3 sse4a ssl startup-notification svg sysfs tcpd thunar tiff truetype unicode usb vdpau vorbis x264 xcb xml xorg xulrunner xv xvid 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 authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid 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" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en hu" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Tibor Mezei 2010-08-23 18:17:06 UTC
Created attachment 244253 [details]
x11-libs/pango build log
Comment 2 Tibor Mezei 2010-08-23 18:22:05 UTC
I've also tried these:

a, revdep-rebuild 
   Result: trying to build pango first (fails)

b, emerge -eav system 
   Result: fails when reach package pango
Comment 3 Eray Aslan gentoo-dev 2010-08-24 14:48:02 UTC
Lots of errors in the build log.  Looks like a borked system.  Can you emerge anything at all, i.e is it only pango that is failing?
Comment 4 Tibor Mezei 2010-08-25 08:20:21 UTC
I've done a complete system recompile.
These are the failing packages:

media-libs/faac-1.28-r1
dev-libs/nss-3.12.7
x11-libs/gtk+-2.20.1-r1
x11-libs/libwnck-2.30.2
dev-cpp/gtkmm-2.20.3
media-gfx/geeqie-1.0-r1
dev-libs/dbus-glib-0.86
app-text/texlive-core-2008-r7
app-text/rarian-0.8.1-r1
media-libs/smpeg-0.4.4-r9
games-emulation/dosbox-0.74
x11-libs/pango-1.28.1
x11-libs/wxGTK-2.8.10.1-r5
net-ftp/proftpd-1.3.3a
x11-libs/qt-opengl-4.6.2
net-libs/xulrunner-1.9.2.8-r1
www-client/firefox-3.6.8-r1
app-text/pdftk-1.41-r1
media-gfx/gimp-2.6.8
Comment 5 Markos Chandras (RETIRED) gentoo-dev 2010-08-25 14:12:24 UTC
-march=athlon64-sse3 ?

afaik there is no such march. Change it with -march=athlon64 -sse3 or
Comment 6 Tibor Mezei 2010-08-25 14:52:08 UTC
Actually -march=athlon64-sse3 exists
according to gcc manual: http://gcc.gnu.org/onlinedocs/gcc-4.4.4/gcc/i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options

But with -march=native i find out that
the correct setting for my cpu is: -march=amdfam10

Thanks for the advise!

Unfortunately this is not helping to emerge the failing packages. :(
Comment 7 Markos Chandras (RETIRED) gentoo-dev 2010-08-25 14:58:55 UTC
Lots of .la problems

emerge lafilefixer && lafilefixer --justfixit
Comment 8 Tibor Mezei 2010-08-25 15:25:28 UTC
I've tried "lafilefixer --justfixit", but the emerge has the same result.
Comment 9 Tibor Mezei 2010-08-26 18:01:46 UTC
According to the emerge --info I have glibc-2.11.2-r0, but when I searched after the .so file this is what I got:

zemei-desktop ~ # ls -l /usr/lib/libc.so.6 
lrwxrwxrwx 1 root root 14 ápr    2 01.38 /usr/lib/libc.so.6 -> libc-2.10.1.so

It seems that I have 2.10.1 version in binary.
After re-emerging (no errors, seems ok) the glibc package I have the same name and date for the library.
Comment 10 Tibor Mezei 2010-08-27 09:06:59 UTC
I fixed it.

The problem was:
glibc-2.11 installed at / , but not removed the old version (2.10) from /usr.
Some package tried to use the glibc which is in /usr directory.

The solution was:
- filter and delete the orphan files from /usr/lib
- rebuild the whole system (emerge -eav system)

I have a last question:
Is it safe to remove orphan files from any /usr subdirectory?