Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 134929 - >=net-fs/autofs-4.1 segfaults on start with openldap-2.3
Summary: >=net-fs/autofs-4.1 segfaults on start with openldap-2.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Stefaan De Roeck (RETIRED)
URL:
Whiteboard:
Keywords:
: 149427 158228 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-05-30 09:37 UTC by Mark D.
Modified: 2008-02-03 16:27 UTC (History)
8 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 Mark D. 2006-05-30 09:37:12 UTC
Updating to net-fs/autofs-4.1.3-r6 breaks automounting on my box, downgrading back to net-fs/autofs-4.1.3-r4 and restarting autofs fixes this issue.

I'm quite unsure how to debug this issue, I can run any commands or provide any information you ask for though.

# emerge --info
Portage 2.1_rc3-r1 (default-linux/amd64/2005.1, gcc-4.1.1, glibc-2.4-r3, 2.6.16-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.16-gentoo-r2 x86_64 AMD Athlon(tm) 64 Processor 3700+
Gentoo Base System version 1.12.0
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r1
dev-util/confcache:  [Not Present]
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-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-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/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/mnt/distfiles"
FEATURES="autoconfig buildpkg ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_CA.UTF-8"
LC_ALL="en_CA.UTF-8"
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/gentopia"
SYNC="rsync://mirror.iat.sfu.ca/gentoo-portage"
USE="amd64 # #apps #services X a52 aac alsa audio avahi avi beagle bitmap-fonts bzip2 cairo canvas cdr cli codecs cracklib crypt cups dbus divx4linux dri dvd dvdr dvdread emboss faad fam firefox flac foomaticdb gif gmail gnome gpm gstreamer gtk gtk2 hal hddtemp howl-compat id3 imlib ipv6 isdnlog jpeg ldap lzw lzw-tiff mad matroska mono moznocompose moznoirc moznomail mp3 mpeg ncurses new-login nls nptl nptlonly nvidia ogg opengl pam pcre pdf pdflib perl png ppds pppd python qt quicktime rar readline reflection samba sdl session spell spl ssl svg tcpd theora truetype truetype-fonts type1-fonts usb userlocales utf8 v4l v4l2 video vorbis wxwindows xinerama xorg xpm xv xvid zeroconf zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_nvidia video_cards_vesa video_cards_fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-05-30 09:45:27 UTC

*** This bug has been marked as a duplicate of 120403 ***
Comment 2 Mark D. 2006-05-30 10:27:08 UTC
Ok the bug you pointed to Jakub is marked as fixed, but it is not fixed. Manually editing the init script myself is not the correct way to go. When is the bug actually going to be fixed so I can safely emerge update world without masking out new version of autofs?
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-05-30 10:29:23 UTC
emerge sync in an hour or two and try w/ -r7 (don't forget to update config files as well, using etc-update/dispatch-conf).
Comment 4 Mark D. 2006-05-30 12:57:45 UTC
hmmmm, unfortunately autofs-4.1.3-r7 produces the same failes results as r6.

Any suggestions on how I can debug this?
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-05-30 13:02:14 UTC
Well, you unfortunately didn't describe your problem too well, so...
Comment 6 Mark D. 2006-05-30 14:47:11 UTC
I would think it most likely has something to do with ldap.

I have to comment out ldap in my /etc/nsswitch.conf file (before I reboot), otherwise it takes an incredibly long time to startup my computer as udev wants to access the ldap server before networking is up.

When my computer is up, I add re-add ldap to nsswitch.conf and I restart nscd, autofs, and xdm. Then I can login fine but I don't have a home directory.

My /etc/autofs/auto.master file looks like this:
/home/users ldap:x.x.x.x:ou=home.users,ou=AutoFS,dc=iat,dc=sfu,dc=ca
/home/projects  ldap:x.x.x.x:ou=home.projects,ou=AutoFS,dc=iat,dc=sfu,dc=ca

While using autofs-4.1.3-r7 and when restarting autofs, neither directory is setup properly, with the script giving a failure message.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-05-30 15:10:20 UTC
Hmm, much better description now :=)
Comment 8 Mark D. 2006-05-31 10:15:27 UTC
Just some clarification.

autofs-4.1.3-r4 was installed with gcc 3.4 and openldap 2.2 (and worked perfectly)

autofs-4.1.3-r7 was installed with gcc-4.1 and openldap 2.3 and didn't work.

autofs-4.1.3-r4 was then installed on my upgraded system (not using the -K package option) it gave me a broken autofs-4.1.3-r4

I've found that now all autofs-4.1 packages segfault (in /var/log/messages) on my amd64 box, but autofs-4.0 does not segfault, it logs "cannot open lookup modules ldap (/usr/lib/autofs//lookup_ldap.so: cannot open shared object file: No such file or directory)"
Comment 9 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-06-11 02:55:14 UTC
Can you please tar up and email me the recent files from /var/log/portage showing the compiles of autofs-4.0 and autofs-4.1 with gcc-4.1.1?

Also, include the output of 'locate lookup_ldap.so'
Comment 10 Mark D. 2006-06-21 16:36:52 UTC
autofs-4.1 is fine when built with openldap-2.2, but when built and linked against openldap-2.3, it segfaults on startup, therefore I believe it's an openldap-2.3 issue.
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2006-12-15 09:04:22 UTC
*** Bug 149427 has been marked as a duplicate of this bug. ***
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2006-12-15 09:04:48 UTC
*** Bug 158228 has been marked as a duplicate of this bug. ***
Comment 13 Spooky Ghost 2007-05-02 10:04:39 UTC
This seems to be amd64 specific issue - I was experiencing a similar problem, google suggested http://www.openldap.org/lists/openldap-bugs/200511/msg00154.html.  Merging autofs as:

# CFLAGS="-DLDAP_DEPRECATED" emerge autofs

Resolves the problem for me.  Autofs 4.1.3 seems pretty old, 4.1.4 is the current 4.1 release and 5.0.1 is also available - neither of these are available as portage ebuilds though:(
Comment 14 Stefaan De Roeck (RETIRED) gentoo-dev 2008-01-20 13:00:00 UTC
18 months without a maintainer, ouch...

I can confirm the problem still exists, and the same fix still works too.
Comment 15 Stefaan De Roeck (RETIRED) gentoo-dev 2008-02-03 11:39:56 UTC
New maintainer, net-fs/autofs-5.0.3-r1 is now in the tree.  
Comment 16 Stefaan De Roeck (RETIRED) gentoo-dev 2008-02-03 16:27:09 UTC
Fixed in net-fs/autofs-4.1.3-r8