Bug 1403 - seg fault with ldap slave as passdb backend when adding W2K workstation
seg fault with ldap slave as passdb backend when adding W2K workstation
Status: CLOSED FIXED
Product: Samba 3.0
Classification: Unclassified
Component: Domain Control
3.0.4
x86 Linux
: P3 normal
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-05-27 20:13 UTC by Andrew Reilly
Modified: 2005-08-24 10:17 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 Andrew Reilly 2004-05-27 20:13:58 UTC
The PDC works fine when it is connecting to the master ldap server, but when it is using the slave as 
the backend the smbd daemon appears to seg fault when I attempt to add a W2K workstation to the 
domain.  The workstation gives an RPC error.

I am using 0.8.4 smbldap-tools configured with the slave/master information as the auto creation 
script.  The problem appears to come after smbldap-useradd has added the basic entries to the ldap 
server.  As I said, if I restart samba and point it to the master everything works just as it should.  Here 
are the relevent entries from the messages log file (I have the machine.log file as well, but the relevant 
entries comprise roughly 5000 lines so I have not included them with this bug report.   Please contact 
me if you need/want the additional logs):

May 28 08:50:34 x345-4 smbd[9381]: [2004/05/28 08:50:34, 0] lib/util.c:smb_panic2(1398) 
May 28 08:50:34 x345-4 smbd[9381]:   PANIC: internal error 
May 28 08:50:34 x345-4 smbd[9381]: [2004/05/28 08:50:34, 0] lib/util.c:smb_panic2(1406) 
May 28 08:50:34 x345-4 smbd[9381]:   BACKTRACE: 36 stack frames: 
May 28 08:50:34 x345-4 smbd[9381]:    #0 /usr/local/samba/sbin/smbd(smb_panic2+0x18c) 
[0x818fd00] 
May 28 08:50:34 x345-4 smbd[9381]:    #1 /usr/local/samba/sbin/smbd(smb_panic+0x10) 
[0x818fb72] 
May 28 08:50:34 x345-4 smbd[9381]:    #2 /usr/local/samba/sbin/smbd [0x818022a] 
May 28 08:50:34 x345-4 smbd[9381]:    #3 /usr/local/samba/sbin/smbd [0x818027f] 
May 28 08:50:34 x345-4 smbd[9381]:    #4 /lib/tls/libc.so.6 [0xb73bcc08] 
May 28 08:50:34 x345-4 smbd[9381]:    #5 /usr/lib/libldap.so.2(ldap_new_connection+0x1b4) 
[0xb75d35c4] 
May 28 08:50:34 x345-4 smbd[9381]:    #6 /usr/lib/libldap.so.2(ldap_send_server_request+0x2a6) 
[0xb75d33f6] 
May 28 08:50:34 x345-4 smbd[9381]:    #7 /usr/lib/libldap.so.2(ldap_chase_v3referrals+0x235) 
[0xb75d4215] 
May 28 08:50:34 x345-4 smbd[9381]:    #8 /usr/lib/libldap.so.2 [0xb75c47bf] 
May 28 08:50:34 x345-4 smbd[9381]:    #9 /usr/lib/libldap.so.2 [0xb75c3bdd] 
May 28 08:50:34 x345-4 smbd[9381]:    #10 /usr/lib/libldap.so.2(ldap_modify_ext_s+0x79) 
[0xb75ca209] 
May 28 08:50:34 x345-4 smbd[9381]:    #11 /usr/lib/libldap.so.2(ldap_modify_s+0x3d) [0xb75ca26d] 
May 28 08:50:34 x345-4 smbd[9381]:    #12 /usr/local/samba/sbin/smbd(smbldap_modify+0x11b) 
[0x81e8b69] 
May 28 08:50:34 x345-4 smbd[9381]:    #13 /usr/local/samba/sbin/smbd [0x8170fd1] 
May 28 08:50:34 x345-4 smbd[9381]:    #14 /usr/local/samba/sbin/smbd [0x8172367] 
May 28 08:50:34 x345-4 smbd[9381]:    #15 /usr/local/samba/sbin/smbd [0x8169ecc] 
May 28 08:50:34 x345-4 smbd[9381]:    #16 /usr/local/samba/sbin/
smbd(pdb_add_sam_account+0x29) [0x816b4fc] 
May 28 08:50:34 x345-4 smbd[9381]:    #17 /usr/local/samba/sbin/smbd(_samr_create_user+0x3b3) 
[0x811c272] 
May 28 08:50:34 x345-4 smbd[9381]:    #18 /usr/local/samba/sbin/smbd [0x81153dd] 
May 28 08:50:34 x345-4 smbd[9381]:    #19 /usr/local/samba/sbin/smbd(api_rpcTNP+0x1f3) 
[0x8129fc5] 
May 28 08:50:34 x345-4 smbd[9381]:    #20 /usr/local/samba/sbin/smbd(api_pipe_request+0xcd) 
[0x8129d57] 
May 28 08:50:34 x345-4 smbd[9381]:    #21 /usr/local/samba/sbin/smbd [0x812442e] 
May 28 08:50:34 x345-4 smbd[9381]:    #22 /usr/local/samba/sbin/smbd [0x8124606] 
May 28 08:50:34 x345-4 smbd[9381]:    #23 /usr/local/samba/sbin/smbd [0x8124882] 
May 28 08:50:34 x345-4 smbd[9381]:    #24 /usr/local/samba/sbin/smbd [0x8124a3b] 
May 28 08:50:34 x345-4 smbd[9381]:    #25 /usr/local/samba/sbin/smbd(write_to_pipe+0xd9) 
[0x81249bf] 
May 28 08:50:34 x345-4 smbd[9381]:    #26 /usr/local/samba/sbin/smbd [0x808865e] 
May 28 08:50:35 x345-4 smbd[9381]:    #27 /usr/local/samba/sbin/smbd [0x8088831] 
May 28 08:50:35 x345-4 smbd[9381]:    #28 /usr/local/samba/sbin/smbd(reply_trans+0x959) 
[0x80891f2] 
May 28 08:50:35 x345-4 smbd[9381]:    #29 /usr/local/samba/sbin/smbd [0x80bf5f6] 
May 28 08:50:35 x345-4 smbd[9381]:    #30 /usr/local/samba/sbin/smbd [0x80bf680] 
May 28 08:50:35 x345-4 smbd[9381]:    #31 /usr/local/samba/sbin/smbd(process_smb+0x1b9) 
[0x80bf97b] 
May 28 08:50:35 x345-4 smbd[9381]:    #32 /usr/local/samba/sbin/smbd(smbd_process+0x153) 
[0x80c03d6] 
May 28 08:50:35 x345-4 smbd[9381]:    #33 /usr/local/samba/sbin/smbd(main+0x706) [0x81eb5cf] 
May 28 08:50:35 x345-4 smbd[9381]:    #34 /lib/tls/libc.so.6(__libc_start_main+0xf8) [0xb73aa748] 
May 28 08:50:35 x345-4 smbd[9381]:    #35 /usr/local/samba/sbin/smbd(chroot+0x31) [0x80773e5] 
May 28 08:50:35 x345-4 smbd[9381]:
Comment 1 Gerald (Jerry) Carter 2005-02-08 07:41:29 UTC
please retest with Samba 3.0.11 and reopen if the bug 
still exists.
Comment 2 Gerald (Jerry) Carter 2005-08-24 10:17:23 UTC
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.