A records.snap stat with a configuration variable's name aborts startup
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
Direzione di ricerca
Start in src/records/RecCore.cc, especially register_record() around the assertion linked in the issue. Trace how RecReadStatsFile() restores snapshot records before registration, and distinguish records restored from the snapshot from records registered with the wrong kind. Reproduce with the described records.snap entry and verify that startup succeeds for the restored record while the assertion still catches an explicitly misregistered record.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
RecReadStatsFile() runs inside RecCoreInit(), before any record is registered, so every stat in records.snap is restored as a new record under its stored name and kind. When the name belongs to a configuration variable, the later registration of that variable finds the restored stat and stops at the release assertion in register_record() (RecCore.cc):
Fatal: src/records/RecCore.cc:75: failed assertion `REC_TYPE_IS_CONFIG(r->rec_type)`
To reproduce, write a records.snap whose one element is a well-formed RECT_PROCESS, RECD_INT record named proxy.config.diags.debug.enabled, with the current version bytes, into the runtime directory, then run traffic_layout info (or start traffic_server). Both abort with SIGABRT. This happens on current master and with #14147 applied: the record is a valid stat, so the reader has no reason to reject it.
Nothing ATS writes puts a configuration name in the snapshot, so this takes a hand-made or damaged file, or a stat that a plugin or an older release registered under a name that is now a configuration variable. It is release-asserted, so a Release build stops too.
The reader cannot reject this without knowing every configuration name, plugin ones included. The place to fix it is register_record(): a record that was only restored from the snapshot, and never registered, should take the kind it is now registered with instead of asserting. The assertion should still hold for a record that some code really did register as the other kind. That changes how every record is registered, not only restored ones, so it is kept out of #14147.
Found during review of #14147.
- Lingua principale
- C++
- Stelle
- 2k
- Fork
- 903
- Merge medio
- 4g 4h
- PR unite (30g)
- 135
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun 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 apache/trafficserver
-
UnixNetVConnection::do_io_write with a null reader leaves the previous reader in the write VIOForse già presa @NginxL l’ha presa oggi. ApertaBug Good First Issue IOBuffer Network
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
apache/trafficserver#14220 ·
I maintainer di solito rispondono entro 2 giorni
-
MallocAllocator does not check for allocation failureForse già presa @umrndem l’ha presa oggi. ApertaBug Core Good First Issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
apache/trafficserver#14218 · 2 commenti ·
I maintainer di solito rispondono entro 2 giorni
-
Bug Event System Threads
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
apache/trafficserver#14217 ·
I maintainer di solito rispondono entro 2 giorni
-
TSContScheduleEveryOnPool and TSContScheduleEveryOnThread accept a zero or negative periodForse già presa @rajeetvk l’ha presa 1 giorno fa. ApertaBug Event System Good First Issue TS API
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
apache/trafficserver#14214 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
HostDBContinuation::init memsets a polymorphic ActionForse già presa @ANMOLSCRIPT l’ha presa oggi. ApertaBug Good First Issue HostDB
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
apache/trafficserver#14204 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di apache/trafficserver
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
I maintainer di solito rispondono entro 2 giorni
-
bug data-types
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
ClickHouse/clickhouse-cpp#645 ·
I maintainer di solito rispondono entro 1 giorno
-
bug compatibility difficulty:easy prio:normal
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
NatronGitHub/openfx-misc#524 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation enhancement help wanted P0
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Awesome-Embedded-Learning-Studio/Tutorial_AwesomeModernCPP#359 ·
I maintainer di solito rispondono entro 1 giorno
-
Type: Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
openscad/openscad#7360 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno