Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A difficult-to-reproduce segmentation fault. #4672

Open
Stevengre opened this issue Oct 21, 2024 · 0 comments
Open

A difficult-to-reproduce segmentation fault. #4672

Stevengre opened this issue Oct 21, 2024 · 0 comments
Labels

Comments

@Stevengre
Copy link
Contributor

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.

@Stevengre Stevengre added the bug label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant