[Samba] Panic or segfault in Samba 3.6.1 - Debian testing

Jeremy Allison jra at samba.org
Wed Dec 21 11:17:57 MST 2011


On Wed, Dec 21, 2011 at 10:16:32AM -0800, Jeremy Allison wrote:
> On Wed, Dec 21, 2011 at 10:04:18AM -0600, Dale Schroeder wrote:
> > Since upgrading to 3.6.1 in Debian testing, I receive a
> > panic/segfault message with each print job.  Printing succeeds and
> > continues to work, but an email with the info below is sent each
> > time.
> > The system is standalone.  Kernel is 3.1.0-1-686-pae, and the system
> > is fully updated.  testparm returns no errors.
> > 
> > Does this mean anything to anyone?
> 
> This is bug #8384 - fixed in v3-6-test with the following
> patch (attached). This will be in 3.6.2.

Arg - patch got stripped. Can be found by :

git diff b01b1faafe32fbb88739ae8aaaf9f2fe5e1dcdcf..cb6795bea659e884e23173960e68a2f970fc5dd3

in branch v3-6-test.

(inline - although it may get mangled).

diff --git a/source3/rpc_server/spoolss/srv_spoolss_nt.c b/source3/rpc_server/spoolss/srv_spoolss_nt.c
index c886f34..bfec3cc 100644
--- a/source3/rpc_server/spoolss/srv_spoolss_nt.c
+++ b/source3/rpc_server/spoolss/srv_spoolss_nt.c
@@ -295,6 +295,7 @@ static void srv_spoolss_replycloseprinter(int snum,
 
        if (prn_hnd->notify.cli_chan) {
                prn_hnd->notify.cli_chan->active_connections--;
+               prn_hnd->notify.cli_chan = NULL;
        }
 }


Jeremy.


More information about the samba mailing list