Description of problem: Samba panics at start. How reproducible: [root@ipa root]# smbd -F -S smbd version 4.3.4 started. Copyright Andrew Tridgell and the Samba Team 1992-2015 Bad talloc magic value - wrong talloc version used/mixed PANIC: Bad talloc magic value - wrong talloc version used/mixed Aborted (core dumped) Additional info: FreeIPA configures Samba to use registry backend. With Samba 4.3.4, smb.conf parsing code was refactored but never tested with registry backend. As part of the code that switches smb.conf backend from files to registry, defaults are saved, original context is destroyed and then the rest of smb.conf is read from the registry. Since defaults were allocated using the same original context (Globals.ctx), they already gone but default values in the parm_table[] are still pointing to old memory locations. When new defaults are saved, old non-NULL values are freed again, causing crashes because there is no talloc context anymore.
Created attachment 11787 [details] proposed backport patch Patch attached.
Created attachment 11788 [details] git-am fix for 4.3.next Sorry for being nit-picky, attaching the same patch with "cherry-picked from" marker. Thanks, Uri
Comment on attachment 11788 [details] git-am fix for 4.3.next Thanks, Uri.
Assigning to Karolin for inclusion in next 4.3 Thanks, Uri
(In reply to Uri Simchoni from comment #4) Pushed to autobuild-v4-3-test.
(In reply to Karolin Seeger from comment #5) Pushed to v4-3-test. Closing out bug report. Thanks!