-
Notifications
You must be signed in to change notification settings - Fork 26
WIP: Fix merge #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DaveDaCoda
pushed a commit
to DaveDaCoda/zmap
that referenced
this pull request
Sep 21, 2025
…ap#780) * fist pass at a debian workflow * Refactored debian workflow into a common bsd/linux yml. Edited Dockerfile * attempt tumi8#2 * attempt tumi8#3 * attempt tumi8#4 * attempt tumi8#5 * attempt tumi8#6 * attempt tumi8#7 * attempt tumi8#8 * attempt tumi8#9 * attempt tumi8#10, at least we're getting into the debian dockerfile * Looks like its working, causing a compile error in get_gateway_linux to see if check fails * Confirmed, debian workflow is working! * Removed debugging ls in .yml * testing arch build * Added fedora test * testing Gentoo test * phillip/773: refactored all the github compile actions to be in a single .yml file * phillip/773: added arch and gentoo Install instructions * phillip/773: removed extra space in arch.Dockerfile * phillip/773: apparently the free-bsd vm is picky about having the run being on the same line
tgesthuizen
added a commit
to tgesthuizen/zmap
that referenced
this pull request
Nov 7, 2025
Thread sanitizer found another data race regarding the access of the
thread shards between multiple worker threads:
```
WARNING: ThreadSanitizer: data race (pid=3257)
Read of size 8 at 0x725000000400 by thread T6 (mutexes: write M0):
#0 iterator_get_sent /usr/local/src/src/iterator.c:111 (zmap+0x19a0b) (BuildId: 6bd4bc4303161311b665663353ccdfa2bac024d8)
tumi8#1 export_stats /usr/local/src/src/monitor.c:193 (zmap+0x1a911) (BuildId: 6bd4bc4303161311b665663353ccdfa2bac024d8)
tumi8#2 export_then_update /usr/local/src/src/monitor.c:483 (zmap+0x1a911)
tumi8#3 monitor_run /usr/local/src/src/monitor.c:517 (zmap+0x1be08) (BuildId: 6bd4bc4303161311b665663353ccdfa2bac024d8)
tumi8#4 start_mon /usr/local/src/src/zmap.c:132 (zmap+0x21346) (BuildId: 6bd4bc4303161311b665663353ccdfa2bac024d8)
Previous write of size 8 at 0x725000000400 by thread T2:
#0 send_run /usr/local/src/src/send.c:485 (zmap+0x1e319) (BuildId: 6bd4bc4303161311b665663353ccdfa2bac024d8)
tumi8#1 start_send /usr/local/src/src/zmap.c:110 (zmap+0x21479) (BuildId: 6bd4bc4303161311b665663353ccdfa2bac024d8)
Location is heap block of size 480 at 0x725000000400 allocated by main thread:
#0 calloc ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:685 (libtsan.so.2+0x54d0d) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571)
tumi8#1 xcalloc /usr/local/src/lib/xalloc.c:27 (zmap+0x479e4) (BuildId: 6bd4bc4303161311b665663353ccdfa2bac024d8)
tumi8#2 iterator_init /usr/local/src/src/iterator.c:94 (zmap+0x197a4) (BuildId: 6bd4bc4303161311b665663353ccdfa2bac024d8)
tumi8#3 send_init /usr/local/src/src/send.c:94 (zmap+0x1d255) (BuildId: 6bd4bc4303161311b665663353ccdfa2bac024d8)
tumi8#4 start_zmap /usr/local/src/src/zmap.c:208 (zmap+0x1368a) (BuildId: 6bd4bc4303161311b665663353ccdfa2bac024d8)
tumi8#5 main /usr/local/src/src/zmap.c:1201 (zmap+0x1368a)
Mutex M0 (0x5612c1126c40) created at:
#0 pthread_mutex_lock ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1341 (libtsan.so.2+0x59a13) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571)
tumi8#1 recv_update_stats /usr/local/src/src/recv-pcap.c:161 (zmap+0x42fec) (BuildId: 6bd4bc4303161311b665663353ccdfa2bac024d8)
tumi8#2 update_pcap_stats /usr/local/src/src/monitor.c:183 (zmap+0x1a8f5) (BuildId: 6bd4bc4303161311b665663353ccdfa2bac024d8)
tumi8#3 export_then_update /usr/local/src/src/monitor.c:482 (zmap+0x1a8f5)
tumi8#4 monitor_run /usr/local/src/src/monitor.c:517 (zmap+0x1be08) (BuildId: 6bd4bc4303161311b665663353ccdfa2bac024d8)
tumi8#5 start_mon /usr/local/src/src/zmap.c:132 (zmap+0x21346) (BuildId: 6bd4bc4303161311b665663353ccdfa2bac024d8)
Thread T6 (tid=3266, running) created by main thread at:
#0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571)
tumi8#1 start_zmap /usr/local/src/src/zmap.c:272 (zmap+0x13982) (BuildId: 6bd4bc4303161311b665663353ccdfa2bac024d8)
tumi8#2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13982)
Thread T2 (tid=3262, running) created by main thread at:
#0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571)
tumi8#1 start_zmap /usr/local/src/src/zmap.c:258 (zmap+0x13881) (BuildId: 6bd4bc4303161311b665663353ccdfa2bac024d8)
tumi8#2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13881)
```
Mitigate this race condition.
tgesthuizen
added a commit
to tgesthuizen/zmap
that referenced
this pull request
Nov 7, 2025
Thread sanitizer is complaining about unsynchronized access to the
zconf data structure:
```
==================
WARNING: ThreadSanitizer: data race (pid=3272)
Read of size 8 at 0x556715cf3528 by thread T6:
#0 compute_remaining_time /usr/local/src/src/monitor.c:150 (zmap+0x1a48f) (BuildId: d7f52659819cc2869c5001e1dd27d5430420426b)
tumi8#1 compute_remaining_time /usr/local/src/src/monitor.c:124 (zmap+0x1a48f)
tumi8#2 export_stats /usr/local/src/src/monitor.c:205 (zmap+0x1a9e9) (BuildId: d7f52659819cc2869c5001e1dd27d5430420426b)
tumi8#3 export_then_update /usr/local/src/src/monitor.c:483 (zmap+0x1a9e9)
tumi8#4 monitor_run /usr/local/src/src/monitor.c:517 (zmap+0x1be28) (BuildId: d7f52659819cc2869c5001e1dd27d5430420426b)
tumi8#5 start_mon /usr/local/src/src/zmap.c:132 (zmap+0x213a6) (BuildId: d7f52659819cc2869c5001e1dd27d5430420426b)
Previous write of size 8 at 0x556715cf3528 by thread T1:
#0 recv_run /usr/local/src/src/recv.c:267 (zmap+0x1cd66) (BuildId: d7f52659819cc2869c5001e1dd27d5430420426b)
tumi8#1 start_recv /usr/local/src/src/zmap.c:123 (zmap+0x2143f) (BuildId: d7f52659819cc2869c5001e1dd27d5430420426b)
Location is global 'zconf' of size 8168 at 0x556715cf3500 (zmap+0x63528)
Thread T6 (tid=3281, running) created by main thread at:
#0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571)
tumi8#1 start_zmap /usr/local/src/src/zmap.c:272 (zmap+0x13982) (BuildId: d7f52659819cc2869c5001e1dd27d5430420426b)
tumi8#2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13982)
Thread T1 (tid=3276, running) created by main thread at:
#0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571)
tumi8#1 start_zmap /usr/local/src/src/zmap.c:224 (zmap+0x13736) (BuildId: d7f52659819cc2869c5001e1dd27d5430420426b)
tumi8#2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13736)
SUMMARY: ThreadSanitizer: data race /usr/local/src/src/monitor.c:150 in compute_remaining_time
```
Mitigate this by adding a mutex to the data structure and acquiring it
for read/write access.
tgesthuizen
added a commit
to tgesthuizen/zmap
that referenced
this pull request
Nov 7, 2025
Fixes all findings of thread sanitizer for my test invocations. Namely all findings listed below, plus some extra findings that occured once the process did not crash anymore. The Dockerfile to build the instrumented binary is checked in now under Dockerfile.tsan. ┌──── │ tim@SCAN02:~/measurements/data$ docker run --rm --net=host -v /home/tim/measurements/data/tmp:/data --entrypoint /bin/bash -it --rm zmap-tumi:debug │ root@SCAN02:/# gdb zmap │ GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git │ Copyright (C) 2024 Free Software Foundation, Inc. │ License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> │ This is free software: you are free to change and redistribute it. │ There is NO WARRANTY, to the extent permitted by law. │ Type "show copying" and "show warranty" for details. │ This GDB was configured as "x86_64-linux-gnu". │ Type "show configuration" for configuration details. │ For bug reporting instructions, please see: │ <https://www.gnu.org/software/gdb/bugs/>. │ Find the GDB manual and other documentation resources online at: │ <http://www.gnu.org/software/gdb/documentation/>. │ │ For help, type "help". │ Type "apropos word" to search for commands related to "word"... │ Reading symbols from zmap... │ (gdb) run -B 10M -i rj4501 -M ipv6_tcp_synscan --ipv6-target-file /data/ips_v6.txt -o /data/alive_tcp443_v6.txt --ipv6-source-ip 2001:638:500:9b00::200 -p 443 --blocklist-file=/dev/null │ Starting program: /opt/zmap/sbin/zmap -B 10M -i rj4501 -M ipv6_tcp_synscan --ipv6-target-file /data/ips_v6.txt -o /data/alive_tcp443_v6.txt --ipv6-source-ip 2001:638:500:9b00::200 -p 443 --blocklist-file=/dev/null │ │ warning: Error disabling address space randomization: Operation not permitted │ [Thread debugging using libthread_db enabled] │ Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". │ warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libcap.so.2 │ Nov 07 14:59:55.577 [INFO] zmap: By default, ZMap will output the unique IP addresses of hosts that respond successfully (e.g., SYN-ACK packet). This is equivalent to running ZMap with the following flags: --output-module=csv --output-fields=saddr --output-filter='success=1 && repeat=0' --no-header-row. If you want all responses, explicitly set an output module or set --output-filter="". │ Nov 07 14:59:55.578 [INFO] dedup: Response deduplication method is full │ [New Thread 0x7fbba00fe6c0 (LWP 22)] │ [New Thread 0x7fbb9f8fd6c0 (LWP 23)] │ Nov 07 14:59:55.646 [INFO] recv: duplicate responses will be excluded from output │ Nov 07 14:59:55.646 [INFO] recv: unsuccessful responses will be excluded from output │ [New Thread 0x7fbb9eefc6c0 (LWP 24)] │ [New Thread 0x7fbb9e6fb6c0 (LWP 25)] │ [New Thread 0x7fbb9defa6c0 (LWP 26)] │ [New Thread 0x7fbb9d6f96c0 (LWP 27)] │ [New Thread 0x7fbb9ce166c0 (LWP 28)] │ ================== │ WARNING: ThreadSanitizer: data race (pid=19) │ Read of size 8 at 0x725000000400 by thread T6: │ #0 iterator_get_sent /usr/local/src/src/iterator.c:111 (zmap+0x199eb) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 export_stats /usr/local/src/src/monitor.c:190 (zmap+0x1a8e5) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 export_then_update /usr/local/src/src/monitor.c:477 (zmap+0x1a8e5) │ #3 monitor_run /usr/local/src/src/monitor.c:502 (zmap+0x1bda8) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #4 start_mon /usr/local/src/src/zmap.c:132 (zmap+0x212c6) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Previous write of size 8 at 0x725000000400 by thread T2: │ #0 send_run /usr/local/src/src/send.c:485 (zmap+0x1e299) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 start_send /usr/local/src/src/zmap.c:110 (zmap+0x213f9) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Location is heap block of size 480 at 0x725000000400 allocated by main thread: │ #0 calloc ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:685 (libtsan.so.2+0x54d0d) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 xcalloc /usr/local/src/lib/xalloc.c:27 (zmap+0x47934) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 iterator_init /usr/local/src/src/iterator.c:94 (zmap+0x19784) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #3 send_init /usr/local/src/src/send.c:94 (zmap+0x1d1d5) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #4 start_zmap /usr/local/src/src/zmap.c:208 (zmap+0x1366a) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #5 main /usr/local/src/src/zmap.c:1201 (zmap+0x1366a) │ │ Thread T6 (tid=28, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:272 (zmap+0x13962) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13962) │ │ Thread T2 (tid=24, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:258 (zmap+0x13861) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13861) │ │ SUMMARY: ThreadSanitizer: data race /usr/local/src/src/iterator.c:111 in iterator_get_sent │ ================== │ ================== │ WARNING: ThreadSanitizer: data race (pid=19) │ Read of size 8 at 0x55ae0d07bc30 by thread T4: │ #0 sendmmsg ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:3242 (libtsan.so.2+0x69f3c) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 send_batch /usr/local/src/src/send-linux.c:109 (zmap+0x42778) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 send_run /usr/local/src/src/send.c:471 (zmap+0x1e3be) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #3 start_send /usr/local/src/src/zmap.c:110 (zmap+0x213f9) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Previous write of size 4 at 0x55ae0d07bc34 by thread T5 (mutexes: write M0): │ #0 send_run_init /usr/local/src/src/send-linux.c:63 (zmap+0x422d2) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 send_run /usr/local/src/src/send.c:223 (zmap+0x1d8f7) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 start_send /usr/local/src/src/zmap.c:110 (zmap+0x213f9) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Location is global 'sockaddr' of size 20 at 0x55ae0d07bc30 (zmap+0x78c30) │ │ Mutex M0 (0x55ae0d07b8e0) created at: │ #0 pthread_mutex_lock ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1341 (libtsan.so.2+0x59a13) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 send_run /usr/local/src/src/send.c:218 (zmap+0x1d8cf) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 start_send /usr/local/src/src/zmap.c:110 (zmap+0x213f9) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Thread T4 (tid=26, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:258 (zmap+0x13861) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13861) │ │ Thread T5 (tid=27, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:258 (zmap+0x13861) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13861) │ │ SUMMARY: ThreadSanitizer: data race /usr/local/src/src/send-linux.c:109 in send_batch │ ================== │ ================== │ WARNING: ThreadSanitizer: data race (pid=19) │ Read of size 4 at 0x725000000420 by thread T6: │ #0 iterator_get_fail /usr/local/src/src/iterator.c:129 (zmap+0x19b4b) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 export_stats /usr/local/src/src/monitor.c:192 (zmap+0x1a8fd) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 export_then_update /usr/local/src/src/monitor.c:477 (zmap+0x1a8fd) │ #3 monitor_run /usr/local/src/src/monitor.c:502 (zmap+0x1bda8) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #4 start_mon /usr/local/src/src/zmap.c:132 (zmap+0x212c6) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Previous write of size 4 at 0x725000000420 by thread T2: │ #0 send_run /usr/local/src/src/send.c:476 (zmap+0x1e40a) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 start_send /usr/local/src/src/zmap.c:110 (zmap+0x213f9) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Location is heap block of size 480 at 0x725000000400 allocated by main thread: │ #0 calloc ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:685 (libtsan.so.2+0x54d0d) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 xcalloc /usr/local/src/lib/xalloc.c:27 (zmap+0x47934) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 iterator_init /usr/local/src/src/iterator.c:94 (zmap+0x19784) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #3 send_init /usr/local/src/src/send.c:94 (zmap+0x1d1d5) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #4 start_zmap /usr/local/src/src/zmap.c:208 (zmap+0x1366a) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #5 main /usr/local/src/src/zmap.c:1201 (zmap+0x1366a) │ │ Thread T6 (tid=28, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:272 (zmap+0x13962) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13962) │ │ Thread T2 (tid=24, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:258 (zmap+0x13861) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13861) │ │ SUMMARY: ThreadSanitizer: data race /usr/local/src/src/iterator.c:129 in iterator_get_fail │ ================== │ ================== │ WARNING: ThreadSanitizer: data race (pid=19) │ Read of size 8 at 0x55ae0d07b928 by thread T6: │ #0 export_stats /usr/local/src/src/monitor.c:194 (zmap+0x1a923) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 export_then_update /usr/local/src/src/monitor.c:477 (zmap+0x1a923) │ #2 monitor_run /usr/local/src/src/monitor.c:502 (zmap+0x1bda8) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #3 start_mon /usr/local/src/src/zmap.c:132 (zmap+0x212c6) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Previous write of size 8 at 0x55ae0d07b928 by thread T1: │ #0 handle_packet /usr/local/src/src/recv.c:173 (zmap+0x1c875) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 packet_cb /usr/local/src/src/recv-pcap.c:55 (zmap+0x42874) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 packet_cb /usr/local/src/src/recv-pcap.c:37 (zmap+0x42874) │ #3 <null> <null> (libpcap.so.0.8+0x9edf) (BuildId: d0c6c787d35246d7107d600c893454c1fcbaf262) │ #4 recv_run /usr/local/src/src/recv.c:274 (zmap+0x1cd1b) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #5 start_recv /usr/local/src/src/zmap.c:123 (zmap+0x2135f) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Location is global 'zrecv' of size 136 at 0x55ae0d07b920 (zmap+0x78928) │ │ Thread T6 (tid=28, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:272 (zmap+0x13962) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13962) │ │ Thread T1 (tid=23, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:224 (zmap+0x13716) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13716) │ │ SUMMARY: ThreadSanitizer: data race /usr/local/src/src/monitor.c:194 in export_stats │ ================== │ ================== │ WARNING: ThreadSanitizer: data race (pid=19) │ Read of size 8 at 0x55ae0d066528 by thread T6: │ #0 compute_remaining_time /usr/local/src/src/monitor.c:150 (zmap+0x1a44f) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 compute_remaining_time /usr/local/src/src/monitor.c:124 (zmap+0x1a44f) │ #2 export_stats /usr/local/src/src/monitor.c:201 (zmap+0x1a993) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #3 export_then_update /usr/local/src/src/monitor.c:477 (zmap+0x1a993) │ #4 monitor_run /usr/local/src/src/monitor.c:502 (zmap+0x1bda8) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #5 start_mon /usr/local/src/src/zmap.c:132 (zmap+0x212c6) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Previous write of size 8 at 0x55ae0d066528 by thread T1: │ #0 recv_run /usr/local/src/src/recv.c:267 (zmap+0x1ccc6) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 start_recv /usr/local/src/src/zmap.c:123 (zmap+0x2135f) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Location is global 'zconf' of size 8168 at 0x55ae0d066500 (zmap+0x63528) │ │ Thread T6 (tid=28, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:272 (zmap+0x13962) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13962) │ │ Thread T1 (tid=23, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:224 (zmap+0x13716) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13716) │ │ SUMMARY: ThreadSanitizer: data race /usr/local/src/src/monitor.c:150 in compute_remaining_time │ ================== │ ================== │ WARNING: ThreadSanitizer: data race (pid=19) │ Read of size 8 at 0x55ae0d07b958 by thread T6: │ #0 compute_remaining_time /usr/local/src/src/monitor.c:152 (zmap+0x1a468) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 compute_remaining_time /usr/local/src/src/monitor.c:124 (zmap+0x1a468) │ #2 export_stats /usr/local/src/src/monitor.c:201 (zmap+0x1a993) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #3 export_then_update /usr/local/src/src/monitor.c:477 (zmap+0x1a993) │ #4 monitor_run /usr/local/src/src/monitor.c:502 (zmap+0x1bda8) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #5 start_mon /usr/local/src/src/zmap.c:132 (zmap+0x212c6) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Previous write of size 8 at 0x55ae0d07b958 by thread T1: │ #0 handle_packet /usr/local/src/src/recv.c:212 (zmap+0x1c561) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 packet_cb /usr/local/src/src/recv-pcap.c:55 (zmap+0x42874) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 packet_cb /usr/local/src/src/recv-pcap.c:37 (zmap+0x42874) │ #3 <null> <null> (libpcap.so.0.8+0x9edf) (BuildId: d0c6c787d35246d7107d600c893454c1fcbaf262) │ #4 recv_run /usr/local/src/src/recv.c:274 (zmap+0x1cd1b) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #5 start_recv /usr/local/src/src/zmap.c:123 (zmap+0x2135f) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Location is global 'zrecv' of size 136 at 0x55ae0d07b920 (zmap+0x78958) │ │ Thread T6 (tid=28, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:272 (zmap+0x13962) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13962) │ │ Thread T1 (tid=23, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:224 (zmap+0x13716) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13716) │ │ SUMMARY: ThreadSanitizer: data race /usr/local/src/src/monitor.c:152 in compute_remaining_time │ ================== │ 0:00 0%; send: 455 1 p/s (1.81 Kp/s avg); recv: 53 1 p/s (210 p/s avg); drops: 0 p/s (0 p/s avg); hitrate: 11.65% │ ================== │ WARNING: ThreadSanitizer: data race (pid=19) │ Write of size 4 at 0x721c00000060 by thread T5 (mutexes: write M0): │ #0 shard_complete /usr/local/src/src/iterator.c:41 (zmap+0x19407) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 send_run /usr/local/src/src/send.c:535 (zmap+0x1e62c) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 start_send /usr/local/src/src/zmap.c:110 (zmap+0x213f9) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Previous read of size 4 at 0x721c00000060 by thread T6: │ #0 iterator_get_curr_send_threads /usr/local/src/src/iterator.c:143 (zmap+0x19c63) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 export_stats /usr/local/src/src/monitor.c:303 (zmap+0x1b0fc) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 export_then_update /usr/local/src/src/monitor.c:477 (zmap+0x1b0fc) │ #3 monitor_run /usr/local/src/src/monitor.c:502 (zmap+0x1bda8) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #4 start_mon /usr/local/src/src/zmap.c:132 (zmap+0x212c6) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Location is heap block of size 104 at 0x721c00000000 allocated by main thread: │ #0 calloc ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:685 (libtsan.so.2+0x54d0d) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 xmalloc /usr/local/src/lib/xalloc.c:38 (zmap+0x479f2) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 iterator_init /usr/local/src/src/iterator.c:83 (zmap+0x196c6) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #3 send_init /usr/local/src/src/send.c:94 (zmap+0x1d1d5) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #4 start_zmap /usr/local/src/src/zmap.c:208 (zmap+0x1366a) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #5 main /usr/local/src/src/zmap.c:1201 (zmap+0x1366a) │ │ Mutex M0 (0x721c00000038) created at: │ #0 pthread_mutex_init ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1315 (libtsan.so.2+0x594cd) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 iterator_init /usr/local/src/src/iterator.c:96 (zmap+0x197d2) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 send_init /usr/local/src/src/send.c:94 (zmap+0x1d1d5) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #3 start_zmap /usr/local/src/src/zmap.c:208 (zmap+0x1366a) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #4 main /usr/local/src/src/zmap.c:1201 (zmap+0x1366a) │ │ Thread T5 (tid=27, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:258 (zmap+0x13861) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13861) │ │ Thread T6 (tid=28, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:272 (zmap+0x13962) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13962) │ │ SUMMARY: ThreadSanitizer: data race /usr/local/src/src/iterator.c:41 in shard_complete │ ================== │ ================== │ WARNING: ThreadSanitizer: data race (pid=19) │ Read of size 4 at 0x55ae0d0664d8 by thread T5 (mutexes: write M0): │ #0 shard_complete /usr/local/src/src/iterator.c:45 (zmap+0x194d3) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 send_run /usr/local/src/src/send.c:535 (zmap+0x1e62c) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 start_send /usr/local/src/src/zmap.c:110 (zmap+0x213f9) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Previous write of size 4 at 0x55ae0d0664d8 by thread T6: │ #0 export_stats /usr/local/src/src/monitor.c:297 (zmap+0x1b059) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 export_then_update /usr/local/src/src/monitor.c:477 (zmap+0x1b059) │ #2 monitor_run /usr/local/src/src/monitor.c:502 (zmap+0x1bda8) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #3 start_mon /usr/local/src/src/zmap.c:132 (zmap+0x212c6) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Location is global 'zsend' of size 80 at 0x55ae0d0664a0 (zmap+0x634d8) │ │ Mutex M0 (0x721c00000038) created at: │ #0 pthread_mutex_init ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1315 (libtsan.so.2+0x594cd) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 iterator_init /usr/local/src/src/iterator.c:96 (zmap+0x197d2) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 send_init /usr/local/src/src/send.c:94 (zmap+0x1d1d5) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #3 start_zmap /usr/local/src/src/zmap.c:208 (zmap+0x1366a) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #4 main /usr/local/src/src/zmap.c:1201 (zmap+0x1366a) │ │ Thread T5 (tid=27, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:258 (zmap+0x13861) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13861) │ │ Thread T6 (tid=28, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:272 (zmap+0x13962) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13962) │ │ SUMMARY: ThreadSanitizer: data race /usr/local/src/src/iterator.c:45 in shard_complete │ ================== │ ================== │ WARNING: ThreadSanitizer: data race (pid=19) │ Write of size 4 at 0x55ae0d0664c4 by thread T2 (mutexes: write M0): │ #0 shard_complete /usr/local/src/src/iterator.c:52 (zmap+0x19561) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 send_run /usr/local/src/src/send.c:535 (zmap+0x1e62c) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 start_send /usr/local/src/src/zmap.c:110 (zmap+0x213f9) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Previous read of size 4 at 0x55ae0d0664c4 by thread T1: │ #0 recv_run /usr/local/src/src/recv.c:281 (zmap+0x1ccf9) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 start_recv /usr/local/src/src/zmap.c:123 (zmap+0x2135f) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Location is global 'zsend' of size 80 at 0x55ae0d0664a0 (zmap+0x634c4) │ │ Mutex M0 (0x721c00000038) created at: │ #0 pthread_mutex_init ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1315 (libtsan.so.2+0x594cd) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 iterator_init /usr/local/src/src/iterator.c:96 (zmap+0x197d2) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 send_init /usr/local/src/src/send.c:94 (zmap+0x1d1d5) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #3 start_zmap /usr/local/src/src/zmap.c:208 (zmap+0x1366a) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #4 main /usr/local/src/src/zmap.c:1201 (zmap+0x1366a) │ │ Thread T2 (tid=24, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:258 (zmap+0x13861) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13861) │ │ Thread T1 (tid=23, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:224 (zmap+0x13716) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13716) │ │ SUMMARY: ThreadSanitizer: data race /usr/local/src/src/iterator.c:52 in shard_complete │ ================== │ ================== │ WARNING: ThreadSanitizer: data race (pid=19) │ Read of size 8 at 0x55ae0d0664a8 by thread T1: │ #0 recv_run /usr/local/src/src/recv.c:281 (zmap+0x1cde3) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 start_recv /usr/local/src/src/zmap.c:123 (zmap+0x2135f) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Previous write of size 8 at 0x55ae0d0664a8 by thread T2 (mutexes: write M0): │ #0 shard_complete /usr/local/src/src/iterator.c:51 (zmap+0x1954a) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 send_run /usr/local/src/src/send.c:535 (zmap+0x1e62c) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 start_send /usr/local/src/src/zmap.c:110 (zmap+0x213f9) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ As if synchronized via sleep: │ #0 usleep ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:390 (libtsan.so.2+0x587d1) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 recv_packets /usr/local/src/src/recv-pcap.c:138 (zmap+0x42e59) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 recv_run /usr/local/src/src/recv.c:274 (zmap+0x1cd1b) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #3 start_recv /usr/local/src/src/zmap.c:123 (zmap+0x2135f) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Location is global 'zsend' of size 80 at 0x55ae0d0664a0 (zmap+0x634a8) │ │ Mutex M0 (0x721c00000038) created at: │ #0 pthread_mutex_init ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1315 (libtsan.so.2+0x594cd) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 iterator_init /usr/local/src/src/iterator.c:96 (zmap+0x197d2) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 send_init /usr/local/src/src/send.c:94 (zmap+0x1d1d5) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #3 start_zmap /usr/local/src/src/zmap.c:208 (zmap+0x1366a) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #4 main /usr/local/src/src/zmap.c:1201 (zmap+0x1366a) │ │ Thread T1 (tid=23, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:224 (zmap+0x13716) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13716) │ │ Thread T2 (tid=24, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:258 (zmap+0x13861) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13861) │ │ SUMMARY: ThreadSanitizer: data race /usr/local/src/src/recv.c:281 in recv_run │ ================== │ [Thread 0x7fbb9d6f96c0 (LWP 27) exited] │ [Thread 0x7fbb9defa6c0 (LWP 26) exited] │ [Thread 0x7fbb9e6fb6c0 (LWP 25) exited] │ [Thread 0x7fbb9eefc6c0 (LWP 24) exited] │ ================== │ WARNING: ThreadSanitizer: data race (pid=19) │ Write of size 4 at 0x55ae0d0664d8 by thread T6: │ #0 export_stats /usr/local/src/src/monitor.c:297 (zmap+0x1b059) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 export_then_update /usr/local/src/src/monitor.c:477 (zmap+0x1b059) │ #2 monitor_run /usr/local/src/src/monitor.c:502 (zmap+0x1bda8) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #3 start_mon /usr/local/src/src/zmap.c:132 (zmap+0x212c6) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Previous write of size 4 at 0x55ae0d0664d8 by thread T5 (mutexes: write M0): │ #0 shard_complete /usr/local/src/src/iterator.c:45 (zmap+0x194f8) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 send_run /usr/local/src/src/send.c:535 (zmap+0x1e62c) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 start_send /usr/local/src/src/zmap.c:110 (zmap+0x213f9) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ As if synchronized via sleep: │ #0 sleep ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:383 (libtsan.so.2+0x58691) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 monitor_run /usr/local/src/src/monitor.c:503 (zmap+0x1bdb2) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 start_mon /usr/local/src/src/zmap.c:132 (zmap+0x212c6) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Location is global 'zsend' of size 80 at 0x55ae0d0664a0 (zmap+0x634d8) │ │ Mutex M0 (0x721c00000038) created at: │ #0 pthread_mutex_init ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1315 (libtsan.so.2+0x594cd) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 iterator_init /usr/local/src/src/iterator.c:96 (zmap+0x197d2) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 send_init /usr/local/src/src/send.c:94 (zmap+0x1d1d5) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #3 start_zmap /usr/local/src/src/zmap.c:208 (zmap+0x1366a) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #4 main /usr/local/src/src/zmap.c:1201 (zmap+0x1366a) │ │ Thread T6 (tid=28, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:272 (zmap+0x13962) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13962) │ │ Thread T5 (tid=27, finished) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:258 (zmap+0x13861) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13861) │ │ SUMMARY: ThreadSanitizer: data race /usr/local/src/src/monitor.c:297 in export_stats │ ================== │ 0:01 15%; send: 1528 done (5.03 Kp/s avg); recv: 216 163 p/s (172 p/s avg); drops: 0 p/s (0 p/s avg); hitrate: 14.14% │ 0:02 27%; send: 1528 done (5.03 Kp/s avg); recv: 226 10 p/s (100 p/s avg); drops: 0 p/s (0 p/s avg); hitrate: 14.79% │ 0:03 39%; send: 1528 done (5.03 Kp/s avg); recv: 236 10 p/s (72 p/s avg); drops: 0 p/s (0 p/s avg); hitrate: 15.45% │ 0:04 51%; send: 1528 done (5.03 Kp/s avg); recv: 237 1 p/s (55 p/s avg); drops: 0 p/s (0 p/s avg); hitrate: 15.51% │ 0:05 63% (4s left); send: 1528 done (5.03 Kp/s avg); recv: 237 0 p/s (45 p/s avg); drops: 0 p/s (0 p/s avg); hitrate: 15.51% │ 0:06 75% (3s left); send: 1528 done (5.03 Kp/s avg); recv: 237 0 p/s (37 p/s avg); drops: 0 p/s (0 p/s avg); hitrate: 15.51% │ 0:07 87% (2s left); send: 1528 done (5.03 Kp/s avg); recv: 237 0 p/s (32 p/s avg); drops: 0 p/s (0 p/s avg); hitrate: 15.51% │ 0:08 99% (1s left); send: 1528 done (5.03 Kp/s avg); recv: 248 11 p/s (30 p/s avg); drops: 0 p/s (0 p/s avg); hitrate: 16.23% │ ================== │ WARNING: ThreadSanitizer: data race (pid=19) │ Write of size 8 at 0x55ae0d07b990 by thread T1: │ #0 recv_update_stats /usr/local/src/src/recv-pcap.c:159 (zmap+0x42f68) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 recv_run /usr/local/src/src/recv.c:284 (zmap+0x1cd61) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 start_recv /usr/local/src/src/zmap.c:123 (zmap+0x2135f) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Previous write of size 8 at 0x55ae0d07b990 by thread T6 (mutexes: write M0): │ #0 recv_update_stats /usr/local/src/src/recv-pcap.c:159 (zmap+0x42f68) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 update_pcap_stats /usr/local/src/src/monitor.c:183 (zmap+0x1a8d5) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 export_then_update /usr/local/src/src/monitor.c:476 (zmap+0x1a8d5) │ #3 monitor_run /usr/local/src/src/monitor.c:502 (zmap+0x1bda8) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #4 start_mon /usr/local/src/src/zmap.c:132 (zmap+0x212c6) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ As if synchronized via sleep: │ #0 usleep ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:390 (libtsan.so.2+0x587d1) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 recv_packets /usr/local/src/src/recv-pcap.c:138 (zmap+0x42e59) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 recv_run /usr/local/src/src/recv.c:274 (zmap+0x1cd1b) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #3 start_recv /usr/local/src/src/zmap.c:123 (zmap+0x2135f) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Location is global 'zrecv' of size 136 at 0x55ae0d07b920 (zmap+0x78990) │ │ Mutex M0 (0x55ae0d07b9c0) created at: │ #0 pthread_mutex_lock ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1341 (libtsan.so.2+0x59a13) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:229 (zmap+0x1373b) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x1373b) │ │ Thread T1 (tid=23, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:224 (zmap+0x13716) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13716) │ │ Thread T6 (tid=28, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:272 (zmap+0x13962) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13962) │ │ SUMMARY: ThreadSanitizer: data race /usr/local/src/src/recv-pcap.c:159 in recv_update_stats │ ================== │ ================== │ WARNING: ThreadSanitizer: data race (pid=19) │ Write of size 8 at 0x55ae0d07b998 by thread T1: │ #0 recv_update_stats /usr/local/src/src/recv-pcap.c:160 (zmap+0x42f84) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 recv_run /usr/local/src/src/recv.c:284 (zmap+0x1cd61) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 start_recv /usr/local/src/src/zmap.c:123 (zmap+0x2135f) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Previous write of size 8 at 0x55ae0d07b998 by thread T6 (mutexes: write M0): │ #0 recv_update_stats /usr/local/src/src/recv-pcap.c:160 (zmap+0x42f84) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 update_pcap_stats /usr/local/src/src/monitor.c:183 (zmap+0x1a8d5) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 export_then_update /usr/local/src/src/monitor.c:476 (zmap+0x1a8d5) │ #3 monitor_run /usr/local/src/src/monitor.c:502 (zmap+0x1bda8) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #4 start_mon /usr/local/src/src/zmap.c:132 (zmap+0x212c6) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ As if synchronized via sleep: │ #0 usleep ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:390 (libtsan.so.2+0x587d1) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 recv_packets /usr/local/src/src/recv-pcap.c:138 (zmap+0x42e59) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 recv_run /usr/local/src/src/recv.c:274 (zmap+0x1cd1b) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #3 start_recv /usr/local/src/src/zmap.c:123 (zmap+0x2135f) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Location is global 'zrecv' of size 136 at 0x55ae0d07b920 (zmap+0x78998) │ │ Mutex M0 (0x55ae0d07b9c0) created at: │ #0 pthread_mutex_lock ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1341 (libtsan.so.2+0x59a13) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:229 (zmap+0x1373b) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x1373b) │ │ Thread T1 (tid=23, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:224 (zmap+0x13716) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13716) │ │ Thread T6 (tid=28, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:272 (zmap+0x13962) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13962) │ │ SUMMARY: ThreadSanitizer: data race /usr/local/src/src/recv-pcap.c:160 in recv_update_stats │ ================== │ ================== │ WARNING: ThreadSanitizer: data race (pid=19) │ Write of size 8 at 0x55ae0d07b9a0 by thread T1: │ #0 recv_update_stats /usr/local/src/src/recv-pcap.c:161 (zmap+0x42fa3) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 recv_run /usr/local/src/src/recv.c:284 (zmap+0x1cd61) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 start_recv /usr/local/src/src/zmap.c:123 (zmap+0x2135f) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Previous read of size 8 at 0x55ae0d07b9a0 by thread T6: │ #0 export_stats /usr/local/src/src/monitor.c:285 (zmap+0x1af17) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 export_then_update /usr/local/src/src/monitor.c:477 (zmap+0x1af17) │ #2 monitor_run /usr/local/src/src/monitor.c:502 (zmap+0x1bda8) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #3 start_mon /usr/local/src/src/zmap.c:132 (zmap+0x212c6) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ As if synchronized via sleep: │ #0 usleep ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:390 (libtsan.so.2+0x587d1) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 recv_packets /usr/local/src/src/recv-pcap.c:138 (zmap+0x42e59) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 recv_run /usr/local/src/src/recv.c:274 (zmap+0x1cd1b) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #3 start_recv /usr/local/src/src/zmap.c:123 (zmap+0x2135f) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Location is global 'zrecv' of size 136 at 0x55ae0d07b920 (zmap+0x789a0) │ │ Thread T1 (tid=23, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:224 (zmap+0x13716) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13716) │ │ Thread T6 (tid=28, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:272 (zmap+0x13962) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13962) │ │ SUMMARY: ThreadSanitizer: data race /usr/local/src/src/recv-pcap.c:161 in recv_update_stats │ ================== │ ================== │ WARNING: ThreadSanitizer: data race (pid=19) │ Write of size 4 at 0x55ae0d07b978 by thread T1: │ #0 recv_run /usr/local/src/src/recv.c:290 (zmap+0x1cd84) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 start_recv /usr/local/src/src/zmap.c:123 (zmap+0x2135f) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Previous read of size 4 at 0x55ae0d07b978 by thread T2: │ #0 send_run /usr/local/src/src/send.c:389 (zmap+0x1defd) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 start_send /usr/local/src/src/zmap.c:110 (zmap+0x213f9) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ As if synchronized via sleep: │ #0 usleep ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:390 (libtsan.so.2+0x587d1) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 recv_packets /usr/local/src/src/recv-pcap.c:138 (zmap+0x42e59) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 recv_run /usr/local/src/src/recv.c:274 (zmap+0x1cd1b) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #3 start_recv /usr/local/src/src/zmap.c:123 (zmap+0x2135f) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Location is global 'zrecv' of size 136 at 0x55ae0d07b920 (zmap+0x78978) │ │ Thread T1 (tid=23, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:224 (zmap+0x13716) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13716) │ │ Thread T2 (tid=24, finished) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:258 (zmap+0x13861) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13861) │ │ SUMMARY: ThreadSanitizer: data race /usr/local/src/src/recv.c:290 in recv_run │ ================== │ [Thread 0x7fbb9f8fd6c0 (LWP 23) exited] │ 0:09 100% (0s left); send: 1528 done (5.03 Kp/s avg); recv: 248 0 p/s (26 p/s avg); drops: 0 p/s (0 p/s avg); hitrate: 16.23% │ [Thread 0x7fbb9ce166c0 (LWP 28) exited] │ Nov 07 15:00:04.866 [INFO] zmap: completed │ [Thread 0x7fbba00fe6c0 (LWP 22) exited] │ [Inferior 1 (process 19) exited with code 0102] │ (gdb) run -B 10M -i rj4501 -M icmp6_echoscan --ipv6-target-file /data/ips_v6.txt -o /data/alive_icmp_v6.txt --ipv6-source-ip 2001:638:500:9b00::200 --blocklist-file=/dev/null │ Starting program: /opt/zmap/sbin/zmap -B 10M -i rj4501 -M icmp6_echoscan --ipv6-target-file /data/ips_v6.txt -o /data/alive_icmp_v6.txt --ipv6-source-ip 2001:638:500:9b00::200 --blocklist-file=/dev/null │ warning: Error disabling address space randomization: Operation not permitted │ [Thread debugging using libthread_db enabled] │ Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". │ warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libcap.so.2 │ Nov 07 15:00:11.453 [INFO] zmap: By default, ZMap will output the unique IP addresses of hosts that respond successfully (e.g., SYN-ACK packet). This is equivalent to running ZMap with the following flags: --output-module=csv --output-fields=saddr --output-filter='success=1 && repeat=0' --no-header-row. If you want all responses, explicitly set an output module or set --output-filter="". │ Nov 07 15:00:11.454 [INFO] dedup: Response deduplication method is full │ [New Thread 0x7f39d65fe6c0 (LWP 30)] │ [New Thread 0x7f39d5dfd6c0 (LWP 31)] │ Nov 07 15:00:11.514 [INFO] recv: duplicate responses will be excluded from output │ Nov 07 15:00:11.514 [INFO] recv: unsuccessful responses will be excluded from output │ [New Thread 0x7f39d53fc6c0 (LWP 32)] │ [New Thread 0x7f39d4bfb6c0 (LWP 33)] │ [New Thread 0x7f39d43fa6c0 (LWP 34)] │ [New Thread 0x7f39d3bf96c0 (LWP 35)] │ [New Thread 0x7f39d33166c0 (LWP 36)] │ ================== │ WARNING: ThreadSanitizer: data race (pid=29) │ Read of size 8 at 0x55834faf5c30 by thread T3: │ #0 sendmmsg ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:3242 (libtsan.so.2+0x69f3c) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 send_batch /usr/local/src/src/send-linux.c:109 (zmap+0x42778) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 send_run /usr/local/src/src/send.c:471 (zmap+0x1e3be) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #3 start_send /usr/local/src/src/zmap.c:110 (zmap+0x213f9) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Previous write of size 4 at 0x55834faf5c34 by thread T4 (mutexes: write M0): │ #0 send_run_init /usr/local/src/src/send-linux.c:63 (zmap+0x422d2) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 send_run /usr/local/src/src/send.c:223 (zmap+0x1d8f7) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 start_send /usr/local/src/src/zmap.c:110 (zmap+0x213f9) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Location is global 'sockaddr' of size 20 at 0x55834faf5c30 (zmap+0x78c30) │ │ Mutex M0 (0x55834faf58e0) created at: │ #0 pthread_mutex_lock ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1341 (libtsan.so.2+0x59a13) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 send_run /usr/local/src/src/send.c:218 (zmap+0x1d8cf) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 start_send /usr/local/src/src/zmap.c:110 (zmap+0x213f9) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Thread T3 (tid=33, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:258 (zmap+0x13861) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13861) │ │ Thread T4 (tid=34, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:258 (zmap+0x13861) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13861) │ │ SUMMARY: ThreadSanitizer: data race /usr/local/src/src/send-linux.c:109 in send_batch │ ================== │ ================== │ WARNING: ThreadSanitizer: data race (pid=29) │ Read of size 8 at 0x725000000400 by thread T6: │ #0 iterator_get_sent /usr/local/src/src/iterator.c:111 (zmap+0x199eb) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 export_stats /usr/local/src/src/monitor.c:190 (zmap+0x1a8e5) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 export_then_update /usr/local/src/src/monitor.c:477 (zmap+0x1a8e5) │ #3 monitor_run /usr/local/src/src/monitor.c:502 (zmap+0x1bda8) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #4 start_mon /usr/local/src/src/zmap.c:132 (zmap+0x212c6) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Previous write of size 8 at 0x725000000400 by thread T2: │ #0 send_run /usr/local/src/src/send.c:485 (zmap+0x1e299) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 start_send /usr/local/src/src/zmap.c:110 (zmap+0x213f9) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Location is heap block of size 480 at 0x725000000400 allocated by main thread: │ #0 calloc ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:685 (libtsan.so.2+0x54d0d) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 xcalloc /usr/local/src/lib/xalloc.c:27 (zmap+0x47934) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 iterator_init /usr/local/src/src/iterator.c:94 (zmap+0x19784) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #3 send_init /usr/local/src/src/send.c:94 (zmap+0x1d1d5) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #4 start_zmap /usr/local/src/src/zmap.c:208 (zmap+0x1366a) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #5 main /usr/local/src/src/zmap.c:1201 (zmap+0x1366a) │ │ Thread T6 (tid=36, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:272 (zmap+0x13962) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13962) │ │ Thread T2 (tid=32, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:258 (zmap+0x13861) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13861) │ │ SUMMARY: ThreadSanitizer: data race /usr/local/src/src/iterator.c:111 in iterator_get_sent │ ================== │ ================== │ WARNING: ThreadSanitizer: data race (pid=29) │ Read of size 4 at 0x725000000420 by thread T6: │ #0 iterator_get_fail /usr/local/src/src/iterator.c:129 (zmap+0x19b4b) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 export_stats /usr/local/src/src/monitor.c:192 (zmap+0x1a8fd) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 export_then_update /usr/local/src/src/monitor.c:477 (zmap+0x1a8fd) │ #3 monitor_run /usr/local/src/src/monitor.c:502 (zmap+0x1bda8) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #4 start_mon /usr/local/src/src/zmap.c:132 (zmap+0x212c6) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Previous write of size 4 at 0x725000000420 by thread T2: │ #0 send_run /usr/local/src/src/send.c:476 (zmap+0x1e40a) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 start_send /usr/local/src/src/zmap.c:110 (zmap+0x213f9) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Location is heap block of size 480 at 0x725000000400 allocated by main thread: │ #0 calloc ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:685 (libtsan.so.2+0x54d0d) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 xcalloc /usr/local/src/lib/xalloc.c:27 (zmap+0x47934) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 iterator_init /usr/local/src/src/iterator.c:94 (zmap+0x19784) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #3 send_init /usr/local/src/src/send.c:94 (zmap+0x1d1d5) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #4 start_zmap /usr/local/src/src/zmap.c:208 (zmap+0x1366a) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #5 main /usr/local/src/src/zmap.c:1201 (zmap+0x1366a) │ │ Thread T6 (tid=36, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:272 (zmap+0x13962) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13962) │ │ Thread T2 (tid=32, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:258 (zmap+0x13861) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13861) │ │ SUMMARY: ThreadSanitizer: data race /usr/local/src/src/iterator.c:129 in iterator_get_fail │ ================== │ ================== │ WARNING: ThreadSanitizer: data race (pid=29) │ Read of size 8 at 0x55834faf5928 by thread T6: │ #0 export_stats /usr/local/src/src/monitor.c:194 (zmap+0x1a923) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 export_then_update /usr/local/src/src/monitor.c:477 (zmap+0x1a923) │ #2 monitor_run /usr/local/src/src/monitor.c:502 (zmap+0x1bda8) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #3 start_mon /usr/local/src/src/zmap.c:132 (zmap+0x212c6) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Previous write of size 8 at 0x55834faf5928 by thread T1: │ #0 handle_packet /usr/local/src/src/recv.c:173 (zmap+0x1c875) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 packet_cb /usr/local/src/src/recv-pcap.c:55 (zmap+0x42874) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 packet_cb /usr/local/src/src/recv-pcap.c:37 (zmap+0x42874) │ #3 <null> <null> (libpcap.so.0.8+0x9edf) (BuildId: d0c6c787d35246d7107d600c893454c1fcbaf262) │ #4 recv_run /usr/local/src/src/recv.c:274 (zmap+0x1cd1b) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #5 start_recv /usr/local/src/src/zmap.c:123 (zmap+0x2135f) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Location is global 'zrecv' of size 136 at 0x55834faf5920 (zmap+0x78928) │ │ Thread T6 (tid=36, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:272 (zmap+0x13962) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13962) │ │ Thread T1 (tid=31, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:224 (zmap+0x13716) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13716) │ │ SUMMARY: ThreadSanitizer: data race /usr/local/src/src/monitor.c:194 in export_stats │ ================== │ ================== │ WARNING: ThreadSanitizer: data race (pid=29) │ Read of size 8 at 0x55834fae0528 by thread T6: │ #0 compute_remaining_time /usr/local/src/src/monitor.c:150 (zmap+0x1a44f) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 compute_remaining_time /usr/local/src/src/monitor.c:124 (zmap+0x1a44f) │ #2 export_stats /usr/local/src/src/monitor.c:201 (zmap+0x1a993) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #3 export_then_update /usr/local/src/src/monitor.c:477 (zmap+0x1a993) │ #4 monitor_run /usr/local/src/src/monitor.c:502 (zmap+0x1bda8) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #5 start_mon /usr/local/src/src/zmap.c:132 (zmap+0x212c6) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Previous write of size 8 at 0x55834fae0528 by thread T1: │ #0 recv_run /usr/local/src/src/recv.c:267 (zmap+0x1ccc6) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 start_recv /usr/local/src/src/zmap.c:123 (zmap+0x2135f) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Location is global 'zconf' of size 8168 at 0x55834fae0500 (zmap+0x63528) │ │ Thread T6 (tid=36, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:272 (zmap+0x13962) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13962) │ │ Thread T1 (tid=31, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:224 (zmap+0x13716) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13716) │ │ SUMMARY: ThreadSanitizer: data race /usr/local/src/src/monitor.c:150 in compute_remaining_time │ ================== │ ================== │ WARNING: ThreadSanitizer: data race (pid=29) │ Read of size 8 at 0x55834faf5958 by thread T6: │ #0 compute_remaining_time /usr/local/src/src/monitor.c:152 (zmap+0x1a468) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 compute_remaining_time /usr/local/src/src/monitor.c:124 (zmap+0x1a468) │ #2 export_stats /usr/local/src/src/monitor.c:201 (zmap+0x1a993) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #3 export_then_update /usr/local/src/src/monitor.c:477 (zmap+0x1a993) │ #4 monitor_run /usr/local/src/src/monitor.c:502 (zmap+0x1bda8) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #5 start_mon /usr/local/src/src/zmap.c:132 (zmap+0x212c6) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Previous write of size 8 at 0x55834faf5958 by thread T1: │ #0 handle_packet /usr/local/src/src/recv.c:212 (zmap+0x1c561) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 packet_cb /usr/local/src/src/recv-pcap.c:55 (zmap+0x42874) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 packet_cb /usr/local/src/src/recv-pcap.c:37 (zmap+0x42874) │ #3 <null> <null> (libpcap.so.0.8+0x9edf) (BuildId: d0c6c787d35246d7107d600c893454c1fcbaf262) │ #4 recv_run /usr/local/src/src/recv.c:274 (zmap+0x1cd1b) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #5 start_recv /usr/local/src/src/zmap.c:123 (zmap+0x2135f) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Location is global 'zrecv' of size 136 at 0x55834faf5920 (zmap+0x78958) │ │ Thread T6 (tid=36, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:272 (zmap+0x13962) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13962) │ │ Thread T1 (tid=31, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:224 (zmap+0x13716) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13716) │ │ SUMMARY: ThreadSanitizer: data race /usr/local/src/src/monitor.c:152 in compute_remaining_time │ ================== │ 0:00 0%; send: 383 1 p/s (2.52 Kp/s avg); recv: 64 1 p/s (420 p/s avg); drops: 0 p/s (0 p/s avg); hitrate: 16.71% │ ================== │ WARNING: ThreadSanitizer: data race (pid=29) │ Write of size 4 at 0x721c00000060 by thread T5 (mutexes: write M0): │ #0 shard_complete /usr/local/src/src/iterator.c:41 (zmap+0x19407) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 send_run /usr/local/src/src/send.c:535 (zmap+0x1e62c) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 start_send /usr/local/src/src/zmap.c:110 (zmap+0x213f9) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Previous read of size 4 at 0x721c00000060 by thread T6: │ #0 iterator_get_curr_send_threads /usr/local/src/src/iterator.c:143 (zmap+0x19c63) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #1 export_stats /usr/local/src/src/monitor.c:303 (zmap+0x1b0fc) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 export_then_update /usr/local/src/src/monitor.c:477 (zmap+0x1b0fc) │ #3 monitor_run /usr/local/src/src/monitor.c:502 (zmap+0x1bda8) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #4 start_mon /usr/local/src/src/zmap.c:132 (zmap+0x212c6) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ │ Location is heap block of size 104 at 0x721c00000000 allocated by main thread: │ #0 calloc ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:685 (libtsan.so.2+0x54d0d) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 xmalloc /usr/local/src/lib/xalloc.c:38 (zmap+0x479f2) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 iterator_init /usr/local/src/src/iterator.c:83 (zmap+0x196c6) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #3 send_init /usr/local/src/src/send.c:94 (zmap+0x1d1d5) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #4 start_zmap /usr/local/src/src/zmap.c:208 (zmap+0x1366a) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #5 main /usr/local/src/src/zmap.c:1201 (zmap+0x1366a) │ │ Mutex M0 (0x721c00000038) created at: │ #0 pthread_mutex_init ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1315 (libtsan.so.2+0x594cd) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 iterator_init /usr/local/src/src/iterator.c:96 (zmap+0x197d2) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 send_init /usr/local/src/src/send.c:94 (zmap+0x1d1d5) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #3 start_zmap /usr/local/src/src/zmap.c:208 (zmap+0x1366a) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #4 main /usr/local/src/src/zmap.c:1201 (zmap+0x1366a) │ │ Thread T5 (tid=35, running) created by main thread at: │ #0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1022 (libtsan.so.2+0x5ac1a) (BuildId: 38097064631f7912bd33117a9c83d08b42e15571) │ #1 start_zmap /usr/local/src/src/zmap.c:258 (zmap+0x13861) (BuildId: 7cabb68c80686eede01ec83169690fcae77c3af7) │ #2 main /usr/local/src/src/zmap.c:1201 (zmap+0x13861) │ │ Threa…
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Needs testing for all modules
output now seems to include failed probes as well