Linux: //valdi:test_runtime crashes in gtest's XML writer at exit (all tests pass)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- cpp, github-actions
- Ambito
- operating-systems, testing
Direzione di ricerca
Start by reading the Linux test step and its comment in tools/ci/run_tests.sh, then compare it with the direct binary invocation in tools/ci/sanitizer_tests.sh. Reproduce with bzl test //valdi:test_runtime --test_output=errors on Linux x86_64 and inspect the static teardown path involving gtest's XML writer and runtime globals. Done when the test passes through bzl test without crashing at exit.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
On Linux, bzl test //valdi:test_runtime fails even though every test in it passes. The test binary segfaults during static destruction, in gtest's XML result writer, when it's linked against valdi_standalone_runtime. Only the process teardown crashes.
Where it shows up
tools/ci/run_tests.shruns//valdi:test_runtimeon macOS only, for this reason. See the comment above that step.tools/ci/sanitizer_tests.shbuilds//valdi:test_runtimeand runs the binary directly instead of usingbzl test, to avoid the same crash.
Reproduce
On Linux x86_64:
bzl test //valdi:test_runtime --test_output=errors
Expected: the test passes. Actual: all test cases pass, then the binary crashes (SIGSEGV) at exit while gtest writes its XML report. Running the built binary directly, as sanitizer_tests.sh does, avoids the crash.
Notes
- This looks like a static-destruction order problem between gtest's XML output and globals in the runtime. It isn't a failing test.
- Until it's fixed, Linux coverage for these tests depends on running the binary directly (as
sanitizer_tests.shdoes). RFC 0001 (#196) and RFC 0002 (#197) should not rely onbzl test //valdi:test_runtimeon Linux.
Part of #6 (Linux support).
- Lingua principale
- C++
- Stelle
- 16.4k
- Fork
- 538
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Snapchat/Valdi
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 Mezza giornata Idoneità per principianti 55/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 50/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 55/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Snapchat/Valdi
Issue simili
-
new issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
llvm/llvm-project#245835 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
EchoTools/nevr-runtime#2823 ·
I maintainer di solito rispondono entro 1 giorno
-
Fix a typo in H5Centry.cAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
triton-lang/triton#12945 ·
I maintainer di solito rispondono entro 1 giorno
-
Releases do not move the `latest` Docker tag: the branch `30.12` is taken for the latest release branchForse già presa @alexey-milovidov l’ha presa oggi. Apertacomp-ci-infrastructure unexpected behaviour
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
ClickHouse/ClickHouse#134282 ·
I maintainer di solito rispondono entro 1 giorno