Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 159533 - samba-3.0.22-r3 segfaults w/ <sys-auth/nss-mdns-0.8-r1
Summary: samba-3.0.22-r3 segfaults w/ <sys-auth/nss-mdns-0.8-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal
Assignee: Saleem Abdulrasool (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-30 20:22 UTC by spock128
Modified: 2007-01-03 13:21 UTC (History)
0 users

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


Attachments
emerge --info of failing computer (emerge.info,3.83 KB, text/plain)
2006-12-30 20:23 UTC, spock128
Details
samba error log (log.192.168.0.30,917 bytes, text/plain)
2006-12-31 17:47 UTC, spock128
Details

Note You need to log in before you can comment on or make changes to this bug.
Description spock128 2006-12-30 20:22:42 UTC
This is an odd problem because it works on some machines, but not others, all machines have very similar configurations.

#######################################################################
First 2 machines; cannot access samba shares, and smbtree/smbclient segfault. (emerge --info of 2nd machine will be attached)
On the non-working machines:

$ smbclient //host/share
Segmentation fault

From a machine with samba working:

$ smbclient //broken-host/share
Password: 
session setup failed: Call returned zero bytes (EOF)

The first one was initially compiled with -march=pentium3, but I changed to -march=i386 in order to try and isolate the problem.  I also tried re-emerging samba with different combinations of the ldap / kerberos use flags with the same results every time.

#######################################################################
Portage 2.1.1-r2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo-r6 i686)
=================================================================
System uname: 2.6.18-gentoo-r6 i686 Pentium III (Coppermine)
Gentoo Base System version 1.12.6
Last Sync: Sat, 30 Dec 2006 18:30:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
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.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i386 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=i386 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en en_GB en_US en_ZA"
MAKEOPTS="-j4"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac aalib acl alsa alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol amr aoss artworkextra asf avahi berkdb bitmap-fonts bzip2 cairo cdparanoia cdr chardet cli cpudetection cracklib crypt cups daap dbus dga divx dlloader dri dts dvd dvdr dvdread dvi dxr3 elibc_glibc emboss encode fam fame ffmpeg firefox flac foomaticdb fortran fuse gaim gdbm gif gimp gimpprint glibc-omitfp glitz glut gmedia gnome gphoto2 gpm graphviz gs gstreamer gtk gtk2 hal i8x0 iconv imagemagick imlib input_devices_evdev input_devices_joystick input_devices_keyboard input_devices_mouse ipod ipv6 isdnlog jbig jpeg jpeg2k kerberos kernel_linux lcms ldap libcaca libg++ linguas_en linguas_en_GB linguas_en_US linguas_en_ZA live lzo mad mdnsresponder-compat mikmod mmx mng modplug mono mp3 mp4 mpeg mpeg2 mplayer musepack ncurses nls nptl nptlonly nsplugin ogg openal opengl oss pam pcre pdf perl png portaudio ppds pppd python qt3 qt4 quicktime readline real realmedia reflection rtc samba scanner sdl session smbkrb5passwd sndfile speex spell spl sse ssl svg tcpd tga theora threads thunderbird tiff timidity truetype truetype-fonts type1-fonts udev unicode usb userland_GNU v4l v4l2 vcd video_cards_apm video_cards_fbdev video_cards_i810 vidix vorbis win32codecs wma wmf wmp x264 xanim xine xml xorg xpm xprint xrandr xscreensaver xv xvid xvmc zeroconf zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 spock128 2006-12-30 20:23:51 UTC
Created attachment 105024 [details]
emerge --info of failing computer
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-12-31 01:15:56 UTC
Attach a backtrace and reopen then; thanks.

http://www.gentoo.org/proj/en/qa/backtraces.xml
Comment 3 spock128 2006-12-31 17:47:05 UTC
Created attachment 105064 [details]
samba error log
Comment 4 spock128 2006-12-31 18:21:41 UTC
I installed avahi and nss-mdns on all my machines so I could get away from maintaining /etc/hosts files, which seems to have caused this.

Long story short, upgrading to nss-mdns-0.8-r1 fixed this problem.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-01-01 02:45:26 UTC
Hmm...
Comment 6 spock128 2007-01-01 09:39:44 UTC
After further experimentation, this seems to affect x86 only.  On all my x86 boxes, samba refused to work with nss-mdns-0.8 (I didn't test earlier versions) and needed to be upgraded to -r1.  The reason it was affecting only 2 of my boxes earlier was that samba was using /etc/hosts instead of mdns.

On my amd64, sparc and hppa, samba and nss-mdns-0.8 work fine together.
Comment 7 Saleem Abdulrasool (RETIRED) gentoo-dev 2007-01-03 13:21:41 UTC
The patch in -r1 is what fixes it, but since its not had its time in portage yet, I cant yet mark it stable.  Marking this as fixed, as the issue has been resolved, just a matter of marking nss-mdns-0.8-r1 stable.