Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Queue Copy() behaving undefined.

Aperta
#1,217 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
1-2 giorni
Idoneità per principianti
52/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Ambito
testing-qa

Direzione di ricerca

The report shows the failure in cplx_strm_packetiser_32b_tb.vhd around the queue copy and pop calls. Start by tracing how copy() handles this queue type and how its elements are represented, then reproduce the reported mismatch between the copied queue and CHECK_PACKET_QUEUE. Done when both queues return the same first state and transition values after copying.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Is copy() known to have pointer alignment or tracking bugs? I expected to get identical values from both queues, but the "Bug" copy pops an incorrect state/trans (1/1 instead of 0/1).

The original CHECK_PACKET_QUEUE retains its correct length of 272 right after the bug queue is popped, so they aren't sharing a reference. However, the data inside the bug_queue duplicate seems to be shifted or misaligned immediately upon creation.

        bug_queue := copy(CHECK_PACKET_QUEUE);
        info("Bug Queue orig length is: "& to_string(length(bug_queue)));
        v_input_slv := pop(bug_queue);
        v_input     := from_slv(v_input_slv);
        info("Bug Queue pop length is: "& to_string(length(bug_queue)));
        info("Bug State/Trans of "& to_string(v_input.nd.state) & "/" & to_string(v_input.nd.trans));

        info("Good CHECK_PACKET_QUEUE orig length is: "& to_string(length(CHECK_PACKET_QUEUE)));
        v_input_slv := pop(CHECK_PACKET_QUEUE);
        v_input     := from_slv(v_input_slv);
        info("Good Queue pop length is: "& to_string(length(CHECK_PACKET_QUEUE)));
        info("Good State/Trans of "& to_string(v_input.nd.state) & "/" & to_string(v_input.nd.trans));
#        470000 ps - default                      -    INFO - Bug Queue orig length is: 272 (cplx_strm_packetiser_32b_tb.vhd:175)
#        470000 ps - default                      -    INFO - Bug Queue pop length is: 204 (cplx_strm_packetiser_32b_tb.vhd:178)
#        470000 ps - default                      -    INFO - Bug State/Trans of 1/1 (cplx_strm_packetiser_32b_tb.vhd:179)

#        470000 ps - default                      -    INFO - Good CHECK_PACKET_QUEUE orig length is: 272 (cplx_strm_packetiser_32b_tb.vhd:181)
#        470000 ps - default                      -    INFO - Good Queue pop length is: 204 (cplx_strm_packetiser_32b_tb.vhd:184)
#        470000 ps - default                      -    INFO - Good State/Trans of 0/1 (cplx_strm_packetiser_32b_tb.vhd:185)
Lingua principale
VHDL
Stelle
850
Fork
305
Merge medio
2g 10h
PR unite (30g)
7

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di VUnit/vunit

Tutte le issue di VUnit/vunit

Issue simili

Altre issue su Testing & QA

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.