make (named_server_t).reload_status atomic

    WARNING: ThreadSanitizer: data race
    Write of size 4 at 0x000000000001 by thread T1:
    #0 view_loaded bin/named/server.c:9678:25
    #1 call_loaddone lib/dns/zt.c:308:3
    #2 doneloading lib/dns/zt.c:582:3
    #3 zone_asyncload lib/dns/zone.c:2322:3
    #4 dispatch lib/isc/task.c:1152:7
    #5 run lib/isc/task.c:1344:2

    Previous read of size 4 at 0x000000000001 by thread T2:
    #0 named_server_status bin/named/server.c:11903:14
    #1 named_control_docommand bin/named/control.c:272:12
    #2 control_command bin/named/controlconf.c:390:17
    #3 dispatch lib/isc/task.c:1152:7
    #4 run lib/isc/task.c:1344:2

    Location is heap block of size 409 at 0x000000000011 allocated by main thread:
    #0 malloc <null>
    #1 default_memalloc lib/isc/mem.c:713:8
    #2 mem_get lib/isc/mem.c:622:8
    #3 mem_allocateunlocked lib/isc/mem.c:1268:8
    #4 isc___mem_allocate lib/isc/mem.c:1288:7
    #5 isc__mem_allocate lib/isc/mem.c:2453:10
    #6 isc___mem_get lib/isc/mem.c:1037:11
    #7 isc__mem_get lib/isc/mem.c:2432:10
    #8 named_server_create bin/named/server.c:9978:27
    #9 setup bin/named/main.c:1256:2
    #10 main bin/named/main.c:1523:2

    Thread T1 (running) created by main thread at:
    #0 pthread_create <null>
    #1 isc_thread_create lib/isc/pthreads/thread.c:73:8
    #2 isc_taskmgr_create lib/isc/task.c:1434:3
    #3 create_managers bin/named/main.c:915:11
    #4 setup bin/named/main.c:1223:11
    #5 main bin/named/main.c:1523:2

    Thread T2 (running) created by main thread at:
    #0 pthread_create <null>
    #1 isc_thread_create lib/isc/pthreads/thread.c:73:8
    #2 isc_taskmgr_create lib/isc/task.c:1434:3
    #3 create_managers bin/named/main.c:915:11
    #4 setup bin/named/main.c:1223:11
    #5 main bin/named/main.c:1523:2

    SUMMARY: ThreadSanitizer: data race bin/named/server.c:9678:25 in view_loaded

(cherry picked from commit b00ba7ac)
79 jobs for !4202 with 2180-threadsanitizer-data-race-bin-named-server-c-9678-25-in-view_loaded-v9_16 in 19 minutes and 24 seconds (queued for 8 seconds)
latest detached
Status Job ID Name Coverage
  Precheck
passed #1190515
amd64 linux
autoreconf

00:00:14

passed #1190517
amd64 linux
clang-format

00:00:17

passed #1190518
amd64 linux
coccinelle

00:03:35

passed #1190519
amd64 linux
danger

00:00:13

passed #1190516
amd64 linux
misc

00:00:12

 
  Build
passed #1190533
amd64 linux
clang:asan

00:03:50

passed #1190537
amd64 linux
clang:buster:amd64

00:01:56

passed #1190540
amd64 libvirt
clang:freebsd11:amd64

00:01:43

passed #1190541
amd64 libvirt
clang:freebsd12:amd64

00:01:45

passed #1190542
amd64 libvirt
clang:openbsd:amd64

00:04:00

passed #1190535
amd64 linux
clang:tsan

00:02:14

passed #1190520
amd64 linux
gcc:alpine3.12:amd64

00:01:35

passed #1190532
amd64 linux
gcc:asan

00:03:25

passed #1190525
amd64 linux
gcc:buster:amd64

00:01:38

passed #1190521
amd64 linux
gcc:centos6:amd64

00:01:17

passed #1190522
amd64 linux
gcc:centos7:amd64

00:01:32

passed #1190523
amd64 linux
gcc:centos8:amd64

00:01:38

passed #1190531
amd64 linux
gcc:focal:amd64

00:01:38

passed #1190536
amd64 linux
gcc:mutexatomics

00:01:38

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

00:01:25

passed #1190526
amd64 linux
gcc:sid:amd64

00:02:03

passed #1190528
i386 linux
gcc:sid:i386

00:01:43

passed #1190538
amd64 linux
gcc:softhsm2.4

00:01:45

