Address race between zone_maintenance and dns_zone_setview_helper

There was a possible NULL dereference due to data race between accessing
zone->view and zone->view->adb.

(cherry picked from commit 67c8f732)
85 jobs for !3730 with 1627-address-race-in-zone-maintenance-v9_11 in 64 minutes and 7 seconds (queued for 14 seconds)
detached
Status Job ID Name Coverage
  Precheck
passed autoreconf #967331
amd64 linux

00:00:59

passed clang-format #967333
amd64 linux

00:00:12

passed coccinelle #967334
amd64 linux

00:01:26

passed danger #967335
amd64 linux

00:00:12

passed misc #967332
amd64 linux

00:00:24

 
  Build
passed clang:asan #967351
amd64 linux

00:07:30

passed clang:buster:amd64 #967355
amd64 linux

00:03:47

failed clang:freebsd11.3:amd64 #967357
amd64 libvirt

00:00:32

failed clang:freebsd12.1:amd64 #967358
amd64 libvirt

00:00:36

failed clang:openbsd6.6:amd64 #967359
amd64 libvirt

00:00:38

passed clang:tsan #967353
amd64 linux

00:04:47

passed gcc:alpine3.11:amd64 #967336
amd64 linux

00:02:34

passed gcc:asan #967350
amd64 linux

00:06:25

passed gcc:bionic:amd64 #967349
amd64 linux

00:03:41

passed gcc:buster:amd64 #967341
amd64 linux

00:03:49

passed gcc:centos6:amd64 #967337
amd64 linux

00:02:59

passed gcc:centos7:amd64 #967338
amd64 linux

00:03:05

passed gcc:centos8:amd64 #967339
amd64 linux

00:04:04

passed gcc:fedora31:amd64 #967347
amd64 linux

00:03:37

passed gcc:mutexatomics #967354
amd64 linux

00:03:28

passed gcc:out-of-tree #967343
linux amd64

00:03:29

passed gcc:pkcs11 #967356
amd64 linux

00:02:40

passed gcc:sid:amd64 #967342
amd64 linux

00:04:15

passed gcc:sid:arm64 #967344
arm64 linux

00:03:09

passed gcc:sid:i386 #967345
i386 linux

00:03:47

passed gcc:stretch:amd64 #967340
amd64 linux

00:03:07

passed gcc:tsan #967352
amd64 linux

00:03:08

passed gcc:tumbleweed:amd64 #967346
amd64 linux

00:03:24

passed gcc:xenial:amd64 #967348
amd64 linux

00:03:57

passed msvc:windows:amd64 #967361
amd64 windows

00:02:57

passed nolibtool:sid:amd64 #967360
amd64 linux

00:03:20

 
  Unit
passed unit:clang:asan #967376
amd64 linux

00:02:30

passed unit:clang:buster:amd64 #967380
amd64 linux

00:01:24

skipped unit:clang:freebsd11.3:amd64 #967382
amd64 libvirt
skipped unit:clang:freebsd12.1:amd64 #967383
amd64 libvirt
failed unit:clang:tsan #967378
amd64 linux allowed to fail

00:11:33

passed unit:gcc:alpine3.11:amd64 #967362
amd64 linux

00:00:41

passed unit:gcc:asan #967375
amd64 linux

00:01:51

passed unit:gcc:bionic:amd64 #967374
amd64 linux

00:01:21

passed unit:gcc:buster:amd64 #967367
amd64 linux

00:01:10

passed unit:gcc:centos6:amd64 #967363
amd64 linux

00:01:22

passed unit:gcc:centos7:amd64 #967364
amd64 linux

00:00:41

passed unit:gcc:centos8:amd64 #967365
amd64 linux

00:01:15

passed unit:gcc:fedora31:amd64 #967372
amd64 linux

00:00:45

passed unit:gcc:mutexatomics #967379
amd64 linux

00:01:16

passed unit:gcc:pkcs11 #967381
amd64 linux

00:00:44

passed unit:gcc:sid:amd64 #967368
amd64 linux

00:00:32

passed unit:gcc:sid:arm64 #967369
arm64 linux

00:00:57

passed unit:gcc:sid:i386 #967370
i386 linux

00:01:11

passed unit:gcc:stretch:amd64 #967366
amd64 linux

00:01:26

failed unit:gcc:tsan #967377
amd64 linux allowed to fail

00:10:44

passed unit:gcc:tumbleweed:amd64 #967371
amd64 linux

00:01:16

passed unit:gcc:xenial:amd64 #967373
amd64 linux

00:00:41

passed unit:nolibtool:sid:amd64 #967384
amd64 linux

00:00:58

 
  System
passed system:clang:asan #967399
amd64 linux

00:13:23

passed system:clang:buster:amd64 #967403
amd64 linux

00:11:09

skipped system:clang:freebsd11.3:amd64 #967405
amd64 libvirt
skipped system:clang:freebsd12.1:amd64 #967406
amd64 libvirt
failed system:clang:tsan #967401
amd64 linux allowed to fail

00:40:24

passed system:gcc:alpine3.11:amd64 #967385
amd64 linux

00:09:11

passed system:gcc:asan #967676
linux amd64

00:10:52

passed system:gcc:bionic:amd64 #967397
amd64 linux

00:10:34

passed system:gcc:buster:amd64 #967390
amd64 linux

00:11:37

passed system:gcc:centos6:amd64 #967386
amd64 linux

00:08:33

passed system:gcc:centos7:amd64 #967387
amd64 linux

00:08:48

passed system:gcc:centos8:amd64 #967388
amd64 linux

00:11:28

passed system:gcc:fedora31:amd64 #967395
amd64 linux

00:11:14

passed system:gcc:mutexatomics #967402
amd64 linux

00:11:23

passed system:gcc:pkcs11 #967677
linux amd64

00:11:31

passed system:gcc:sid:amd64 #967391
amd64 linux

00:11:14

passed system:gcc:sid:arm64 #967392
arm64 linux

00:08:42

passed system:gcc:sid:i386 #967393
linux i386

00:08:46

passed system:gcc:stretch:amd64 #967389
amd64 linux

00:08:45

failed system:gcc:tsan #967400
amd64 linux allowed to fail

00:29:53

passed system:gcc:tumbleweed:amd64 #967394
amd64 linux

00:08:47

passed system:gcc:xenial:amd64 #967678
linux amd64

00:08:42

passed system:nolibtool:sid:amd64 #967407
amd64 linux

00:08:32

failed system:gcc:asan #967398
amd64 linux

00:14:29

failed system:gcc:pkcs11 #967404
amd64 linux

00:13:15

failed system:gcc:xenial:amd64 #967396
amd64 linux

00:11:20

 
  Docs
passed docs #967408
amd64 linux

00:01:46

 
  Postcheck
passed cppcheck #967412
amd64 linux

00:01:16

passed flake8 #967409
amd64 linux

00:01:17

passed pylint #967410
amd64 linux

00:01:23

passed scan-build #967411
amd64 linux

00:13:18

 
Name Stage Failure
failed
system:clang:tsan System
No job log
failed
system:gcc:tsan System
No job log
failed
unit:clang:tsan Unit
No job log
failed
unit:gcc:tsan Unit
No job log
failed
clang:openbsd6.6:amd64 Build
No job log
failed
clang:freebsd12.1:amd64 Build
No job log
failed
clang:freebsd11.3:amd64 Build
No job log