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

Segmentation fault when running the example #193

Open
BasicEC opened this issue Jan 22, 2022 · 1 comment
Open

Segmentation fault when running the example #193

BasicEC opened this issue Jan 22, 2022 · 1 comment
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@BasicEC
Copy link
Collaborator

BasicEC commented Jan 22, 2022

Getting segmentation fault when running example from README.md:

$ stack exec nitta -- examples/teacup.lua -v --lsim -t=fx24.32
Segmentation fault (core dumped)
@BasicEC BasicEC added the bug Something isn't working label Jan 22, 2022
@ryukzak ryukzak added the wontfix This will not be worked on label Jan 23, 2022
@ryukzak
Copy link
Owner

ryukzak commented Jan 23, 2022

Full log:

nitta git:(72-integrity) stack cleannitta git:(master) stack build
nitta-0.0.0.1: unregistering (local file changes: app/APIGen.hs app/Main.hs nitta.cabal package.yaml src/NITTA/Intermediate/DataFlow.hs src/NITTA/I...)
...
osx/7eecdb7610989a200ae5064c7fd7c34ddd13df89ebb5ff806e4dd57cb67ec14d/8.10.7/bin
Registering library for nitta-0.0.0.1..nitta git:(master) stack exec nitta -- examples/teacup.lua -v --lsim -t=fx24.32
[1]    79512 segmentation fault  stack exec nitta -- examples/teacup.lua -v --lsim -t=fx24.32

It looks like an optimization error because if you add --fast, it should pass (checked). I think we can ignore GHC optimization right now and return to it on release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants