Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 213659 - revdep-rebuild should ignore vdso/linux-gate
Summary: revdep-rebuild should ignore vdso/linux-gate
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 170220
  Show dependency tree
 
Reported: 2008-03-17 08:08 UTC by snIP3r
Modified: 2008-04-24 02:32 UTC (History)
2 users (show)

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


Attachments
bash log of revdep-rebuild (bash-x.log,850.67 KB, text/plain)
2008-03-17 09:10 UTC, snIP3r
Details

Note You need to log in before you can comment on or make changes to this bug.
Description snIP3r 2008-03-17 08:08:32 UTC
hi!

after a recent update of the portage tree and installing some updated packages i ran "revdep-rebuild". this segfaults with this message in /var/log/messages:

Mar 16 18:04:14 area52 ld-linux-x86-64[24120]: segfault at 00002b659033c960 rip 000055555555a7a8 rsp 00007fff1a76b270 error 7
Mar 16 18:04:14 area52 ld-linux.so.2[24124]: segfault at 00000000f7fd4750 rip 000000005655be71 rsp 00000000ffe29c20 error 7
Mar 16 18:04:14 area52 ld-linux.so.2[24129]: segfault at 00000000f7f74760 rip 000000005655be71 rsp 00000000ff9d77d0 error 7
Mar 16 18:04:16 area52 ld-linux-x86-64[25870]: segfault at 00002b91b1017960 rip 000055555555a7a8 rsp 00007ffff9a925a0 error 7
Mar 16 18:04:16 area52 ld-linux.so.2[25874]: segfault at 00000000f7f77750 rip 000000005655be71 rsp 00000000ff89ee90 error 7
Mar 16 18:04:16 area52 ld-linux.so.2[25879]: segfault at 00000000f7f93760 rip 000000005655be71 rsp 00000000fff58550 error 7

the latest packages that were installed are these:
sys-libs/com_err-1.40.6
sys-libs/ss-1.40.6
sys-fs/e2fsprogs-1.40.4

this was the first time the message appears. i opened a thread in the forum with no success
http://forums.gentoo.org/viewtopic-t-676046-start-0-postdays-0-postorder-asc-highlight-.html

these posts might be related:
http://forums.gentoo.org/viewtopic-t-672371-start-0-postdays-0-postorder-asc-highlight-ldlinux.html
http://forums.gentoo.org/viewtopic-t-664064-start-0-postdays-0-postorder-asc-highlight-.html

as beeing written in one of the threads the update to glibc 2.6.1 broke it, but i installed glibc 2.6.1 on 20080102 but no segfaults until yesterday. and i also  ran revdep-rebuild in the meantime with no segfaults like this.

heres my emerge --info:
area52 ~ # emerge --info
Portage 2.1.4.4 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r9 x86_64)
=================================================================
System uname: 2.6.23-gentoo-r9 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Timestamp of tree: Sun, 16 Mar 2008 16:29:01 +0000
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-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
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/fax /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/env.d /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/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=k8 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.club-internet.fr/pub/mirrors/gentoo ftp://gentoo.tiscali.nl/pub/mirror/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ http://mirror.switch.ch/ftp/mirror/gentoo/ http://mirror.bih.net.ba/gentoo/ http://gentoo.inode.at/ http://mirror.ing.unibo.it/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.modulix.net/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirror.etf.bg.ac.yu/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://mirror.muntinternet.net/pub/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.mneisen.org/ ftp://ftp.mneisen.org/gentoo http://gentoo.tiscali.nl/ http://mirror.ovh.net/gentoo-distfiles/ rsync://rsync.europe.gentoo.org/gentoo-portage/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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.gentoo.org/gentoo-portage"
USE="3dnow acl acpi amd64 apache2 apm berkdb bzip2 clearpasswd cli cracklib crypt cups curl dri dvd fortran gdbm gmp gpm iconv ipv6 isdnlog logrotate midi mmx mudflap mysql ncurses nls nodroproot nptl nptlonly oav openmp pam pcre perl pppd python readline reflection samba sasl session smartcard spl sse sse2 ssl tcpd unicode usb xml xml2 xorg 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 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" FRITZCAPI_CARDS="fcpci" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i810 mach64 mga neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY 

