[Samba] Samba4 on Ubuntu server

Andrew Bartlett abartlet at samba.org
Mon Dec 29 00:52:56 MST 2014


On Mon, 2014-12-22 at 14:33 -0700, Cj Tibbetts wrote:
> Here is the information requested
> it took 3 days before results came
> samba-tool dbcheck finished with this error
> 
> root at ham1:/usr/local/samba/bin# time ./samba-tool dbcheck --cross-ncs
> Checking 212687 objects
> ERROR(<type 'exceptions.MemoryError'>): uncaught exception -
>   File
> "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py",
> line 175, in _run
>     return self.run(*args, **kwargs)
>   File
> "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/dbcheck.py",
> line 136, in run
>     controls=controls, attrs=attrs)
>   File "/usr/local/samba/lib/python2.7/site-packages/samba/dbchecker.py",
> line 128, in check_database
>     error_count += self.check_object(object.dn, attrs=attrs)
>   File "/usr/local/samba/lib/python2.7/site-packages/samba/dbchecker.py",
> line 1005, in check_object
>     attrs=attrs)
> Segmentation fault (core dumped)
> 
> real    1980m21.023s
> user    1408m48.304s
> sys     11m43.788s

212000 objects is very large for Samba, but running out of memory isn't
a good idea either.  We need to work on dbcheck to make it able to
continue working on such large databases, rather than blowing up. 

I'm assuming you have an exceedingly large DNS partition, due to the bug
in Samba 4.1 where we would create a new deleted object each time DNS
was updated. 

If a core file was really dumped, getting that into a debugger and
getting a bt full may be enlightening. 

Andrew Bartlett

-- 
Andrew Bartlett                       http://samba.org/~abartlet/
Authentication Developer, Samba Team  http://samba.org
Samba Developer, Catalyst IT          http://catalyst.net.nz/services/samba




More information about the samba mailing list