Internal error in nmbd / Correction

Dipl.-Ing. Dirk Krause d.krause at
Tue Aug 15 13:28:54 GMT 2000

Hi folks,
I had some trouble running Samba 2.0.7 on my SuSE Linux 6.2.
Configuration and installation worked fine, but after starting up
smbd and nmbd as daemons I found a message about an internal error
in log.nmb that the process received signal 11 (SIGSEGV).
Here it is

[2000/08/15 14:59:31, 0] 
  become_domain_master_browser_wins: querying WINS server at IP 
for domain master browser name ET<1b> on workgroup ET
[2000/08/15 14:59:31, 0] lib/fault.c:fault_report(40)
[2000/08/15 14:59:31, 0] lib/fault.c:fault_report(41)
  INTERNAL ERROR: Signal 11 in pid 19014 (2.0.7)
  Please read the file BUGS.txt in the distribution
[2000/08/15 14:59:31, 0] lib/fault.c:fault_report(43)
[2000/08/15 14:59:31, 0] lib/util.c:smb_panic(2381)
  PANIC: internal error

"nmblookup -B etechnik __SAMBA__" showed no result.
I looked into the sources and added DEBUG(0,...) in many places,
run make and testet it.
So I found out the error comes from somewhere in
get_interfaces() (lib/interfaces.c).
I tried to insert DEBUG(...) macros there but the compiler didn't
find DEBUG(...). So I added
#include "includes.h" into the file and removed
#include "interfaces.h".
After making and installing again the error disappeared from the
logfile and "nmblookup -B etechnik __SAMBA__" showed a result.
nmbd seems to work correctly now.

To solve the problem for the future I suggest to add a file
acinterfaces.c with nearly the same contents as interfaces.c.
acinterfaces.c does not contain the "includes.h" and is used
for autoconf/configure. interfaces.c contains the "includes.h"
(like the other sources) and is used to build the library.

The file interfaces.c is attached, the 2 positions for changes
are marked up with a BUGREPORT-comment.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-sun-c-file
Size: 9593 bytes
Desc: interfaces.c
Url :

More information about the samba mailing list