passed #1190539
amd64 linux
gcc:softhsm2.6

00:01:32

passed #1190524
amd64 linux
gcc:stretch:amd64

00:01:43

passed #1190534
amd64 linux
gcc:tsan

00:01:56

passed #1190529
amd64 linux
gcc:tumbleweed:amd64

00:01:34

passed #1190530
amd64 linux
gcc:xenial:amd64

00:01:47

passed #1190544
amd64 windows
msvc:windows:amd64

00:00:56

passed #1190543
amd64 linux
nolibtool:sid:amd64

00:02:09

 
  Unit
passed #1190557
amd64 linux
unit:clang:asan

00:00:54

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

00:00:36

passed #1190564
amd64 libvirt
unit:clang:freebsd11:amd64

00:01:00

failed #1190565
amd64 libvirt
unit:clang:freebsd12:amd64

00:01:23

passed #1190559
amd64 linux
unit:clang:tsan

00:01:48

passed #1190545
amd64 linux
unit:gcc:alpine3.12:amd64

00:00:48

passed #1190556
amd64 linux
unit:gcc:asan

00:00:51

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

00:00:35

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

00:00:36

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

00:00:36

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

00:00:37

passed #1190555
amd64 linux
unit:gcc:focal:amd64

00:00:36

passed #1190560
amd64 linux
unit:gcc:mutexatomics

00:00:37

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

00:00:36

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

00:00:40

passed #1190562
amd64 linux
unit:gcc:softhsm2.4

00:00:36

passed #1190563
amd64 linux
unit:gcc:softhsm2.6

00:00:37

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

00:00:36

passed #1190558
amd64 linux
unit:gcc:tsan

00:02:04

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

00:00:37

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

00:00:40

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

00:00:51

 
  System
passed #1190579
amd64 linux
system:clang:asan

00:12:49

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

00:10:53

passed #1190586
amd64 libvirt
system:clang:freebsd11:amd64

00:10:45

passed #1190587
amd64 libvirt
system:clang:freebsd12:amd64

00:10:24

failed #1190581
amd64 linux allowed to fail
system:clang:tsan

00:14:23

passed #1190567
amd64 linux
system:gcc:alpine3.12:amd64

00:11:29

passed #1190578
amd64 linux
system:gcc:asan

00:12:35

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

00:10:43

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

00:11:18

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

00:11:09

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

00:11:40

passed #1190577
amd64 linux
system:gcc:focal:amd64

00:11:13

passed #1190582
amd64 linux
system:gcc:mutexatomics

00:10:49

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

00:11:08

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

00:10:28

passed #1190584
amd64 linux
system:gcc:softhsm2.4

00:10:46

passed #1190585
amd64 linux
system:gcc:softhsm2.6

00:11:38

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

00:10:53

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

00:14:46

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

00:11:22

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

00:09:40

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

00:11:38

 
  Docs
passed #1190589
amd64 linux
docs

00:02:01

 
  Postcheck
passed #1190593
amd64 linux
cppcheck

00:00:21

passed #1190590
amd64 linux
flake8

00:00:18

passed #1190591
amd64 linux
pylint

00:00:23

passed #1190592
amd64 linux
scan-build

00:09:10

 
Name Stage Failure
failed
system:gcc:tsan System
Running after_script
Running after script...
$ find bin -name 'tsan.*' -exec python3 util/parse_tsan.py {} \;
Uploading artifacts for failed job
Uploading artifacts...
untracked: found 1480 files

Uploading artifacts as "archive" to coordinator... ok
id=1190580 responseStatus=201 Created token=fp_8hAPy
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
system:clang:tsan System
Running after_script
Running after script...
$ find bin -name 'tsan.*' -exec python3 util/parse_tsan.py {} \;
Uploading artifacts for failed job
Uploading artifacts...
untracked: found 1416 files

Uploading artifacts as "archive" to coordinator... ok
id=1190581 responseStatus=201 Created token=B9FNyk7s
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
unit:clang:freebsd12:amd64 Unit
Generating kyua_html/index.html
Uploading artifacts for failed job
Uploading artifacts...
Runtime platform
arch=amd64 os=freebsd pid=1758 revision=86ad88ea version=13.3.0
untracked: found 1406 files

Uploading artifacts as "archive" to coordinator... ok
id=1190565 responseStatus=201 Created token=hLvwSCDu
Cleaning up file based variables
Unsupported run stage 'cleanup_file_variables'
ERROR: Job failed: exit status 1