The "id" application from sys-apps/coreutils is broken: [~]>id charlie *** glibc detected *** id: double free or corruption (out): 0x00002b4ab0508ef0 *** ======= Backtrace: ========= [0x4133c1] [0x415014] [0x41b383] [0x4010dc] [0x40092d] [0x404b74] [0x4001f9] ======= Memory map: ======== 00400000-00492000 r-xp 00000000 08:01 2095158 /usr/bin/id 00691000-00693000 rw-p 00091000 08:01 2095158 /usr/bin/id 00693000-006b9000 rw-p 00693000 00:00 0 [heap] 2b4aaf970000-2b4aafb62000 r--p 00000000 08:01 2616372 /usr/lib64/locale/locale-archive 2b4aafb85000-2b4aafb8c000 r-xp 00000000 08:01 3614548 /lib64/libnss_compat-2.7.so 2b4aafb8c000-2b4aafd8b000 ---p 00007000 08:01 3614548 /lib64/libnss_compat-2.7.so 2b4aafd8b000-2b4aafd8c000 r--p 00006000 08:01 3614548 /lib64/libnss_compat-2.7.so 2b4aafd8c000-2b4aafd8d000 rw-p 00007000 08:01 3614548 /lib64/libnss_compat-2.7.so 2b4aafd8d000-2b4aafda1000 r-xp 00000000 08:01 3614611 /lib64/libnsl-2.7.so 2b4aafda1000-2b4aaffa0000 ---p 00014000 08:01 3614611 /lib64/libnsl-2.7.so 2b4aaffa0000-2b4aaffa1000 r--p 00013000 08:01 3614611 /lib64/libnsl-2.7.so 2b4aaffa1000-2b4aaffa2000 rw-p 00014000 08:01 3614611 /lib64/libnsl-2.7.so 2b4aaffa2000-2b4aaffa4000 rw-p 2b4aaffa2000 00:00 0 2b4aaffa4000-2b4ab00e2000 r-xp 00000000 08:01 3614641 /lib64/libc-2.7.so 2b4ab00e2000-2b4ab02e2000 ---p 0013e000 08:01 3614641 /lib64/libc-2.7.so 2b4ab02e2000-2b4ab02e6000 r--p 0013e000 08:01 3614641 /lib64/libc-2.7.so 2b4ab02e6000-2b4ab02e7000 rw-p 00142000 08:01 3614641 /lib64/libc-2.7.so 2b4ab02e7000-2b4ab02ec000 rw-p 2b4ab02e7000 00:00 0 2b4ab02ec000-2b4ab0307000 r-xp 00000000 08:01 3614628 /lib64/ld-2.7.so 2b4ab0307000-2b4ab0506000 ---p 0001b000 08:01 3614628 /lib64/ld-2.7.so 2b4ab0506000-2b4ab0507000 r--p 0001a000 08:01 3614628 /lib64/ld-2.7.so 2b4ab0507000-2b4ab0508000 rw-p 0001b000 08:01 3614628 /lib64/ld-2.7.so 2b4ab0508000-2b4ab0609000 rw-p 2b4ab0508000 00:00 0 2b4ab062b000-2b4ab0634000 r-xp 00000000 08:01 3614564 /lib64/libnss_nis-2.7.so 2b4ab0634000-2b4ab0834000 ---p 00009000 08:01 3614564 /lib64/libnss_nis-2.7.so 2b4ab0834000-2b4ab0835000 r--p 00009000 08:01 3614564 /lib64/libnss_nis-2.7.so 2b4ab0835000-2b4ab0836000 rw-p 0000a000 08:01 3614564 /lib64/libnss_nis-2.7.so 2b4ab0836000-2b4ab0840000 r-xp 00000000 08:01 3614648 /lib64/libnss_files-2.7.so 2b4ab0840000-2b4ab0a3f000 ---p 0000a000 08:01 3614648 /lib64/libnss_files-2.7.so 2b4ab0a3f000-2b4ab0a40000 r--p 00009000 08:01 3614648 /lib64/libnss_files-2.7.so 2b4ab0a40000-2b4ab0a41000 rw-p 0000a000 08:01 3614648 /lib64/libnss_files-2.7.so 2b4ab4000000-2b4ab4023000 rw-p 2b4ab4000000 00:00 0 2b4ab4023000-2b4ab8000000 ---p 2b4ab4023000 00:00 0 7ffffb125000-7ffffb13a000 rw-p 7ffffffea000 00:00 0 [stack] 7ffffb1fe000-7ffffb200000 r-xp 7ffffb1fe000 00:00 0 [vdso] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] uid=1000(charlie) gid=100(users)Aborted Reproducible: Always
Oops, submitted incomplete. The bug is only there if coreutils is emerged with "static" in the useflags.
emerge --info, please.
Here are the effectively working flags (which should be near the defaults): [ebuild R ] sys-apps/coreutils-6.11 USE="acl nls xattr (-selinux) -static -vanilla" 0 kB With "static" set the "id" application doesn't work, setting "vanilla" doesn't change this. Here's the emerge --info: Portage 2.1.5_rc5 (default-linux/amd64/2007.0, gcc-4.2.2, glibc-2.7-r2, 2.6.25-gentoo-r1 x86_64) ================================================================= System uname: 2.6.25-gentoo-r1 x86_64 Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz Timestamp of tree: Mon, 21 Apr 2008 15:15:03 +0000 app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.5 dev-lang/python: 2.5.2-r2 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.2 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.62 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.1 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.25-r1 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -ggdb -mfpmath=sse -msse3 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /lib/modules /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/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/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -ggdb -mfpmath=sse -msse3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks metadata-transfer multislot parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/" LANG="en_GB.UTF-8" LDFLAGS="" LINGUAS="en en_GB en_US de de_DE" MAKEOPTS="-j3" PKGDIR="/usr/rportage/packages/dnnote" 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="/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/enlightenment /usr/portage/local/layman/sunrise /usr/portage/local/layman/je_fro /usr/local/portage" SYNC="rsync://echo.digadd.de/gentoo-portage" USE="7zip X a52 aac acl acpi alsa amd64 amr amrnb amrwb apache2 audacious avi bash-completion berkdb bluetooth bzip2 cdda cddb cdparanoia cdr cjk crypt cups dbus dga dri dts dvd dvdr dvdread encode erandom exif fam ffmpeg firefox flac foomaticdb gd gdbm geoip gif gimp gphoto2 gpm gtk gtk2 gtkhtml hal hbci idn imagemagick imlib ipv6 jpeg jpeg2k laptop libsamplerate lm_sensors logrotate lzo mad madwifi matroska midi mikmod mmx mmxext mp3 mp4 mpeg multislot ncurses nls no_wxgtk1 nptl nptlonly nsplugin odbc offensive ogg opengl pam pcmcia pcre pdf pic png ppds qt-static quicktime readline sdl sid slang snmp sse sse2 ssl ssse3 svg sysfs tetex theora threads tiff timidity truetype tta udev unicode usb userlocales vcd vorbis wma wxwindows x264 xanim xattr xine xinetd xml xorg xosd xpm xprint xv xvid xvmc yv12 zlib zvbi" 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 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 rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" CAMERAS="canon ptp2" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB en_US de de_DE" USERLAND="GNU" VIDEO_CARDS="fglrx vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
seems to be a bug in glibc :/ coreutils-6.10 worked because it didnt use the getgroups functions (gdb) bt #0 0x0000000000434f05 in raise () #1 0x000000000040f243 in abort () #2 0x0000000000412bf8 in __libc_message () #3 0x0000000000417c14 in malloc_printerr () #4 0x0000000000419c24 in free () #5 0x00000000004208f6 in getgrouplist () #6 0x00000000004013db in mgetgroups (username=0x16e7550 "root", gid=0, groups=0x7fffc1a45d38) at mgetgroups.c:78 #7 0x0000000000400ba8 in print_full_info (username=0x16e7550 "root") at id.c:311 #8 0x0000000000400960 in main (argc=1, argv=0x7fffc1a460c8) at id.c:240
I wonder if it is related to this bug (seen by a friend with coreutils <6.10 on x86 stable): http://savannah.gnu.org/bugs/?22505
should be fixed with 6.12