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

A difficult-to-reproduce segmentation fault.

Aperta
#4,672 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
15/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Ambito
compilers

Direzione di ricerca

Start by reducing the reported configuration to a minimal reproducible example, using the shown program and comparing kompile with krun --depth 0. Investigate the suspected automatic cell-filling path; done means reproducing the segmentation fault reliably and confirming that the reduced case no longer crashes after the fix.

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

Descrizione

bug

image

The image shows an error we encountered during the development of our project. This error may also occur when running krun --depth 0. We suspect it is caused by an anomaly in the automatic filling of cells.

Initially, we provided a program similar to the one below:

module TEST-SYNTAX
imports INT-SYNTAX
syntax Top ::= List{Inst, ";"}
syntax Inst ::= "spawn" Int
endmodule

module TEST
imports TEST-SYNTAX
imports INT

configuration
<pgm> $PGM:Top </pgm>
<ks>
 <k-thread multiplicity="*" type="Map">
  <kid> 0 </kid>
  <k> 0 </k>
 </k-thread>
</ks>

rule 
<pgm> spawn X ; T:Top => T </pgm>
(.Bag =>
<k-thread>
  <kid> !_:Int </kid>
  <k> X </k>
</k-thread>
)

rule 
<k> X => X +Int Y </k>
<k-thread>
  <k> Y => Y -Int Y </k>
  ...
</k-thread>
requires Y >Int 0

endmodule

After placing <k> into the </k-thread>, the bug disappears. However, this program itself can be correctly compiled using kompile and executed with krun. Therefore, we have not yet identified the minimal reproducible example. Additionally, due to the complexity of our project and the lack of backups for the error, we are currently unsure how to reproduce the issue.

Lingua principale
Python
Stelle
591
Fork
163
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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 runtimeverification/k

Tutte le issue di runtimeverification/k

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.