Reproducible: Always

Steps to Reproduce:
run revdep-rebuild
Actual Results:  
in /var/log/messages this appears:
Mar 16 18:04:14 area52 ld-linux-x86-64[24120]: segfault at 00002b659033c960 rip 000055555555a7a8 rsp 00007fff1a76b270 error 7
Mar 16 18:04:14 area52 ld-linux.so.2[24124]: segfault at 00000000f7fd4750 rip 000000005655be71 rsp 00000000ffe29c20 error 7
Mar 16 18:04:14 area52 ld-linux.so.2[24129]: segfault at 00000000f7f74760 rip 000000005655be71 rsp 00000000ff9d77d0 error 7
Mar 16 18:04:16 area52 ld-linux-x86-64[25870]: segfault at 00002b91b1017960 rip 000055555555a7a8 rsp 00007ffff9a925a0 error 7
Mar 16 18:04:16 area52 ld-linux.so.2[25874]: segfault at 00000000f7f77750 rip 000000005655be71 rsp 00000000ff89ee90 error 7
Mar 16 18:04:16 area52 ld-linux.so.2[25879]: segfault at 00000000f7f93760 rip 000000005655be71 rsp 00000000fff58550 error 7 

Expected Results:  
there should be no output in /var/log/messages while running revdep-rebuild

