Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 315345 - app-text/calibre fails to build due to segfault in libuuid with >=sys-apps/util-linux-2.17.1
Summary: app-text/calibre fails to build due to segfault in libuuid with >=sys-apps/ut...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Zac Medico
URL:
Whiteboard:
Keywords: InVCS
: 318765 321183 (view as bug list)
Depends on: 317557 353224
Blocks:
  Show dependency tree
 
Reported: 2010-04-14 21:32 UTC by Michael Gaber
Modified: 2012-08-30 03:08 UTC (History)
15 users (show)

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


Attachments
build log (environment,176.84 KB, text/plain)
2010-04-14 21:33 UTC, Michael Gaber
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Gaber 2010-04-14 21:32:58 UTC
when i try to build current calibre setup.py segfaults

Reproducible: Always




keksdose-mobile ~ # emerge --info =app-text/calibre-0.6.47 
Portage 2.2_rc67 (default/linux/x86/10.0, gcc-4.4.3, glibc-2.11-r1, 2.6.33-gentoo-r1 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.33-gentoo-r1-i686-Intel-R-_Core-TM-2_CPU_T7200_@_2.00GHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 14 Apr 2010 19:15:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p5
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.5-r1, 3.1.2-r2
dev-python/pycrypto: 2.1.0
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
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
sys-devel/gcc:       4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /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/gentoo-release /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"
CPPFLAGS="-O2 -march=native -pipe -fomit-frame-pointer -ggdb"
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS=" http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j10 -l3"
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="/var/lib/layman/mozilla /var/lib/layman/x11 /var/lib/layman/java-overlay /var/lib/layman/lxde /usr/local/portage"
SYNC=" rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X aac acl acpi alsa avahi bash-completion berkdb bluetooth bzip2 caps cdda cddb cdparanoia cdr cli cracklib crypt css cups cxx dbus dga dri dvd dvdr encode exif fastcgi fftw firefox flac fortran ftp gdbm gif gnutls gpm gtk hal iconv idn imap ipod ipv6 jabber java java6 jpeg kerberos latex ldap libnotify matroska mime mmx mmxext modules mp3 mpeg mudflap mysql mysqli ncurses nls nptl nptlonly nsplugin offensive ogg opengl openmp pam pcmcia pcre pdf perl php png ppds pppd python qt3support qt4 raw readline reflection samba scanner session smp spl sse sse2 sse3 ssl ssse3 subversion svg symlink sysfs syslog tcpd theora threads tiff truetype unicode usb v4l vcd vorbis wifi win32codecs wmf x264 x86 xattr xcb xcomposite xinerama xml xorg xpm xulrunner xv zeroconf 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 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" QEMU_SOFTMMU_TARGETS="arm mipsel i386" QEMU_USER_TARGETS="arm mipsel i386" RUBY_TARGETS="ruby18" SANE_BACKENDS="artec_eplus48u" USERLAND="GNU" VIDEO_CARDS="radeon radeonhd ati vesa" 
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


keksdose-mobile ~ # emerge -pqv =app-text/calibre-0.6.47
[ebuild     U ] app-text/calibre-0.6.47 [0.6.45] USE="bash-completion"
Comment 1 Michael Gaber 2010-04-14 21:33:51 UTC
Created attachment 227803 [details]
build log
Comment 2 Zac Medico gentoo-dev 2010-04-14 23:31:46 UTC
I guess the segfault is in python or in a python module that's imported. Can you try rebuilding python?
Comment 3 Michael Gaber 2010-04-15 14:48:52 UTC
did it twice already, didnt help
Comment 4 Vadim Dyadkin 2010-04-15 15:19:27 UTC
I have the same experience. During the calibre building or the adding the book into the previous version, python segfaults in libuuid.1.3.0 lib.
Comment 5 Zac Medico gentoo-dev 2010-04-15 17:13:10 UTC
(In reply to comment #4)
> I have the same experience. During the calibre building or the adding the book
> into the previous version, python segfaults in libuuid.1.3.0 lib.

Calibre built successfully for me with /lib/libuuid.so.1.3.0 provided by sys-apps/util-linux-2.17.2 here. Maybe you just need to upgrade util-linux.
Comment 6 Vadim Dyadkin 2010-04-15 17:30:53 UTC
> Calibre built successfully for me with /lib/libuuid.so.1.3.0 provided by
> sys-apps/util-linux-2.17.2 here. Maybe you just need to upgrade util-linux.
> 

I have the same version of util-linux and python-2.6.5-r1. I tried to downgrade python to 2.6.4, but it didn't help. 
Comment 7 Zac Medico gentoo-dev 2010-04-15 18:03:42 UTC
It's working here with python-2.6.5-r1 and util-linux-2.17.2:

[ebuild   R   ] sys-apps/util-linux-2.17.2  USE="crypt nls perl slang unicode -loop-aes -old-linux (-selinux) (-uclibc)" 
[ebuild   R   ] dev-lang/python-2.6.5-r1  USE="doc gdbm ipv6 ncurses readline sqlite ssl threads tk (wide-unicode) xml -berkdb -build -examples -wininst"

Maybe it's a toolchain issue. It's working here with gcc-4.3.4 and here's my trimmed --info:

Portage 2.2_rc67_p69 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.11-r1, 2.6.33-0402-x86-64 i686)
=================================================================
System uname: Linux-2.6.33-0402-x86-64-i686-Intel-R-_Core-TM-2_CPU_6300_@_1.86GHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 31 Mar 2010 15:30:23 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     4.1_p2-r1
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.5-r1, 3.1.2-r1
dev-python/pycrypto: 2.1.0
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.4_p6-r1, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.3.4, 4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="x86 ~x86"
CFLAGS="-march=i686 -pipe -O2"
CHOST="i686-pc-linux-gnu"
LDFLAGS="-Wl,--as-needed,--hash-style=gnu"

You might try using this guide to get a backtrace:

  http://www.gentoo.org/proj/en/qa/backtraces.xml
Comment 8 Vadim Dyadkin 2010-04-16 08:09:13 UTC
(In reply to comment #7)
> It's working here with python-2.6.5-r1 and util-linux-2.17.2:
> 
> [ebuild   R   ] sys-apps/util-linux-2.17.2  USE="crypt nls perl slang unicode
> -loop-aes -old-linux (-selinux) (-uclibc)" 
> [ebuild   R   ] dev-lang/python-2.6.5-r1  USE="doc gdbm ipv6 ncurses readline
> sqlite ssl threads tk (wide-unicode) xml -berkdb -build -examples -wininst"
> 

Everything seem to be the same. The only difference that my world has been built with gcc-4.4.3
Comment 9 Vadim Dyadkin 2010-04-17 14:59:37 UTC
(In reply to comment #7)
> It's working here with python-2.6.5-r1 and util-linux-2.17.2:
> 

The downgrade to util-linux-2.16.2 has resolved this problem for me.
Comment 10 Vadim Dyadkin 2010-04-17 15:02:11 UTC
util-linux-2.17-r1 also works
Comment 11 Michael Gaber 2010-04-17 18:23:05 UTC
downgrade to util-linux-2.16.2 worked, 2.17.1 did not, didn't test between versions.
Comment 12 Kovid Goyal 2010-04-28 13:17:35 UTC
See http://bugs.gentoo.org/show_bug.cgi?id=317557 for details on this 
Comment 13 Chris Smith 2010-04-30 20:01:15 UTC
same problem with app-text/calibre-0.6.49 and app-text/calibre-0.6.50
Comment 14 Victor Orozco 2010-05-03 08:40:06 UTC
same problem with app-text/calibre-0.6.49 but the util-linux-2.17-r1 fix the problem
Comment 15 August Hörandl 2010-05-05 20:58:28 UTC
same problem with app-text/calibre-0.6.51
Comment 16 Bernard Cafarelli gentoo-dev 2010-05-07 14:03:33 UTC
*** Bug 318765 has been marked as a duplicate of this bug. ***
Comment 17 Guy 2010-05-08 00:27:48 UTC
emerge =util-linux-2.16.2 && emerge calibre && emerge util-linux

Will work to get past the problem until a real fix is available.
Comment 18 Vadim Dyadkin 2010-05-08 09:16:56 UTC
(In reply to comment #17)
> emerge =util-linux-2.16.2 && emerge calibre && emerge util-linux
> 
> Will work to get past the problem until a real fix is available.
> 

It doesn't help: in this case calibre can't add the book into its list.
Comment 19 Zac Medico gentoo-dev 2010-05-24 06:25:17 UTC
*** Bug 321183 has been marked as a duplicate of this bug. ***
Comment 20 Guy 2010-05-28 01:18:21 UTC
(In reply to comment #18)
> (In reply to comment #17)
> > emerge =util-linux-2.16.2 && emerge calibre && emerge util-linux
> > 
> > Will work to get past the problem until a real fix is available.
> > 
> 
> It doesn't help: in this case calibre can't add the book into its list.
> 

You're correct. Trying the same thing with util-linux-2.17-r1 resulted in a calibre that wouldn't start.

The only thing this work-past does is get calibre updated so that it's failure stops interfering with "emerge -uND world".

The situation sucks. 

And while we're on the topic of calibre issues, it would be nice if the calibre udev rules were updated from the deprecated SYSFS{} directive to the ATTR{} directive.

{sigh}
Comment 21 Diego Stamigni 2010-06-03 12:33:09 UTC
(In reply to comment #20)
> (In reply to comment #18)
> > (In reply to comment #17)
> > > emerge =util-linux-2.16.2 && emerge calibre && emerge util-linux
> > > 
> > > Will work to get past the problem until a real fix is available.
> > > 
> > 
> > It doesn't help: in this case calibre can't add the book into its list.
> > 
> 

this appear to be also in =calibre-0.6.53 & =calibre-0.6.55
> You're correct. Trying the same thing with util-linux-2.17-r1 resulted in a
> calibre that wouldn't start.
> 
> The only thing this work-past does is get calibre updated so that it's failure
> stops interfering with "emerge -uND world".
> 
> The situation sucks. 
> 
> And while we're on the topic of calibre issues, it would be nice if the calibre
> udev rules were updated from the deprecated SYSFS{} directive to the ATTR{}
> directive.
> 
> {sigh}
> 

Comment 22 Rajat Vig 2010-06-10 12:33:54 UTC
app-text/calibre-0.7.1 doesn't compile as well.
Comment 23 Reuben Martin 2010-06-12 19:35:36 UTC
0.7.1 does compile, it's just failing to install.

/var/tmp/portage/app-text/calibre-0.7.1/temp/environment: line 1424:  8487 Segmentation fault      "$(PYTHON)" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" install --root="${D}" --no-compile "$@"
 * ERROR: app-text/calibre-0.7.1 failed:
 *   Installation failed
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_install
 *   environment, line 4853:  Called distutils_src_install '--bindir=/var/tmp/portage/app-text/calibre-0.7.1/image/usr/bin' '--sharedir=/var/tmp/portage/app-text/calibre-0.7.1/image/usr/share'
 *   environment, line 1441:  Called die
 * The specific snippet of code:
 *           "$(PYTHON)" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" install --root="${D}" --no-compile "$@" || die "Installation failed";
Comment 24 Zac Medico gentoo-dev 2010-06-16 02:20:42 UTC
The 0.7.2 ebuild has a workaround that looks like this:

uuid=$(python -c 'import sys, uuid; sys.stdout.write(str(uuid.uuid4()))')
sed -e "s:str(uuid.uuid4()):'$uuid':" -i src/calibre/utils/config.py
Comment 25 Zac Medico gentoo-dev 2010-08-30 01:41:09 UTC
According the the Changelog, upstream as included a workaround for this since calibre-0.7.15 (and it seems to work here).