Samba

FreeBSD 8 和 Samba 3.3 smb_panic

  • June 14, 2010

是什麼導致 samba 崩潰?需要幫助診斷…

[2010/06/14 16:11:42,  0] lib/fault.c:fault_report(40)
 ===============================================================
[2010/06/14 16:11:42,  0] lib/fault.c:fault_report(41)
 INTERNAL ERROR: Signal 11 in pid 951 (3.3.8)
 Please read the Trouble-Shooting section of the Samba3-HOWTO
[2010/06/14 16:11:42,  0] lib/fault.c:fault_report(43)

 From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf
[2010/06/14 16:11:42,  0] lib/fault.c:fault_report(44)
 ===============================================================
[2010/06/14 16:11:42,  0] lib/util.c:smb_panic(1673)
 PANIC (pid 951): internal error
[2010/06/14 16:53:40,  0] smbd/server.c:main(1274)

編輯:

更多資訊——

日誌.smbd:

[2010/06/14 15:59:02,  0] smbd/server.c:main(1274)
smbd version 3.3.8 started.
     Copyright Andrew Tridgell and the Samba Team 1992-2009
[2010/06/14 15:59:02,  0] printing/print_cups.c:cups_connect(103)
Unable to connect to CUPS server localhost:631 - Connection refused
[2010/06/14 15:59:02,  0] printing/print_cups.c:cups_connect(103)
Unable to connect to CUPS server localhost:631 - Connection refused

配置文件

[global]
workgroup = WASH
netbios name = PROD1

[media]
path = /jon/media
read only = no
guest ok = yes

您的 rc.conf 文件看起來不錯,但您可能只想簡化為samba_enable="YES"

有一個 pid 文件/var/run並不一定意味著什麼。它可能是一個舊文件,也可能是一百個其他東西中的任何一個;這不是procfs。

檢查 /var/log/samba 目錄中的日誌文件;那裡應該有幾個,具有最新時間戳的那個應該包含有用的資訊(如崩潰原因)。

編輯:

這可能是 FreeBSD 7/8/9 上的 3.3.x 的一個已知問題,並且啟用了服務發現。由於某種原因,預設情況下會啟用此功能。修理:

cd /usr/ports/net/samba33
make config
uncheck "With DNS service discovery support" (if it wasn't checked, this isn't the problem)
make clean; make && make deinstall && make reinstall
/usr/local/etc/rc.d/samba restart

引用自:https://serverfault.com/questions/151083