the actual version of gentoolkit is 0.2.3-r1, but also installing a masked version  0.2.4_rc3 did not resolve the problem.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-03-17 08:18:24 UTC
revdep-rebuild is a bash script; that's definitely not what segfaults.
Comment 2 snIP3r 2008-03-17 08:26:40 UTC
(In reply to comment #1)
> revdep-rebuild is a bash script; that's definitely not what segfaults.
> 

i know that it is a script. but it happens while executing it so i thought to open a bugreport...
Comment 3 SpanKY gentoo-dev 2008-03-17 08:45:00 UTC
it all depends on what is making it crash

run:
bash -x revdep-rebuild <whatever args you normally use> >& bash-x.log
strace -f -o strace.log -s 4096 revdep-rebuild <whatever args you normally use>

and then post those two log files as an attachment
Comment 4 snIP3r 2008-03-17 09:10:55 UTC
Created attachment 146383 [details]
bash log of revdep-rebuild
Comment 5 snIP3r 2008-03-17 09:12:51 UTC
(In reply to comment #4)
> Created an attachment (id=146383) [edit]
> bash log of revdep-rebuild
> 

the strace file gzipped about 45mb filesize. i put it on my webserver for download:

http://area52.kicks-ass.org/strace.log.gz
Comment 6 SpanKY gentoo-dev 2008-03-17 11:19:35 UTC
grepping for SEGV gives us:
11794 --- SIGSEGV (Segmentation fault) @ 0 (0) ---
11798 --- SIGSEGV (Segmentation fault) @ 0 (0) ---
11803 --- SIGSEGV (Segmentation fault) @ 0 (0) ---
13548 --- SIGSEGV (Segmentation fault) @ 0 (0) ---
13552 --- SIGSEGV (Segmentation fault) @ 0 (0) ---
13557 --- SIGSEGV (Segmentation fault) @ 0 (0) ---

grepping for those pids gives us:
11794 execve("/lib64/ld-linux-x86-64.so.2", ["/lib64/ld-linux-x86-64.so.2"..., "--verify"..., "/lib/modules/2.6.24-gentoo-r3/vdso/vdso.so"...], [/* 22 vars */]) = 0
11798 execve("/lib/ld-linux.so.2", ["/lib/ld-linux.so.2"..., "--verify"..., "/lib/modules/2.6.24-gentoo-r3/vdso/vdso32-syscall.so"...], [/* 22 vars */]) = 0
11803 execve("/lib/ld-linux.so.2", ["/lib/ld-linux.so.2"..., "--verify"..., "/lib/modules/2.6.24-gentoo-r3/vdso/vdso32-sysenter.so"...], [/* 22 vars */]) = 0
13548 execve("/lib64/ld-linux-x86-64.so.2", ["/lib64/ld-linux-x86-64.so.2"..., "--verify"..., "/lib64/modules/2.6.24-gentoo-r3/vdso/vdso.so"...], [/* 22 vars */]) = 0
13552 execve("/lib/ld-linux.so.2", ["/lib/ld-linux.so.2"..., "--verify"..., "/lib64/modules/2.6.24-gentoo-r3/vdso/vdso32-syscall.so"...], [/* 22 vars */]) = 0
13557 execve("/lib/ld-linux.so.2", ["/lib/ld-linux.so.2"..., "--verify"..., "/lib64/modules/2.6.24-gentoo-r3/vdso/vdso32-sysenter.so"...], [/* 22 vars */]) = 0
Comment 7 SpanKY gentoo-dev 2008-03-17 11:21:52 UTC
none of the vdso's should be loaded directly by the ldso, so i dont think it's worthwhile to track down why ldso crashes when doing ldd on it

revdep-rebuild should just filter out vdso/linux-gate hits
Comment 8 snIP3r 2008-03-17 11:27:52 UTC
(In reply to comment #7)
> none of the vdso's should be loaded directly by the ldso, so i dont think it's
> worthwhile to track down why ldso crashes when doing ldd on it
> 
> revdep-rebuild should just filter out vdso/linux-gate hits
> 
could you please explain that to me? i do not understand what this means.
Comment 9 SpanKY gentoo-dev 2008-03-17 11:29:13 UTC
it means you can safely ignore the segfaults
Comment 10 snIP3r 2008-03-17 14:55:31 UTC
(In reply to comment #9)
> it means you can safely ignore the segfaults
> 

i recognized in the strace output that modules of kernel 2.6.24 are used:

13557 execve("/lib/ld-linux.so.2", ["/lib/ld-linux.so.2"..., "--verify"...,
"/lib64/modules/2.6.24-gentoo-r3/vdso/vdso32-sysenter.so"...], [/* 22 vars */])
= 0

is it possible that the error occurs cause i only have compiled the new 2.6.24-gentoo-r3 kernel but did not boot it? currently i have 2.6.23-gentoo-r9 booted.
Comment 11 Paul Varner (RETIRED) gentoo-dev 2008-03-17 15:24:34 UTC
Which version of gentoolkit do you have installed?
Comment 12 snIP3r 2008-03-17 15:31:27 UTC
(In reply to comment #11)
> Which version of gentoolkit do you have installed?
> 

area52 ~ # emerge -s gentoolkit
Searching...
[ Results for search key : gentoolkit ]
[ Applications found : 2 ]

*  app-portage/gentoolkit
      Latest version available: 0.2.3-r1
      Latest version installed: 0.2.3-r1
      Size of files: 90 kB
      Homepage:      http://www.gentoo.org/proj/en/portage/tools/index.xml
      Description:   Collection of administration scripts for Gentoo
      License:       GPL-2
Comment 13 Paul Varner (RETIRED) gentoo-dev 2008-03-17 15:47:04 UTC
Please emerge gentoolkit-0.2.4_rc3

Rerun revdep-rebuild with the following command:

env SEARCH_DIRS_MASK="/lib*/modules" revdep-rebuild --ignore --keep-temp --verbose --pretend

Let me know if you are still seeing the segfaults.  If you are then please attach all output from revdep-rebuild and the resulting /root/.revdep-rebuild* files
Comment 14 snIP3r 2008-03-17 16:27:54 UTC
(In reply to comment #13)
> Please emerge gentoolkit-0.2.4_rc3
> 
> Rerun revdep-rebuild with the following command:
> 
> env SEARCH_DIRS_MASK="/lib*/modules" revdep-rebuild --ignore --keep-temp
> --verbose --pretend
> 
> Let me know if you are still seeing the segfaults.  If you are then please
> attach all output from revdep-rebuild and the resulting /root/.revdep-rebuild*
> files
> 

ok, this might have fixed it! now i get no more segfaults!

area52 ~ # env SEARCH_DIRS_MASK="/lib*/modules" revdep-rebuild --ignore --keep-t                                                                                                                                emp --verbose --pretend
 * Configuring search environment for revdep-rebuild

revdep-rebuild environment:
SEARCH_DIRS="/bin
/lib
/lib32
/lib64
/opt/bin
/sbin
/usr/bin
/usr/lib
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/32
/usr/lib32
/usr/lib64
/usr/libexec
/usr/local/lib
/usr/local/lib32
/usr/local/lib64
/usr/sbin
/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2
/usr/x86_64-pc-linux-gnu/lib
/var/spool/fax/bin"
SEARCH_DIRS_MASK="/lib*/modules
/lib/modules"
LD_LIBRARY_MASK="libjava.so
libjvm.so
libodbc.so
libodbcinst.so"
PORTAGE_ROOT="/"
EMERGE_OPTIONS=""
ORDER_PKGS="1"
FULL_LD_PATH="1"

 * Checking reverse dependencies
 * Packages containing binaries and libraries broken by a package update
 * will be emerged.

 * Collecting system binaries and libraries
 * Generated new /root/.revdep-rebuild.1_files

 * Collecting complete LD_LIBRARY_PATH
 * Generated new /root/.revdep-rebuild.2_ldpath

 * Checking dynamic linking consistency
[ 100% ]

 * Dynamic linking on your system is consistent... All done.
area52 ~ #


the change of the SEARCH_DIRS_MASK entry seems to have fixed it. after i change the previous entry in /etc/revdep-rebuild/99revdep-rebuild to SEARCH_DIRS_MASK="/lib*/modules" a normal run of "revdep-rebuild" without any options runs as normal. is this the way i should do?
Comment 15 Paul Varner (RETIRED) gentoo-dev 2008-03-17 16:58:21 UTC
Changing the 99revdep-rebuild file works, however, that file gets overwritten with every installation of gentoolkit.  For this case, that probably doesn't matter. 

From the revdep-rebuild manpage:

"environment settings - one time changes by user
/etc/make.conf - persistent changes by user
/etc/revdep-rebuild/* - persistent changes by ebuild authors

While a user can edit and modify the files in the /etc/revdep-rebuild directory, please be aware that the /etc/revdep-rebuild directory is not under configuration protection and files can be removed and/or overwritten by an ebuild. To change this add /etc/revdep-rebuild to the CONFIG_PROTECT variable in /etc/make.conf."

I've fixed the 99revdep-rebuild file in subversion to exclude /lib*/modules.
Comment 16 snIP3r 2008-03-17 17:07:22 UTC
(In reply to comment #15)
> Changing the 99revdep-rebuild file works, however, that file gets overwritten
> with every installation of gentoolkit.  For this case, that probably doesn't
> matter. 
> 
> From the revdep-rebuild manpage:
> 
> "environment settings - one time changes by user
> /etc/make.conf - persistent changes by user
> /etc/revdep-rebuild/* - persistent changes by ebuild authors
> 
> While a user can edit and modify the files in the /etc/revdep-rebuild
> directory, please be aware that the /etc/revdep-rebuild directory is not under
> configuration protection and files can be removed and/or overwritten by an
> ebuild. To change this add /etc/revdep-rebuild to the CONFIG_PROTECT variable
> in /etc/make.conf."
> 
> I've fixed the 99revdep-rebuild file in subversion to exclude /lib*/modules.
> 
thx for your help and advise!

i think its save to mark the bug "worksforme"
Comment 17 Paul Varner (RETIRED) gentoo-dev 2008-03-17 17:25:24 UTC
Leave open until gentoolkit-0.2.4_rc4 is released
Comment 18 Paul Varner (RETIRED) gentoo-dev 2008-04-24 02:32:55 UTC
Released in gentoolkit-0.2.4_rc4