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

Bug when starting with empty varray #2

Open
nikolaushuber opened this issue Sep 12, 2024 · 0 comments
Open

Bug when starting with empty varray #2

nikolaushuber opened this issue Sep 12, 2024 · 0 comments

Comments

@nikolaushuber
Copy link

The following example program seems to illustrate a bug when starting with an empty varray:

open Varray
let t = empty ( )
push_back t '.'
pop_front t

Interestingly, the behaviour seems to depend on the particular platform this is running on. On my MacBook with M2 ARM the above program results in a segmentation fault. On my Intel MacBook it returns a character, however, it is not the one previously pushed and it also changes each time the program is run.

This was found with an upcoming feature in ortac/qcheck-stm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant