Samba 4.4 on FreeBSD 11 segfaults with domain provisioning

Alnis Morics alnis.moritz at
Mon Feb 27 06:45:56 UTC 2017

On 02/27/2017 05:33, David Adam wrote:
> Hi,
> Has anyone managed to get net/samba44 provisioning a domain? Both the
> binary packages and port segfault with both classicupgrade and a brand new
> provision:
> root at mulmul /u/p/n/samba44# samba-tool domain provision --use-rfc2307
> --domain UCCDOMTEST --realm
> Administrator password will be set randomly!
> Looking up IPv4 addresses
> Looking up IPv6 addresses
> More than one IPv6 address found. Using 2405:3c00:5200:100::10
> Setting up share.ldb
> Setting up secrets.ldb
> Setting up the registry
> Setting up the privileges database
> Setting up idmap db
> Setting up SAM db
> Setting up sam.ldb partitions and settings
> Setting up sam.ldb rootDSE
> Pre-loading the Samba 4 and AD schema
> Adding DomainDN: DC=adtest2,DC=ucc,DC=gu,DC=uwa,DC=edu,DC=au
> Adding configuration container
> Setting up sam.ldb schema
> Setting up sam.ldb configuration data
> Setting up display specifiers
> Modifying display specifiers
> Adding users container
> Modifying users container
> Adding computers container
> Modifying computers container
> Setting up sam.ldb data
> Setting up well known security principals
> Setting up sam.ldb users and groups
> Setting up self join
> fish: 'samba-tool domain provision -...' terminated by signal SIGSEGV
> (Address boundary error)
> The backtrace is attached; I can provide more information if that would be
> helpful. I haven't managed to convince a newer version of Samba to build
> from source.
> Thanks
> David Adam
> zanchey at
> _______________________________________________
> freebsd-questions at mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at"

Hi, David.

It's a known bug:

The last time I experimented, samb43 port/package worked ok with 
provisioning. samba44 -- only on i386 arch. At the moment I use 
samba-4.4.9 compiled from source (using the port deps minus ldb, tdb, 
talloc, tevent), and it doesn't segfault while provisioning. Nor does 
the latest stable Samba compiled from source (4.5.5), but there I got 
problems with net rpc commands.


More information about the freebsd-questions mailing list