ryukzak / nitta

BSD 3-Clause "New" or "Revised" License
21 stars 6 forks source link

Segmentation fault when running the example #193

Open BasicEC opened 2 years ago

BasicEC commented 2 years ago

Getting segmentation fault when running example from README.md:

$ stack exec nitta -- examples/teacup.lua -v --lsim -t=fx24.32
Segmentation fault (core dumped)
ryukzak commented 2 years ago

Full log:

➜  nitta git:(72-integrity) stack clean
➜  nitta 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.