Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Dec 2002 19:32:56 -0600
From:      Rusty Nejdl <rnejdl@ringofsaturn.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   nmbd core dumps
Message-ID:  <20021230013256.GA53347@tethys.ringofsaturn.com>

Next in thread | Raw E-Mail | Index | Archive | Help
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




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20021230013256.GA53347>