Bug 3049 - Gentoo Linux-based Samba Server - Printing Failure
Gentoo Linux-based Samba Server - Printing Failure
Status: RESOLVED FIXED
Product: Samba 3.0
Classification: Unclassified
Component: Printing
3.0.14a
x86 Windows XP
: P3 major
: none
Assigned To: Gerald (Jerry) Carter
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-08-28 22:09 UTC by Eric
Modified: 2005-08-29 21:24 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric 2005-08-28 22:09:08 UTC
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.
Comment 1 Gerald (Jerry) Carter 2005-08-29 08:25:58 UTC
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?
Comment 2 Eric 2005-08-29 21:24:07 UTC
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?