Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

A difficult-to-reproduce segmentation fault.

Abierto
#4,672 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
15/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Área
compilers

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Python
Estrellas
591
Forks
163
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de runtimeverification/k

Todos los issues de runtimeverification/k

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.