Each time I try to print from Windows XP Professional SP2 or Windows XP Media Center Edition 2005 SP2 the program in which I'm printing hangs. The server on which I'm running Samba 3.0.14a is using Gentoo 2004.3 with a Gentoo-patched kernel 2.6.11 (the actual version number is 2.6.11-gentoo-r5). The printer is a Samsung ML-1710 laser printer connected to the server via a USB cable. When I print, I get the following error in the samba error log file log.192.168.0.2: [2005/08/29 01:05:26, 0] tdb/tdbutil.c:tdb_log(725) tdb(/var/cache/samba/printing/ML-1710.tdb): tdb_oob len 1111638598 beyond eof at 73728 [2005/08/29 01:05:26, 0] tdb/tdbutil.c:tdb_log(725) tdb(/var/cache/samba/printing/ML-1710.tdb): remove_from_freelist: not on list at off=34820 [2005/08/29 01:05:26, 0] tdb/tdbutil.c:tdb_log(725) tdb(/var/cache/samba/printing/ML-1710.tdb): tdb_free: right free failed at 34820 [2005/08/29 01:05:26, 0] tdb/tdbutil.c:tdb_log(725) tdb(/var/cache/samba/printing/ML-1710.tdb): tdb_oob len 1111638598 beyond eof at 73728 [2005/08/29 01:05:26, 0] tdb/tdbutil.c:tdb_log(725) tdb(/var/cache/samba/printing/ML-1710.tdb): remove_from_freelist: not on list at off=32440 [2005/08/29 01:05:26, 0] tdb/tdbutil.c:tdb_log(725) tdb(/var/cache/samba/printing/ML-1710.tdb): tdb_free: left free failed at 32440 [2005/08/29 01:05:26, 0] tdb/tdbutil.c:tdb_log(725) tdb(/var/cache/samba/printing/ML-1710.tdb): rec_free_read bad magic 0x42424242 at offset=51604 CUPS has no record of the printing ever occuring either in the web-based (port 631) status page or in any of the CUPS logs, error logs or otherwise. Thus, the problem has to be squarely related to samba in one way or another. This setup used to work fine, then it happened every once in awhile, and now it happens every time I try to print from any windows box. Printing a test page via CUPS works fine.
Your log shows that you have a corrupted tdb file. If you remove /var/cache/samba/printing/*tdb, does the failure immediately return then next time to attempt to print?
I deleted the tdb files and attempted to print again and the same error message was logged. As I was about to email you, I thought I would try to stop the samba service then restart it, then try again and sure enough IT WORKED! Why does the tdb file get corrupted?