[samba] ldapsam:trusted = yes kills smbd

Jeremy Allison jra at samba.org
Thu Sep 29 21:25:28 GMT 2005


On Thu, Sep 29, 2005 at 10:25:11PM +0100, Daniel Wilson wrote:
> ok done that and produces this: (which ends in "Cannot access memory 
> at address 0x7fc0000000")
> ....
> ..
> 
> [Thread debugging using libthread_db enabled]
> [New Thread 182909114432 (LWP 8451)]
> push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
> push_conn_ctx(0) : conn_ctx_stack_ndx = 0
> setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
> NT user token: (NULL)
> UNIX token of user 0
> Primary group is 0 and contains 0 supplementary groups
> smbldap_search: base => 
> [ou=groups,ou=filestore,dc=sunderland,dc=ac,dc=uk], filter => [(&
> (objectClass=posixGroup)(|(memberUid=nobody)(gidNumber=65533)))], 
> scope => [2]
> primary group of [nobody] not found
> pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
> get_user_groups_from_local_sam failed
> attempting to free (and zero) a server_info structure
> attempting to free (and zero) a server_info structure
> [Switching to Thread 182909114432 (LWP 8451)]

Ah - this isn't useful I'm afraid, but there is something
interesting here - why is smbd using threads ? You do know
it's not thread safe...

I'm afraid you'll need to set a breakpoint on smbldap_search
and then single step until the thing exits to see what it's
doing. How are you building smbd - it shouldn't be linked to
pthreads.

Jeremy.


More information about the samba mailing list