DEBUGGING INFO: Samba 2.1.0-prealpha, Redirector error, andAIX4.2

Doug VanLeuven ldx at ibm.net
Sat Aug 14 03:20:31 GMT 1999


Luke Kenneth Casson Leighton wrote:

> On Sat, 14 Aug 1999, Scott Parish wrote:
>
> > Luke Kenneth Casson Leighton wrote:
> > >
> > > On Sat, 14 Aug 1999, Scott Parish wrote:
> > >
> > > >   Opened pipe wkssvc with handle 80000000 (pipes_open=1)
> > >                                    ^^^^^^^^
> > > and what the heck is going on here???
> > >
> > > what is the value of pipe_handle_offset in rpc_server/srv_pipe_hnd.c?
> >
> > [1999/08/13 14:45:36, 1] smbd/files.c:file_init(219)
> >   file_init: Information only: requested 10000 open files, 2147483637 are
> > available.
> > [1999/08/13 14:45:36, 0] rpc_server/srv_pipe_hnd.c:set_pipe_handle_offset(56)
> >   HELLO: pipe_handle_offset = 7FFFFFFF
>
> thanks scott.  um... why is this so high????  is this against a typecast
> issue of max_open_files to something, or what?
>
> you using a severely brain-dead compiler or something? :-)
>
> ok, can you please attempt to track this a bit further, track
> real_max_open_files in smbd/files.c, see what's happening.

I compile & run samba-2.0.5a on AIX.  Yeah, thats not the issue here,
but max files allowed on AIX is.
I compile & run samba 2.1 HEAD branch (~ 7/29/99) on linux (right now for tests)
So I'm concerned.

As I read it:
smbd/files.c  file_init() calls set_maxfiles(10000 + MAX_OPEN_FUDGEFACTOR)

lib/util.c set_maxifles() has been re-written to be aware AIX doesn't support
setrlimit() & always returns RLIM_INFINITY ie:
0x7fffffff = 2147483647

My 2.0.5a version has
#if defined(RLIM_INFINITY)
and some code to handle this so it doesn't get outrageous.

My CVS version is missing this code.
Does a knowledgable one know if it is as simple as diff'ing & patching
the CVS function to 2.0.5a levels?

I suspect his problems will disappear once pipe_handle_offset doesn't
drive the number into overflow or negative.

-- Doug VanLeuven - 707-545-6933 (voice) 707-545-6945 (fax)
Chief Engineer, USMM roamdad at ibm.net
Programmer/Analyst, SCWA doug at scwa.ca.gov




More information about the samba-ntdom mailing list