Closed arsdragonfly closed 5 years ago
Ignore the previous backtrace; here's the correct one
./dist/build/c2hs/c2hs tests/system/simple/Simple.chs +RTS -xc master ✗
*** Exception (reporting due to +RTS -xc): (THUNK_STATIC), stack trace:
Control.StateTrans.liftIO.\,
called from Control.StateTrans.liftIO,
called from Control.StateBase.liftIO,
called from Control.StateBase.+>=.\,
called from Control.StateTrans.+>=.\.\.(...),
called from Control.StateTrans.+>=.\.\,
called from Control.StateTrans.+>=.\,
called from Control.StateTrans.+>=,
called from Control.StateBase.+>=,
called from Main.compile,
called from Control.StateTrans.fatalsHandledBy.\,
called from Control.StateTrans.fatalsHandledBy,
called from Control.State.fatalsHandledBy,
called from Control.StateBase.unpackCST,
called from Control.State.run.m,
called from Control.StateTrans.runSTB,
called from Control.State.run,
called from C2HS.State.runC2HS,
called from Main.main
*** Exception (reporting due to +RTS -xc): (THUNK), stack trace:
Control.StateTrans.liftIO.\,
called from Control.StateTrans.liftIO,
called from Control.StateBase.liftIO,
called from System.CIO.createDirectoryIfMissing,
called from Main.process,
called from Main.execute,
called from Main.compile.doExecute,
called from Control.StateBase.+>=.\,
called from Control.StateTrans.+>=.\.\.(...),
called from Control.StateTrans.+>=.\.\,
called from Control.StateTrans.+>=.\,
called from Control.StateTrans.+>=,
called from Control.StateBase.+>=,
called from Main.compile,
called from Control.StateTrans.fatalsHandledBy.\,
called from Control.StateTrans.fatalsHandledBy,
called from Control.State.fatalsHandledBy,
called from Control.StateBase.unpackCST,
called from Control.State.run.m,
called from Control.StateTrans.runSTB,
called from Control.State.run,
called from C2HS.State.runC2HS,
called from Main.main
*** Exception (reporting due to +RTS -xc): (THUNK), stack trace:
Control.StateTrans.liftIO.\,
called from Control.StateTrans.liftIO,
called from Control.StateBase.liftIO,
called from System.CIO.createDirectoryIfMissing,
called from Main.process,
called from Main.execute,
called from Main.compile.doExecute,
called from Control.StateBase.+>=.\,
called from Control.StateTrans.+>=.\.\.(...),
called from Control.StateTrans.+>=.\.\,
called from Control.StateTrans.+>=.\,
called from Control.StateTrans.+>=,
called from Control.StateBase.+>=,
called from Main.compile,
called from Control.StateTrans.fatalsHandledBy.\,
called from Control.StateTrans.fatalsHandledBy,
called from Control.State.fatalsHandledBy,
called from Control.StateBase.unpackCST,
called from Control.State.run.m,
called from Control.StateTrans.runSTB,
called from Control.State.run,
called from C2HS.State.runC2HS,
called from Main.main
*** Exception (reporting due to +RTS -xc): (THUNK_1_0), stack trace:
GHC.List.CAF
--> evaluated by: Language.C.Parser.Lexer.lexC,
called from Language.C.Parser.ParserMonad.execParser,
called from C2HS.C.parseHeader,
called from C2HS.C.loadAttrC,
called from Main.process,
called from Main.execute,
called from Main.compile.doExecute,
called from Control.StateBase.+>=.\,
called from Control.StateTrans.+>=.\.\.(...),
called from Control.StateTrans.+>=.\.\,
called from Control.StateTrans.+>=.\,
called from Control.StateTrans.+>=,
called from Control.StateBase.+>=,
called from Main.compile,
called from Control.StateTrans.fatalsHandledBy.\,
called from Control.StateTrans.fatalsHandledBy,
called from Control.State.fatalsHandledBy,
called from Control.StateBase.unpackCST,
called from Control.State.run.m,
called from Control.StateTrans.runSTB,
called from Control.State.run,
called from C2HS.State.runC2HS,
called from Main.main
*** Exception (reporting due to +RTS -xc): (base:GHC.Exception.Type.SomeException), stack trace:
Control.StateTrans.fatalsHandledBy.\,
called from Control.StateTrans.fatalsHandledBy,
called from Control.State.fatalsHandledBy,
called from Control.StateBase.unpackCST,
called from Control.State.run.m,
called from Control.StateTrans.runSTB,
called from Control.State.run,
called from C2HS.State.runC2HS,
called from Main.main,
called from GHC.List.CAF
*** Exception (reporting due to +RTS -xc): (base:GHC.Exception.Type.SomeException), stack trace:
Control.StateTrans.fatalsHandledBy.\,
called from Control.StateTrans.fatalsHandledBy,
called from Control.State.fatalsHandledBy,
called from Control.StateBase.unpackCST,
called from Control.State.run.m,
called from Control.StateTrans.runSTB,
called from Control.State.run,
called from C2HS.State.runC2HS,
called from Main.main,
called from GHC.List.CAF
c2hs: Prelude.head: empty list
failing all of the test cases with the same error
See #238 .
Using the simple test in tests/system/simple:
running with
-d chs
yieldsI suspect it's a different issue from #192