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

Compiler crash on cfsml bindings #11200

Closed
SolitudeSF opened this issue May 8, 2019 · 0 comments

Comments

Projects
None yet
2 participants
@SolitudeSF
Copy link
Contributor

commented May 8, 2019

https://github.com/oprypin/nim-csfml
compiling any of the examples (except simple.nim) causes a compiler crash with following traceback

Hint: graphics [Processing]
Traceback (most recent call last)
nim.nim(98)              nim
nim.nim(75)              handleCmdLine
cmdlinehelper.nim(92)    loadConfigsAndRunMainCommand
main.nim(194)            mainCommand
main.nim(90)             commandCompileToC
modules.nim(147)         compileProject
modules.nim(88)          compileModule
passes.nim(197)          processModule
passes.nim(86)           processTopLevelStmt
sem.nim(603)             myProcess
sem.nim(571)             semStmtAndGenerateGenerics
semstmts.nim(2159)       semStmt
semexprs.nim(943)        semExprNoType
semexprs.nim(2663)       semExpr
semstmts.nim(2099)       semStmtList
semexprs.nim(2670)       semExpr
semstmts.nim(90)         semWhile
semstmts.nim(2159)       semStmt
semexprs.nim(943)        semExprNoType
semexprs.nim(2663)       semExpr
semstmts.nim(2099)       semStmtList
semexprs.nim(2580)       semExpr
semexprs.nim(847)        semIndirectOp
semexprs.nim(2566)       semExpr
semexprs.nim(924)        semDirectOp
semexprs.nim(774)        semOverloadedCallAnalyseEffects
semcall.nim(532)         semOverloadedCall
semcall.nim(493)         semResolvedCall
seminst.nim(365)         generateInstance
seminst.nim(284)         instantiateProcType
semtypinst.nim(205)      replaceTypeVarsN
(1874 calls omitted) ...
semtypinst.nim(205)      replaceTypeVarsN
semtypinst.nim(267)      replaceTypeVarsS
semtypinst.nim(242)      replaceTypeVarsN
semtypinst.nim(205)      replaceTypeVarsN
semtypinst.nim(267)      replaceTypeVarsS
semtypinst.nim(242)      replaceTypeVarsN
semtypinst.nim(205)      replaceTypeVarsN
semtypinst.nim(267)      replaceTypeVarsS
semtypinst.nim(242)      replaceTypeVarsN
semtypinst.nim(205)      replaceTypeVarsN
semtypinst.nim(267)      replaceTypeVarsS
semtypinst.nim(242)      replaceTypeVarsN
semtypinst.nim(205)      replaceTypeVarsN
semtypinst.nim(267)      replaceTypeVarsS
semtypinst.nim(242)      replaceTypeVarsN
semtypinst.nim(205)      replaceTypeVarsN
semtypinst.nim(267)      replaceTypeVarsS
semtypinst.nim(242)      replaceTypeVarsN
semtypinst.nim(205)      replaceTypeVarsN
semtypinst.nim(267)      replaceTypeVarsS
semtypinst.nim(242)      replaceTypeVarsN
semtypinst.nim(205)      replaceTypeVarsN
semtypinst.nim(267)      replaceTypeVarsS
semtypinst.nim(242)      replaceTypeVarsN
semtypinst.nim(205)      replaceTypeVarsN
semtypinst.nim(267)      replaceTypeVarsS
semtypinst.nim(242)      replaceTypeVarsN
semtypinst.nim(205)      replaceTypeVarsN
semtypinst.nim(267)      replaceTypeVarsS
semtypinst.nim(242)      replaceTypeVarsN
semtypinst.nim(205)      replaceTypeVarsN
semtypinst.nim(267)      replaceTypeVarsS
semtypinst.nim(242)      replaceTypeVarsN
semtypinst.nim(205)      replaceTypeVarsN
semtypinst.nim(267)      replaceTypeVarsS
semtypinst.nim(242)      replaceTypeVarsN
semtypinst.nim(205)      replaceTypeVarsN
semtypinst.nim(267)      replaceTypeVarsS
semtypinst.nim(242)      replaceTypeVarsN
semtypinst.nim(205)      replaceTypeVarsN
semtypinst.nim(267)      replaceTypeVarsS
semtypinst.nim(242)      replaceTypeVarsN
semtypinst.nim(205)      replaceTypeVarsN
semtypinst.nim(267)      replaceTypeVarsS
semtypinst.nim(242)      replaceTypeVarsN
semtypinst.nim(205)      replaceTypeVarsN
semtypinst.nim(267)      replaceTypeVarsS
semtypinst.nim(242)      replaceTypeVarsN
semtypinst.nim(205)      replaceTypeVarsN
semtypinst.nim(267)      replaceTypeVarsS
semtypinst.nim(242)      replaceTypeVarsN
semtypinst.nim(205)      replaceTypeVarsN
semtypinst.nim(267)      replaceTypeVarsS
semtypinst.nim(242)      replaceTypeVarsN
semtypinst.nim(205)      replaceTypeVarsN
semtypinst.nim(267)      replaceTypeVarsS
semtypinst.nim(242)      replaceTypeVarsN
semtypinst.nim(205)      replaceTypeVarsN
semtypinst.nim(267)      replaceTypeVarsS
semtypinst.nim(242)      replaceTypeVarsN
semtypinst.nim(205)      replaceTypeVarsN
semtypinst.nim(267)      replaceTypeVarsS
semtypinst.nim(242)      replaceTypeVarsN
semtypinst.nim(205)      replaceTypeVarsN
semtypinst.nim(267)      replaceTypeVarsS
semtypinst.nim(242)      replaceTypeVarsN
semtypinst.nim(205)      replaceTypeVarsN
semtypinst.nim(267)      replaceTypeVarsS
semtypinst.nim(242)      replaceTypeVarsN
semtypinst.nim(205)      replaceTypeVarsN
semtypinst.nim(267)      replaceTypeVarsS
semtypinst.nim(242)      replaceTypeVarsN
semtypinst.nim(205)      replaceTypeVarsN
semtypinst.nim(267)      replaceTypeVarsS
semtypinst.nim(242)      replaceTypeVarsN
semtypinst.nim(205)      replaceTypeVarsN
semtypinst.nim(267)      replaceTypeVarsS
semtypinst.nim(242)      replaceTypeVarsN
semtypinst.nim(205)      replaceTypeVarsN
semtypinst.nim(267)      replaceTypeVarsS
semtypinst.nim(242)      replaceTypeVarsN
semtypinst.nim(205)      replaceTypeVarsN
semtypinst.nim(267)      replaceTypeVarsS
semtypinst.nim(242)      replaceTypeVarsN
semtypinst.nim(199)      replaceTypeVarsN
semtypinst.nim(120)      replaceTypeVarsT
semtypinst.nim(557)      replaceTypeVarsTAux
types.nim(1332)          containsGenericType
types.nim(174)           iterOverType
intsets.nim(161)         initIntSet
assign.nim(211)          genericReset
assign.nim(198)          genericResetAux
assign.nim(196)          genericResetAux
assign.nim(209)          genericReset
gc.nim(249)              unsureAsgnRef
gc_common.nim            isOnStack
Error: call depth limit reached in a debug build (2000 function calls). You can change it with -d:nimCallDepthLimit=<int> but really try to avoid deep recursions instead.

On stable 0.19.4 all examples compile and run correctly.

nim -v
Nim Compiler Version 0.19.9 [Linux: amd64]
Compiled at 2019-05-08
git hash: 8180d443b9938f135dd280bcd5e1727766cd7468
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.