First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 143753
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo's Team for Core System packages <base-system@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: radfoj <radfoj@seznam.cz>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
prelink-20060712-deps_cmp.patch prelink-20060712-deps_cmp.patch patch Martin von Gagern 2006-08-25 02:52 0000 711 bytes Details | Diff
prelink-20060712.ebuild ebuild applying prelink-20060712-deps_cmp.patch text/plain Gianluca Parmiggiani 2006-11-17 02:12 0000 2.30 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 143753 depends on: Show dependency tree
Show dependency graph
Bug 143753 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-08-13 03:08 0000
Hi, I am long time prelink user, which start to use cron job for it after it
was added with sys-devel/prelink-20060213. But I realized, its somehow borked
right now:

# cat /var/log/prelink.log
/usr/sbin/prelink -av -mR -q
Prelink failed with return value 139

Calculating dependencies... done!
[ebuild   R   ] sys-devel/prelink-20060712  0 kB

/etc/conf.d/prelink contains lines:
PRELINKING=yes
PRELINK_OPTS=-mR
PRELINK_FULL_TIME_INTERVAL=14
PRELINK_NOEMER_CHECK_INTERVAL=7

If you need some additional info, I am prepare to add it here. Thanks

# emerge --info
>>> cfg-update-1.8.0-r3 : No new packages have been emerged, checksum index OK...
Portage 2.1.1_pre5 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.3.6-r4,
2.6.17-ck1-r2 i686)
=================================================================
System uname: 2.6.17-ck1-r2 i686 AMD Athlon(tm) processor
Gentoo Base System version 1.12.4
Last Sync: Sun, 13 Aug 2006 08:30:01 +0000
ccache version 2.4 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon -pipe -fomit-frame-pointer"
CHOST="i686-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"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon -pipe -fomit-frame-pointer"
DISTDIR="/mnt/mandrake/opt/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US"
LDFLAGS="-Wl,-O1"
LINGUAS="cs"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/xgl-coffee
/usr/portage/local/layman/sunrise"
SYNC="rsync://necropolis.bilovec/gentoo-portage"
USE="x86 3dnow X aac acpi alsa apache2 asf audiofile avi bash-completion berkdb
bitmap-fonts bzip2 cairo cdparanoia cdr cli crypt cups curl dbus dlloader dri
dts dvd dvdread elibc_glibc encode exif expat ffmpeg firefox flac flash
foomaticdb fortran ftp gd gdbm gif glut gmp gpm gtk gtk2 hal iconv icq idn
imlib input_devices_keyboard input_devices_mouse jabber java jpeg kde
kdeenablefinal kdehiddenvisibility kernel_linux lcms libg++ libwww linguas_cs
logrotate mad mikmod mime mmx mng mono motif moznoirc moznomail mozsvg mp3 mpeg
musepack mysql nas ncurses nls nptl nptlonly nsplugin nvidia ogg opengl pam
pcre pdf pdflib perl php pic png python qt3 quicktime readline reflection ruby
sdl session slang sndfile spell spl ssl svg tcpd theora tiff truetype
truetype-fonts type1-fonts udev userland_GNU video_cards_nvidia vorbis
win32codecs wma xine xml xorg xprint xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL,
PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #1 From Ryan Hill 2006-08-17 19:15:38 0000 -------
(gdb) r
Starting program: /usr/sbin/prelink -av -mR -q
warning: shared library handler failed to enable breakpoint

Program received signal SIGSEGV, Segmentation fault.
deps_cmp (A=0xbf83cb00, B=0xbf83cba8) at cache.c:344
344     cache.c: No such file or directory.
        in cache.c
(gdb) bt
#0  deps_cmp (A=0xbf83cb00, B=0xbf83cba8) at cache.c:344
#1  0x080948e4 in msort_with_tmp ()
#2  0x080947bd in msort_with_tmp ()
#3  0x080947a1 in msort_with_tmp ()
#4  0x080947a1 in msort_with_tmp ()
#5  0x080947a1 in msort_with_tmp ()
#6  0x080947a1 in msort_with_tmp ()
#7  0x0809498a in qsort ()
#8  0x08048e65 in prelink_load_cache () at cache.c:465
#9  0x080592b7 in main (argc=4, argv=0xbf83f724) at main.c:415
#10 0x0808d542 in __libc_start_main ()


