Description of problem:
Samba processes crash with TDB file access errors when using CUPS. Various TDB-related issues occur: Windows clients cannot print via Samba, drivers disappear, printer shares disappear, etc.
Version-Release number of selected component (if applicable):
Unable to determine what causes the crash, but the problem frequently occurs within and hour of startup.
[2009/01/10 14:51:53, 0] lib/util_tdb.c:tdb_log(682)
tdb(/var/lib/samba/ntforms.tdb): tdb_reopen: file dev/inode has changed!
[2009/01/10 14:51:53, 0] lib/util.c:reinit_after_fork(1050)
[2009/01/10 14:51:53, 0] smbd/server.c:open_sockets_smbd(744)
[2009/01/10 14:51:53, 0] lib/util.c:smb_panic(1663)
PANIC (pid 30698): reinit_after_fork() failed
[2009/01/10 14:51:53, 0] lib/util.c:log_stack_trace(1767)
BACKTRACE: 6 stack frames:
#0 smbd(log_stack_trace+0x2d) [0xb7ba313d]
#1 smbd(smb_panic+0x2d) [0xb7ba323d]
#2 smbd [0xb7de4e30]
#3 smbd(main+0x850) [0xb7de57d0]
#4 /lib/libc.so.6(__libc_start_main+0xe6) [0x3c75d6]
#5 smbd [0xb7972c11]
[2009/01/10 14:51:53, 0] lib/fault.c:dump_core(201)
dumping core in /var/log/samba/cores/smbd
Jeremy Allison posted a patch which is said to fix the problem (http://lists.samba.org/archive/samba/2008-December/145677.html), however I cannot get it to compile. It fails with this error:
/usr/src/redhat/BUILD/samba-3.2.7/source/printing/print_cups.c:391: undefined reference to `close_all_print_db'
Created attachment 329623 [details]
Patch for SWAT includes
This patch allows samba to compile with the patch from jeremy applied.
With the patch from jeremy, it works for me. There are no panics anymore, printing is functional.
I've added a patch which allows samba to compile with the patch from jeremy applied.
samba-3.2.8-0.25.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report.