[Samba] Samba 3.2.6 upgrade -> smbd panic in printing.
Jeremy Allison
jra at samba.org
Tue Dec 30 23:06:29 GMT 2008
On Fri, Dec 26, 2008 at 12:53:43PM -0800, Noel Proffitt wrote:
> Similar to Pedro Rodrigues and Jon Wilson, we are also running into the same smbd panic when printing on a after upgrading to Samba 3.2.6 on RedHat 5.2. I've seen this on two Samba server that I upgraded. We are not running an OpenLDAP backend. We have hundreds of users and over 50 printers.
>
> Disabling the printcap cache using the "printcap cache time = 0" global directive seems avoid the code path and feature generating the panic.
Can you try the following patch to 3.2.6 please ?
I'm hoping this will fix the problem (it should
address the backtrace supplied).
Jeremy.
-------------- next part --------------
diff --git a/source/printing/print_cups.c b/source/printing/print_cups.c
index 1bb149c..f3eb73c 100644
--- a/source/printing/print_cups.c
+++ b/source/printing/print_cups.c
@@ -388,6 +388,8 @@ static bool cups_pcap_load_async(int *pfd)
}
/* Child. */
+ close_all_print_db();
+
if (!reinit_after_fork(smbd_messaging_context(), true)) {
DEBUG(0,("cups_pcap_load_async: reinit_after_fork() failed\n"));
smb_panic("cups_pcap_load_async: reinit_after_fork() failed");
More information about the samba
mailing list