Creating more than one view with inside the same dlz causes named to crash in tdb_nest_unlock or in tdb_nest_unlock (there are various stack traces). I'm using bind-9.8.2rc1 and samba 4.1.11 In each view I have: dlz "AD DNS Zone" { database "dlopen /usr/local/samba4.1/lib/bind9/dlz_bind9.so -d 3"; }; The various traces have in common this part: #6 0x00007f991abbb8e1 in tdb_find_lock_hash (tdb=0x7f992027a440, key=..., hash=1613222522, locktype=0, rec=0x7f9928822b00) at ../lib/tdb/common/tdb.c:121 #7 0x00007f991abbbb0d in _tdb_fetch (tdb=0x7f992027a440, key=...) at ../lib/tdb/common/tdb.c:196 #8 0x00007f991abbbbd0 in tdb_fetch (tdb=0x7f992027a440, key=...) at ../lib/tdb/common/tdb.c:208 #9 0x00007f9912131d81 in schema_metadata_get_uint64 (module=0x7f99201f3e50, key=0x7f99121331d8 "SCHEMA_SEQ_NUM", value=0x7f9928822cb0, default_value=0) at ../source4/dsdb/samdb/ldb_modules/schema_load.c:133 #10 0x00007f991213205f in dsdb_schema_refresh (module=0x7f99201f3e50, ev=0x7f9920157090, schema=0x7f99217c46d0, is_global_schema=true) at ../source4/dsdb/samdb/ldb_modules/schema_load.c:198 #11 0x00007f991c8f9339 in dsdb_get_schema (ldb=0x7f9920168f40, reference_ctx=0x7f98ec0412e0) at ../source4/dsdb/schema/schema_set.c:637
Created attachment 10233 [details] bt full inside gdb after named crash
Created attachment 10239 [details] bt inside gdb of another crash (this time in _talloc_free)
The problem keeps happening in Samba 4.4.4. The error is randomly and crash BIND. The error in the log is: samba_dlz: Bad talloc magic value - unknown value
Does this still happen on more recent versions?
(In reply to Douglas Bagnall from comment #4) Yes, 4.13.2, 4.12.7 + bind 9.16.1, ubuntu 20.04 amd64.