# emerge --info
Portage 2.1.1_pre5-r2 (default-linux/x86/2006.0, gcc-4.0.3, glibc-2.4-r3,
2.6.17.8 i686)
=================================================================
System uname: 2.6.17.8 i686 Genuine Intel(R) CPU           T2300  @ 1.66GHz
Gentoo Base System version 1.12.4
Last Sync: Fri, 18 Aug 2006 00:30:08 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3, 2.17, 2.17.50.0.3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -fomit-frame-pointer -pipe -fno-ident -fweb -ggdb3"
CHOST="i686-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"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=prescott -fomit-frame-pointer -pipe -fno-ident -fweb
-ggdb3 -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache cvs digest distlocks fixpackages metadata-transfer
parallel-fetch sandbox sfperms splitdebug strict"
GENTOO_MIRRORS=" http://gentoo.osuosl.org/ http://gentoo.chem.wisc.edu/gentoo/
ftp://cs.ubishops.ca/pub/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US en_GB"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/dirtyepic/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac acpi alsa berkdb bzip2 caps cdparanoia cdr crypt cscope curl
dri dts dvd dvdr dvdread elibc_glibc encode expat fam ffmpeg fftw flac gdbm gif
gmp gnutls gtk hal imap imlib input_devices_joystick input_devices_keyboard
input_devices_mouse input_devices_synaptics java jikes jpeg kde kdeenablefinal
kdehiddenvisibility kernel_linux linguas_en linguas_en_GB linguas_en_US
lm_sensors mad mbox mmap mmx mp3 mpeg ncurses nptl nsplugin ogg opengl pam
pcmcia pdf perl pic png python qt qt3 qt4 quicktime readline ruby sdl session
sndfile spell sqlite sse sse2 ssl startup-notification svg tcpd threads
truetype urandom usb userland_GNU vcd video_cards_fglrx video_cards_radeon
vorbis win32codecs wxwindows xine xml xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL,
PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #2 From Guillaume Castagnino 2006-08-17 23:13:04 0000 -------
Same problem here.
Only occurs when using the "-q" option

As a workaround, comment PRELINK_FULL_TIME_INTERVAL in /etc/conf.d/prelink (and
so only do full prelink and disable quick mode)

------- Comment #3 From Martin von Gagern 2006-08-25 02:52:11 0000 -------
Created an attachment (id=95051) [edit]
prelink-20060712-deps_cmp.patch

This patch fixes the issue.

deps_cmp seems to expect a single NULL entry, but is unable to cope with two
NULL entries, causing member access through a null pointer and thus SIGSEGV.

I'll email this patch to Jakub Jelinek, so it can be incorporated in future
releases. BTW, the HOMEPAGE for this ebuild did not work for me, connection
refused. Maybe it's a temporary thing; let's hope so.

------- Comment #4 From Gianluca Parmiggiani 2006-10-30 06:20:52 0000 -------
is there some news? the problem is still out there.. (and on my laptop too)

------- Comment #5 From Ryan Hill 2006-11-03 23:51:26 0000 -------
why isn't this assigned to base?

------- Comment #6 From Ryan Hill 2006-11-03 23:59:30 0000 -------
http://www.redhat.com/archives/fedora-cvs-commits/2006-July/msg03403.html

------- Comment #7 From Gianluca Parmiggiani 2006-11-17 02:04:28 0000 -------
can't the patch be included in our ebuild? (like redhat is doing taking a look
to their .spec file)

I still have the same problem:

(gdb) run -av -mR -q
Starting program: /usr/sbin/prelink -av -mR -q

Program received signal SIGSEGV, Segmentation fault.
0x08048c48 in deps_cmp (A=0xaf8f8acc, B=0xaf8fb310) at cache.c:344
344     cache.c: No such file or directory.
        in cache.c
(gdb) bt
#0  0x08048c48 in deps_cmp (A=0xaf8f8acc, B=0xaf8fb310) at cache.c:344
#1  0x080a92b5 in msort_with_tmp ()
#2  0x080a93ed in qsort ()
#3  0x08049418 in prelink_load_cache () at cache.c:465
#4  0x0805f05b in main (argc=4, argv=0xaf8fb6a4) at main.c:415
(gdb) 

------- Comment #8 From Gianluca Parmiggiani 2006-11-17 02:12:50 0000 -------
Created an attachment (id=102190) [edit]
ebuild applying prelink-20060712-deps_cmp.patch

Ebuild for prelink applying patch prelink-20060712-deps_cmp.patch
It works for me.

------- Comment #9 From Ryan Hill 2006-11-18 12:54:42 0000 -------
committed upstream's patch as obvious.  thanks.

First Last Prev Next    No search results available      Search page      Enter new bug