nss_winbind cause segfault on Apache running on FreeBSD

Renato Botelho rbgarga at gmail.com
Thu Jul 15 18:30:59 GMT 2004


I´ve installed samba-3.0.4_3,1 with winbindd and apache-2.0.50, samba is working
fine, but after I changed /etc/nsswitch.conf to add winbindd, apache starts to
generate a segfault on apachectl stop, restart and graceful.

The segfault is caused by nss_winbind, so I´m sending the problem here too

Anyone have an idea?

Environment:

FreeBSD-5.2.1-RELEASE-p8

How-To-Repeat

- Install samba-3.0.4_3,1 with winbind via ports
- Install apache-2.0.50 via ports
- Add the following lines to /etc/nsswitch.conf:
passwd: files winbind
group:  files winbind
- Configure your smb.conf to work with winbind
- Start samba
- Start apache
- run apachectl restart

Here is the backtrace of the error:

GNU gdb 5.2.1 (FreeBSD)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-freebsd"...(no debugging
symbols found)...
Core was generated by `httpd'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libz.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.2
Reading symbols from /usr/local/lib/libssl.so.3...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libssl.so.3
Reading symbols from /usr/local/lib/libcrypto.so.3...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libcrypto.so.3
Reading symbols from /usr/local/lib/apache2/libaprutil-0.so.9...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/apache2/libaprutil-0.so.9
Reading symbols from /usr/local/lib/libexpat.so.5...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libexpat.so.5
Reading symbols from /usr/local/lib/libiconv.so.3...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /usr/local/lib/apache2/libapr-0.so.9...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/apache2/libapr-0.so.9
Reading symbols from /lib/libm.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.2
Reading symbols from /lib/libcrypt.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libcrypt.so.2
Reading symbols from /lib/libc.so.5...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.5
Reading symbols from /usr/local/lib/nss_winbind.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/nss_winbind.so.1
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
#1  0x28c8948c in _init () from /usr/local/lib/nss_winbind.so.1
#2  0x28c8b6bd in _fini () from /usr/local/lib/nss_winbind.so.1
#3  0x2809934f in dlclose () from /libexec/ld-elf.so.1
#4  0x284033e3 in _nsdbtput () from /lib/libc.so.5
#5  0x28402c98 in endhostent () from /lib/libc.so.5
#6  0x28403479 in _nsdbtput () from /lib/libc.so.5
#7  0x28429384 in exit () from /lib/libc.so.5
#8  0x0806a393 in destroy_and_exit_process ()
#9  0x0806af1e in main ()
#10 0x0805cef2 in _start ()

-- 
Renato Botelho


More information about the samba-technical mailing list