bind9/util
Michał Kępień b4f7034074
Fix entity renumbering in util/parse_tsan.py
util/parse_tsan.py builds tables of mutexes, threads, and pointers it
finds in the TSAN report provided to it as a command-line argument and
then replaces all mentions of each of these entities so that they are
numbered sequentially in the processed report.  For example, this line:

    Cycle in lock order graph: M0 (...) => M5 (...) => M9 (...) => M0

is expected to become:

    Cycle in lock order graph: M1 (...) => M2 (...) => M3 (...) => M1

Problems arise when the gaps between mutex/thread identifiers present on
a single line are smaller than the total number of mutexes/threads found
by the script so far.  For example, the following line:

    Cycle in lock order graph: M0 (...) => M1 (...) => M2 (...) => M0

first gets turned into:

    Cycle in lock order graph: M1 (...) => M1 (...) => M2 (...) => M1

and then into:

    Cycle in lock order graph: M2 (...) => M2 (...) => M2 (...) => M2

In other words, lines like this become garbled due to information loss.

The problem stems from the fact that the numbering scheme the script
uses for identifying mutexes and threads is exactly the same as the one
used by TSAN itself.  Update util/parse_tsan.py so that it uses
zero-padded numbers instead, making the "overlapping" demonstrated above
impossible.

(cherry picked from commit 7f0790c82f)
2023-06-15 16:20:11 +02:00
..
bindkeys.pl Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
branchsync.sh Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
check-ans-prereq.sh Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
check-categories.sh Add shell interpreter line where missing 2022-11-14 21:09:42 +01:00
check-changes Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
check-cocci Run spatch jobs in parallel 2022-02-14 20:01:43 +01:00
check-includes.pl Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
check-instincludes.sh Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
check-line-length.sh Add shell interpreter line where missing 2022-11-14 21:09:42 +01:00
check-make-install.in Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
check-pullups.pl Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
check-sources.pl Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
check-win32util-configure Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
checklibs.sh Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
commit-arm.sh Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
gen-rsa-sha-vectors.c Check that we can verify a signature at initialisation time 2022-07-25 11:37:49 -04:00
git-replay-merge.sh Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
kit.sh Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
mandoc2docbook.pl Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
mdnbuildtest.sh Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
memleak.pl Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
mksymtbl.pl Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
models.c Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
nanny.pl Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
new-func Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
nt-kit Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
pairwise-testing.sh Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
parse_tsan.py Fix entity renumbering in util/parse_tsan.py 2023-06-15 16:20:11 +02:00
run-clang-tidy Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
spacewhack.pl Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
suppressions.txt Refactor netmgr and add more unit tests 2020-12-09 10:46:16 +01:00
tabify-changes Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
update-drafts.pl Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
update_branches Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
xc Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
xmllint-html.sh Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00