Bug 288 - Opening Samba printers share causes signal 11
Summary: Opening Samba printers share causes signal 11
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Printing (show other bugs)
Version: 3.0.0preX
Hardware: All Windows 2000
: P1 critical
Target Milestone: none
Assignee: Gerald (Jerry) Carter (dead mail address)
QA Contact:
Depends on:
Reported: 2003-08-11 19:48 UTC by Mike Pakovic
Modified: 2005-11-14 09:26 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Mike Pakovic 2003-08-11 19:48:46 UTC
One of my windows 2000 machines, named wolverine(windows 2000 SP4), is causing a
Signal 11 within Samba when I browse my Samba server printers share. Here's how
it happens.  I open network neighborhood in wolverine, and browse my way to my
samba server (named cerebro running on linux-2.4.21-bk30).  I open up the
Printers share, and no printers are shown.  Looking in my log.wolverine on the
server, I see that I've gotten a Signal 11 pid 1866 (Samba 3.0.0rc1).  This
happens every time I open the printers share.  The other W2K clients in our
network see all four network printers when the Cerebro Printers share is opened,
and no Signal 11 is generated.  The Samba version I have is the CVS version of
3.0 as of Monday August 11 at 2100 hours EDT.  I've got a log.wolverine and all
the other important files, which I can send if you provide an email address.

Comment 1 Mike Pakovic 2003-08-11 20:12:21 UTC
Ok, I did a little more digging and found out why only the wolverine W2K client
was affected, and not the other W2K client computers.  Wolverine had "File and
Printer Sharing for Microsoft Networks" unchecked under the properties dialog of
the Local Area Connection.  When I checked this box, then I no longer get the
Signal 11, and all four printers are visibile under the server printers share. 
I hope this additional info will make the problem reproducible for you.

Comment 2 Gerald (Jerry) Carter (dead mail address) 2003-08-14 15:57:09 UTC
please send me the log files <jerry@samba.org>.  I've tried but 
I can reproduce this locally.
Comment 3 Gerald (Jerry) Carter (dead mail address) 2003-08-14 20:10:11 UTC
Here's the stace trace.  

  error connecting to (Connection refused)
  Connecting to at port 139
  INTERNAL ERROR: Signal 11 in pid 1866 (3.0.0rc1)
  Please read the appendix Bugs of the Samba HOWTO collection
  PANIC: internal error
  BACKTRACE: 26 stack frames:
   #0 smbd(smb_panic+0xc9) [0x817fe51]
   #1 smbd [0x817189e]
   #2 /lib/libc.so.6 [0x402a8d48]
   #3 smbd(cli_nt_session_close+0x23) [0x80c1d6f]
   #4 smbd(cli_close_connection+0x10) [0x80c1de8]
   #5 smbd(cli_initialise+0x281) [0x80c1cc9]
   #6 smbd(attempt_netbios_session_request+0xec) [0x80c4c40]
   #7 smbd [0x80fbb2d]
   #8 smbd [0x80fbfc4]
   #9 smbd(_spoolss_rffpcnex+0xda) [0x80fc1e6]
   #10 smbd [0x80f3c14]
   #11 smbd(api_rpcTNP+0x13a) [0x811f8a2]
   #12 smbd(api_pipe_request+0x203) [0x811f6eb]
   #13 smbd [0x8119e6d]
   #14 smbd [0x811a158]
   #15 smbd [0x811a4fb]
   #16 smbd(write_to_pipe+0xc7) [0x811a46f]
   #17 smbd [0x80864c3]
   #18 smbd(reply_trans+0x48a) [0x8086ce2]
   #19 smbd [0x80b7ea9]
   #20 smbd [0x80b809f]
   #21 smbd(process_smb+0x74) [0x80b824c]
   #22 smbd(smbd_process+0x198) [0x80b8d58]
   #23 smbd(main+0x404) [0x81d2b08]
   #24 /lib/libc.so.6(__libc_start_main+0xa9) [0x402975cd]
   #25 smbd(chroot+0x31) [0x8075d7d]
Comment 4 Tim Potter 2003-08-14 20:53:08 UTC
From a quick 10 minute look it sounds like the notify_cli global in
srv_spoolss_nt.c is not being set to something sensible if we can't make a
spoolss back channel connection.  I've seen this before when trying to do a
cli_initialise on an uninitialised cli_struct.
Comment 5 Tim Potter 2003-08-15 11:04:18 UTC
*** srv_spoolss_nt.c.~	Sat Aug 16 03:34:01 2003
--- srv_spoolss_nt.c	Sat Aug 16 04:05:07 2003
*** 2668,2673 ****
--- 2668,2675 ----
  		fstrcpy(unix_printer, printer+2); /* the +2 is to strip the leading 2
backslashs */
+ 		ZERO_STRUCT(notify_cli);
  		if(!spoolss_connect_to_client(&notify_cli, client_ip, unix_printer))
  			return False;
Comment 6 Gerald (Jerry) Carter (dead mail address) 2003-08-15 13:12:57 UTC
patch commited to 3.0 cvs tree.  Please test.
Comment 7 Mike Pakovic 2003-08-15 13:58:55 UTC
The bug is fixed.



Comment 8 Gerald (Jerry) Carter (dead mail address) 2005-02-07 08:41:23 UTC
originally reported against 3.0.0beta3.  CLeaning out 
non-production release versions.
Comment 9 Gerald (Jerry) Carter (dead mail address) 2005-08-24 10:22:25 UTC
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.
Comment 10 Gerald (Jerry) Carter (dead mail address) 2005-11-14 09:26:19 UTC
database cleanup