Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • BIND BIND
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 576
    • Issues 576
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 111
    • Merge requests 111
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ISC Open Source ProjectsISC Open Source Projects
  • BINDBIND
  • Issues
  • #1363
Closed
Open
Issue created Nov 18, 2019 by Ondřej Surý@ondrejOwner

ThreadSanitizer: data race dispatch.c:919 in allocate_udp_buffer

  • Binary named
  • Commit: c5b6f215
  • Tests: addzone, catz, cookie
WARNING: ThreadSanitizer: data race (pid=64733)
  Write of size 4 at 0x7b540000ffd8 by thread T5 (mutexes: write M107940602687108032, write M457813912839061400):
    #0 allocate_udp_buffer dispatch.c:919 (libdns.1503.dylib:x86_64+0x3af73)
    #1 startrecv dispatch.c:1520 (libdns.1503.dylib:x86_64+0x38967)
    #2 udp_recv dispatch.c:1286 (libdns.1503.dylib:x86_64+0x3d981)
    #3 udp_exrecv dispatch.c:997 (libdns.1503.dylib:x86_64+0x3c26c)
    #4 run task.c:1134 (libisc.1503.dylib:x86_64+0x2c9e1)

  Previous read of size 4 at 0x7b540000ffd8 by thread T7 (mutexes: write M147347099426598336):
    #0 startrecv dispatch.c:1501 (libdns.1503.dylib:x86_64+0x388c8)
    #1 dns_dispatch_removeresponse dispatch.c:3371 (libdns.1503.dylib:x86_64+0x3a048)
    #2 fctx_cancelquery resolver.c:1356 (libdns.1503.dylib:x86_64+0x13530c)
    #3 rctx_done resolver.c:9520 (libdns.1503.dylib:x86_64+0x1440aa)
    #4 resquery_response resolver.c (libdns.1503.dylib:x86_64+0x13ece7)
    #5 run task.c:1134 (libisc.1503.dylib:x86_64+0x2c9e1)

  Location is heap block of size 625 at 0x7b540000ff00 allocated by thread T5:
    #0 malloc <null>:5830896 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e65a)
    #1 default_memalloc mem.c:685 (libisc.1503.dylib:x86_64+0x17ae1)
    #2 run_server server.c:9588 (named:x86_64+0x10000db5a)
    #3 run task.c:1134 (libisc.1503.dylib:x86_64+0x2c9e1)

  Mutex M107940602687108032 is already destroyed.

  Mutex M457813912839061400 is already destroyed.

  Mutex M147347099426598336 is already destroyed.

  Thread T5 (tid=4746611, running) created by main thread at:
    #0 pthread_create <null>:5830944 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x2a9cd)
    #1 isc_thread_create thread.c:75 (libisc.1503.dylib:x86_64+0x46d1c)
    #2 main main.c:902 (named:x86_64+0x10000ad16)

  Thread T7 (tid=4746613, running) created by main thread at:
    #0 pthread_create <null>:5830944 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x2a9cd)
    #1 isc_thread_create thread.c:75 (libisc.1503.dylib:x86_64+0x46d1c)
    #2 main main.c:902 (named:x86_64+0x10000ad16)

SUMMARY: ThreadSanitizer: data race dispatch.c:919 in allocate_udp_buffer
Assignee
Assign to
Time tracking