Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 131828 - rlocate 0.5.x dies with double free or corruption
Summary: rlocate 0.5.x dies with double free or corruption
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on: 133053
Blocks:
  Show dependency tree
 
Reported: 2006-04-30 13:44 UTC by Abraham Smith
Modified: 2007-10-06 13:41 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Abraham Smith 2006-04-30 13:44:42 UTC
rlocate-0.5.0-r1 and 0.5.1 both suffer opn all 4 of my machines:

After building and reloading module and rlocated, I get:

# updatedb (or rlocate -u --full-update)
*** glibc detected *** double free or corruption (!prev): 0x08052a08 ***
Aborted

EMERGE INFO:
Portage 2.1_pre9-r5 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.15.1 i686)
=================================================================
System uname: 2.6.15.1 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.4.2
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.12
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-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-mtune=athlon-xp -Os -march=pentium3 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /srv /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mtune=athlon-xp -Os -march=pentium3 -fomit-frame-pointer -pipe"
DISTDIR="/closet/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distcc distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1,--enable-new-dtags"
LINGUAS="en"
MAKEOPTS="-j4"
PKGDIR="/closet/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/closet/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X aac acpi alsa audiofile avi bash-completion berkdb bitmap-fonts bzip2 cairo cdparanoia cli crypt cups curl dri dvd dvdr dvdread emboss encode exif ffmpeg flac foomaticdb fortran gdbm gif glitz gphoto2 gpm gs gtk gtk2 idn imagemagick imap imlib isdnlog java jikes jpeg jpeg2k kde kdeenablefinal kdexdeltas lcms libg++ libwww lirc mad mbox mikmod mmx mng mp3 mpeg ncurses nls nptl nptlonly nsplugin nvidia ogg opengl oss pam pcre pda pdf pdflib perl png ppds pppd python qt quicktime readline reflection scanner sdl session speex spell spl sse ssl svg tcpd tetex tiff truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 vorbis wmf xine xml xorg xrandr xv xvid zlib elibc_glibc input_devices_evdev input_devices_mouse input_devices_keyboard kernel_linux linguas_en userland_GNU video_cards_nvidia video_cards_nv"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL
Comment 1 Craig Andrews gentoo-dev 2006-07-03 23:56:54 UTC
rlocate works fine on my desktop computer, but not my laptop. Both are running 2.6.16... here's the emerge --info from the laptop (rlocate broken exactly as the opener stated):

Portage 2.1.1_pre2-r2 (default-linux/x86/2006.0, gcc-4.2.0-alpha20060603/hardened, glibc-2.4-r3, 2.6.16-beyond-git12 i686)
=================================================================
System uname: 2.6.16-beyond-git12 i686 Intel(R) Pentium(R) M processor 1.70GHz
Gentoo Base System version 1.12.1
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
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.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -Os -pipe -fomit-frame-pointer -fPIE -fstack-protector-all"
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/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium-m -Os -pipe -fomit-frame-pointer -fPIE -fstack-protector-all"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-z,now -Wl,-z,relro,--sort-common,--enable-new-dtags,-O1"
LINGUAS="en_US"
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-overlays/beyond /usr/local/portage /usr/portage/local/layman/zugaina /usr/portage/local/layman/portage-xgl /usr/portage/local/layman/break-my-gentoo-main/bmg-main /usr/portage/local/layman/gentopia /usr/portage/local/layman/gnome-experimental /usr/portage/local/layman/initng /usr/portage/local/layman/java-experimental /usr/portage/local/layman/ecatmur /usr/portage/local/layman/java-migration /usr/portage/local/layman/flameeyes-overlay /usr/portage/local/layman/java-migration-packages"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 X a52 aac acpi aiglx alsa animation apache2 artworkextra asf ati audio avahi avi bash-completion beagle berkdb bitmap-fonts bluetooth bzip2 cairo cdparanoia cdr chm cli crypt cups dbus dga divx4linux dlloader dmi dpms dri dts dv dvd dvdr dvdread eds emboss encode evo exif fam fat fbsplash ffmpeg firefox flac foomaticdb fortran freetype gaim gdbm gif glibc-omitfp glitz glut gnome gnutls gphoto2 gpm gstreamer gstreamer10 gtk gtk2 hal hardened hbci howl-compat ieee1394 imagemagick imlib innodb ipv6 isdnlog java jpeg junit kde kerberos lcms ldap libfame libg++ libnotify libusb libwww lirc live mad mdnsresponder-compat mikmod mjpeg mmap mmx mmxext mng mono motif mozilla mozsvg mp3 mpeg mpeg2 mplayer mythtv nautilus ncurses network nls nptl nptlonly ntfs offensive ofx ogg oggvorbis opengl pam pango pcmcia pcre pdf pdflib perl pic pie png pnp ppd ppds pppd python qt qt3 qt4 quicktime rar readline real reflection rtc samba scanner sdl session sharedmem silc sox speex spell spl sse sse2 ssl startup-notification suspend2 svg tcpd theora threads tiff transcode truetype truetype-fonts type1-fonts udev unicode usb vcd videos vorbis webservices wifi win32codecs wmf wv xine xinerama xml xml2 xorg xpm xprint xrandr xscreensaver xss xv xvid xvmc zeroconf zlib elibc_glibc input_devices_evdev input_devices_joystick input_devices_keyboard input_devices_mouse input_devices_synaptics kernel_linux linguas_en_US userland_GNU video_cards_ati video_cards_radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Peng Zhang 2006-07-28 20:42:21 UTC
Do you guys have network filesystem mounted? I got the same error. It disappeared after I stop openvpn and autofs service. I guess that is the issue.
Comment 3 Peng Zhang 2006-07-28 20:47:55 UTC
(In reply to comment #2)
> Do you guys have network filesystem mounted? I got the same error. It
> disappeared after I stop openvpn and autofs service. I guess that is the issue.
> 

after playing around, I found that when I just started autofs, I will have this error. After the network system is mounted (by visiting a directory in autofs), locate -u works again. wired...
Comment 4 Abraham Smith 2006-07-30 06:18:09 UTC
Interesting observation!

On one of my machines, turning off autofs fixed it (but NFS is still mounted manually or by netmount).

On another machine, which does not run autofs or NFS, it still fails.  I tried turning off other non-essential (ifplugd, mpd, an ununsed netmount) services, but to no avail.

Comment 5 Rudi Lippert 2007-06-01 15:51:34 UTC
From Sourceforge Bug Tracker:
==========================================
[ 1495528 ] updatedb reports double free

Date: 2006-09-14 01:02
Sender: rastolProject Admin
Logged In: YES 
user_id=1203732

fixed in 0.5.2 release
==========================================

Does anyone still have these problems or can we close this?
Comment 6 SpanKY gentoo-dev 2007-10-06 13:41:44 UTC
re-open if 0.5.6 doesnt work