winbindd panic

Jeremy Allison jra at samba.org
Thu May 10 23:25:53 GMT 2007


On Tue, May 08, 2007 at 01:31:23PM -0700, Herb Lewis wrote:
> I'm getting
> [2007/05/08 20:20:20, 0, pid=3626] 
> freebsd_46_i386/debug/build/samba/source/nsswitch/winbindd.c:add_fd_event(522)
> PANIC: assert failed at 
> freebsd_46_i386/debug/build/samba/source/nsswitch/winbindd.c
> 
> because of the following code
> 
> #ifdef DEVELOPER
>                 SMB_ASSERT( match != ev );
> #else
>                 if ( match == ev )
>                         return;
> #endif
> 
> What is this code supposed to be doing? The call is comming
> from the function fork_domain_child

It's checking that the passed in ev pointer to a 'struct fd_event'
isn't already in the list. The usage is confusing, but in the
#DEVELOPER case it's panicing if the struct is already in
the list (as it shouldn't be) and in the non-#DEVELOPER case
it's just ignoring the add request.

Can you run under gdb and catch why it's adding
the same pointer twice ?

Jeremy.


More information about the samba-technical mailing list