From owner-freebsd-questions Sun Dec 29 17:33: 5 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 44DDA37B401 for ; Sun, 29 Dec 2002 17:32:59 -0800 (PST) Received: from tethys.ringofsaturn.com (tethys.ringofsaturn.com [66.13.175.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 784E743EA9 for ; Sun, 29 Dec 2002 17:32:58 -0800 (PST) (envelope-from rnejdl@tethys.ringofsaturn.com) Received: from tethys.ringofsaturn.com (localhost [127.0.0.1]) by tethys.ringofsaturn.com (8.12.6/8.12.6) with ESMTP id gBU1Wvow055226 for ; Sun, 29 Dec 2002 19:32:57 -0600 (CST) (envelope-from rnejdl@tethys.ringofsaturn.com) Received: (from rnejdl@localhost) by tethys.ringofsaturn.com (8.12.6/8.12.6/Submit) id gBU1Wv4l055225 for freebsd-questions@FreeBSD.ORG; Sun, 29 Dec 2002 19:32:57 -0600 (CST) Date: Sun, 29 Dec 2002 19:32:56 -0600 From: Rusty Nejdl To: freebsd-questions@FreeBSD.ORG Subject: nmbd core dumps Message-ID: <20021230013256.GA53347@tethys.ringofsaturn.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-State: Dazed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Ok, I'm completely stuck with this one. I am trying to get Samba running on my FreeBSD 4.7 - Release computer. Everytime I try to run any version of nmbd, it core dumps. The config doesn't matter. Now, of note is the fact that I did get Sambda running properly on this computer when I first installed it, but in the process of building the computer (installing more packages, configuring, and rebuilding a kernel) samba broke. So, in knowing that, I used another computer to try to cause samba to break in the same way and I can't do it. I installed all the same ports and rebuilt the kernel and nmbd still ran. The only big difference was that I didn't get all of the processes configured and running. Here's /var/log/log.nmbd using a debug level of 3: [2002/12/29 19:26:45, 0] nmbd/nmbd.c:main(794) Netbios nameserver version 2.2.6pre2 started. Copyright Andrew Tridgell and the Samba Team 1994-2002 [2002/12/29 19:26:45, 3] param/loadparm.c:init_globals(1261) Initialising global parameters [2002/12/29 19:26:45, 3] param/params.c:pm_process(577) params.c:pm_process() - Processing configuration file "/usr/local/etc/smb.conf" [2002/12/29 19:26:45, 3] param/loadparm.c:do_section(3024) Processing section "[global]" [2002/12/29 19:26:45, 0] param/loadparm.c:map_parameter(2065) Unknown parameter encountered: "socket option SO_KEEPALIVE" [2002/12/29 19:26:45, 0] param/loadparm.c:lp_do_parameter(2740) Ignoring unknown parameter "socket option SO_KEEPALIVE" [2002/12/29 19:26:45, 0] param/loadparm.c:map_parameter(2065) Unknown parameter encountered: "socket option SO_REUSEADDR" [2002/12/29 19:26:45, 0] param/loadparm.c:lp_do_parameter(2740) Ignoring unknown parameter "socket option SO_REUSEADDR" [2002/12/29 19:26:45, 0] param/loadparm.c:map_parameter(2065) Unknown parameter encountered: "socket option SO_BROADCAST" [2002/12/29 19:26:45, 0] param/loadparm.c:lp_do_parameter(2740) Ignoring unknown parameter "socket option SO_BROADCAST" [2002/12/29 19:26:45, 0] param/loadparm.c:map_parameter(2065) Unknown parameter encountered: "socket option TCP_NODELAY" [2002/12/29 19:26:45, 0] param/loadparm.c:lp_do_parameter(2740) Ignoring unknown parameter "socket option TCP_NODELAY" [2002/12/29 19:26:45, 0] param/loadparm.c:map_parameter(2065) Unknown parameter encountered: "socket option IPTOS_LOWDELAY" [2002/12/29 19:26:45, 0] param/loadparm.c:lp_do_parameter(2740) Ignoring unknown parameter "socket option IPTOS_LOWDELAY" [2002/12/29 19:26:45, 0] param/loadparm.c:map_parameter(2065) Unknown parameter encountered: "socket option IPTOS_THROUGHPUT" [2002/12/29 19:26:45, 0] param/loadparm.c:lp_do_parameter(2740) Ignoring unknown parameter "socket option IPTOS_THROUGHPUT" [2002/12/29 19:26:45, 0] param/loadparm.c:map_parameter(2065) Unknown parameter encountered: "socket option SO_SNDBUF" [2002/12/29 19:26:45, 0] param/loadparm.c:lp_do_parameter(2740) Ignoring unknown parameter "socket option SO_SNDBUF" [2002/12/29 19:26:45, 0] param/loadparm.c:map_parameter(2065) Unknown parameter encountered: "socket option SO_RCVBUF" [2002/12/29 19:26:45, 0] param/loadparm.c:lp_do_parameter(2740) Ignoring unknown parameter "socket option SO_RCVBUF" [2002/12/29 19:26:45, 0] param/loadparm.c:map_parameter(2065) Unknown parameter encountered: "socket option SO_SNDLOWAT" [2002/12/29 19:26:45, 0] param/loadparm.c:lp_do_parameter(2740) Ignoring unknown parameter "socket option SO_SNDLOWAT" [2002/12/29 19:26:45, 0] param/loadparm.c:map_parameter(2065) Unknown parameter encountered: "socket option SO_RCVLOWAT" [2002/12/29 19:26:45, 0] param/loadparm.c:lp_do_parameter(2740) Ignoring unknown parameter "socket option SO_RCVLOWAT" [2002/12/29 19:26:45, 0] param/loadparm.c:map_parameter(2065) Unknown parameter encountered: "socket option SO_SNDTIMEO" [2002/12/29 19:26:45, 0] param/loadparm.c:lp_do_parameter(2740) Ignoring unknown parameter "socket option SO_SNDTIMEO" [2002/12/29 19:26:45, 0] param/loadparm.c:map_parameter(2065) Unknown parameter encountered: "socket option SO_RCVTIMEO" [2002/12/29 19:26:45, 0] param/loadparm.c:lp_do_parameter(2740) Ignoring unknown parameter "socket option SO_RCVTIMEO" [2002/12/29 19:26:45, 3] nmbd/nmbd.c:reload_nmbd_services(292) services not loaded [2002/12/29 19:26:45, 2] nmbd/nmbd.c:main(832) Becoming a daemon. [2002/12/29 19:26:45, 3] nmbd/nmbd.c:main(861) Opening sockets 137 [2002/12/29 19:26:45, 3] lib/util_sock.c:open_socket_in(813) bind succeeded on port 137 [2002/12/29 19:26:45, 3] lib/util_sock.c:open_socket_in(804) [2002/12/29 19:26:45, 0] lib/util_sock.c:set_socket_options(165) Failed to set socket option SO_BROADCAST (Error Bad file descriptor) [2002/12/29 19:26:45, 3] nmbd/nmbd.c:open_sockets(550) open_sockets: Broadcast sockets opened. [2002/12/29 19:26:45, 2] lib/interface.c:add_interface(81) added interface ip=66.13.175.242 bcast=66.13.175.247 nmask=255.255.255.248 [2002/12/29 19:26:45, 3] lib/util_sock.c:open_socket_in(813) bind succeeded on port 137 [2002/12/29 19:26:45, 3] lib/util_sock.c:open_socket_in(813) bind succeeded on port 138 [2002/12/29 19:26:45, 2] nmbd/nmbd_subnetdb.c:make_subnet(192) making subnet name:66.13.175.242 Broadcast address:66.13.175.247 Subnet mask:255.255.255.248 [2002/12/29 19:26:45, 2] nmbd/nmbd_subnetdb.c:make_subnet(192) making subnet name:UNICAST_SUBNET Broadcast address:0.0.0.0 Subnet mask:0.0.0.0 [2002/12/29 19:26:45, 2] nmbd/nmbd_subnetdb.c:make_subnet(192) making subnet name:REMOTE_BROADCAST_SUBNET Broadcast address:0.0.0.0 Subnet mask:0.0.0.0 [2002/12/29 19:26:45, 3] nmbd/nmbd.c:main(880) Loaded hosts file [2002/12/29 19:26:45, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(245) add_name_to_subnet: Added netbios name *<00> with first IP 66.13.175.242 ttl=0 nb_flags= 0 to subnet 66.13.175.242 [2002/12/29 19:26:45, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(245) add_name_to_subnet: Added netbios name *<20> with first IP 66.13.175.242 ttl=0 nb_flags= 0 to subnet 66.13.175.242 [2002/12/29 19:26:45, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(245) add_name_to_subnet: Added netbios name __SAMBA__<20> with first IP 66.13.175.242 ttl=0 nb_flags= 0 to subnet 66.13.175.242 [2002/12/29 19:26:45, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(245) add_name_to_subnet: Added netbios name __SAMBA__<00> with first IP 66.13.175.242 ttl=0 nb_flags= 0 to subnet 66.13.175.242 [2002/12/29 19:26:45, 3] nmbd/nmbd_serverlistdb.c:create_server_on_workgroup(171) create_server_on_workgroup: Created server entry TETHYS of type 40019a03 (Samba Server) on workgroup MYGROUP. [2002/12/29 19:26:45, 3] nmbd/nmbd_workgroupdb.c:initiate_myworkgroup_startup(270) initiate_myworkgroup_startup: Added server name entry TETHYS on subnet 66.13.175.242 [2002/12/29 19:26:45, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(245) add_name_to_subnet: Added netbios name *<00> with first IP 66.13.175.242 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET [2002/12/29 19:26:45, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(245) add_name_to_subnet: Added netbios name *<20> with first IP 66.13.175.242 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET [2002/12/29 19:26:45, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(245) add_name_to_subnet: Added netbios name __SAMBA__<20> with first IP 66.13.175.242 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET [2002/12/29 19:26:45, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(245) add_name_to_subnet: Added netbios name __SAMBA__<00> with first IP 66.13.175.242 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET [2002/12/29 19:26:45, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(245) add_name_to_subnet: Added netbios name TETHYS<20> with first IP 66.13.175.242 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET [2002/12/29 19:26:45, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(245) add_name_to_subnet: Added netbios name TETHYS<03> with first IP 66.13.175.242 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET [2002/12/29 19:26:45, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(245) add_name_to_subnet: Added netbios name TETHYS<00> with first IP 66.13.175.242 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET [2002/12/29 19:26:45, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(245) add_name_to_subnet: Added netbios name MYGROUP<00> with first IP 66.13.175.242 ttl=0 nb_flags=80 to subnet UNICAST_SUBNET [2002/12/29 19:26:45, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(245) add_name_to_subnet: Added netbios name MYGROUP<1e> with first IP 66.13.175.242 ttl=0 nb_flags=80 to subnet UNICAST_SUBNET [2002/12/29 19:26:45, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(245) add_name_to_subnet: Added netbios name *<00> with first IP 66.13.175.242 ttl=0 nb_flags= 0 to subnet REMOTE_BROADCAST_SUBNET [2002/12/29 19:26:45, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(245) add_name_to_subnet: Added netbios name *<20> with first IP 66.13.175.242 ttl=0 nb_flags= 0 to subnet REMOTE_BROADCAST_SUBNET [2002/12/29 19:26:45, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(245) add_name_to_subnet: Added netbios name __SAMBA__<20> with first IP 66.13.175.242 ttl=0 nb_flags= 0 to subnet REMOTE_BROADCAST_SUBNET [2002/12/29 19:26:45, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(245) add_name_to_subnet: Added netbios name __SAMBA__<00> with first IP 66.13.175.242 ttl=0 nb_flags= 0 to subnet REMOTE_BROADCAST_SUBNET [2002/12/29 19:26:45, 0] lib/fault.c:fault_report(38) =============================================================== [2002/12/29 19:26:45, 0] lib/fault.c:fault_report(39) INTERNAL ERROR: Signal 10 in pid 55178 (2.2.6pre2) Please read the file BUGS.txt in the distribution [2002/12/29 19:26:45, 0] lib/fault.c:fault_report(41) =============================================================== [2002/12/29 19:26:45, 0] lib/util.c:smb_panic(1094) PANIC: internal error Here's the gdb trace: tethys# gdb /usr/local/sbin/nmbd nmbd.core GNU gdb 4.18 (FreeBSD) Copyright 1998 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 `nmbd'. Program terminated with signal 6, Abort trap. Reading symbols from /usr/local/lib/libcups.so.2... (no debugging symbols found)...done. Reading symbols from /usr/lib/libssl.so.2...(no debugging symbols found)... done. Reading symbols from /usr/lib/libcrypto.so.2...(no debugging symbols found)... done. Reading symbols from /usr/lib/libpam.so.1...(no debugging symbols found)... done. Reading symbols from /usr/lib/libc.so.4...(no debugging symbols found)...done. Reading symbols from /usr/libexec/ld-elf.so.1...(no debugging symbols found)... done. #0 0x28214b78 in kill () from /usr/lib/libc.so.4 (gdb) quit tethys# I recompiled libc.so.4 as a result of the above error and tried again. No change. However, since I'm installing samba from a package, it shouldn't matter. In addition, I have tried compiling from source different versions of samba and they all fail the same way. I haven't found this posted anywhere else so I'm completely stumped. Any ideas or help would be appreciated. Sincerely, Rusty Nejdl To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message