assertion failure in non-release Nim when compiling NimYAML #4869

Closed
flyx opened this Issue Oct 9, 2016 · 0 comments

Projects

None yet

2 participants

@flyx
Contributor
flyx commented Oct 9, 2016

To reproduce, execute with a debug Nim executable (without -d:release):

git clone https://github.com/flyx/NimYAML.git && cd NimYAML
git checkout 4bde3a79867796cfa7edcdfd95c051deadf06de7
nim tests

output:

Traceback (most recent call last)
nim.nim(115)             nim
nim.nim(71)              handleCmdLine
main.nim(254)            mainCommand
main.nim(65)             commandCompileToC
modules.nim(238)         compileProject
system.nim(1105)         compileModule
passes.nim(198)          processModule
passes.nim(131)          processTopLevelStmt
sem.nim(492)             myProcess
sem.nim(464)             semStmtAndGenerateGenerics
semstmts.nim(1570)       semStmt
semexprs.nim(819)        semExprNoType
semexprs.nim(2361)       semExpr
importer.nim(179)        evalImport
importer.nim(165)        myImportModule
modules.nim(202)         importModule
system.nim(1105)         compileModule
passes.nim(198)          processModule
passes.nim(131)          processTopLevelStmt
sem.nim(492)             myProcess
sem.nim(464)             semStmtAndGenerateGenerics
semstmts.nim(1570)       semStmt
semexprs.nim(819)        semExprNoType
semexprs.nim(2361)       semExpr
importer.nim(179)        evalImport
importer.nim(165)        myImportModule
modules.nim(202)         importModule
system.nim(1105)         compileModule
passes.nim(198)          processModule
passes.nim(131)          processTopLevelStmt
sem.nim(492)             myProcess
sem.nim(464)             semStmtAndGenerateGenerics
semstmts.nim(1570)       semStmt
semexprs.nim(819)        semExprNoType
semexprs.nim(2354)       semExpr
semstmts.nim(1343)       semProc
semstmts.nim(1277)       semProcAux
semexprs.nim(1423)       semProcBody
semexprs.nim(2336)       semExpr
semstmts.nim(1524)       semStmtList
semexprs.nim(2271)       semExpr
semexprs.nim(715)        semIndirectOp
semexprs.nim(2284)       semExpr
semexprs.nim(1264)       semArrayAccess
semexprs.nim(1240)       semSubscript
semcall.nim(432)         explicitGenericInstantiation
semcall.nim(413)         explicitGenericSym
seminst.nim(288)         generateInstance
seminst.nim(128)         instantiateBody
semexprs.nim(1423)       semProcBody
semexprs.nim(2336)       semExpr
semstmts.nim(1524)       semStmtList
semexprs.nim(2334)       semExpr
semexprs.nim(1379)       semAsgn
semexprs.nim(42)         semExprWithType
semexprs.nim(2269)       semExpr
semexprs.nim(803)        semDirectOp
semexprs.nim(794)        afterCallActions
semmagic.nim(163)        magicsAfterOverloadResolution
semmagic.nim(42)         semArrGet
semexprs.nim(1240)       semSubscript
semcall.nim(432)         explicitGenericInstantiation
semcall.nim(413)         explicitGenericSym
seminst.nim(288)         generateInstance
seminst.nim(128)         instantiateBody
semexprs.nim(1423)       semProcBody
semexprs.nim(2336)       semExpr
semstmts.nim(1524)       semStmtList
semexprs.nim(2347)       semExpr
semstmts.nim(218)        semCase
semstmts.nim(116)        semExprBranchScope
semstmts.nim(107)        semExprBranch
semexprs.nim(2336)       semExpr
semstmts.nim(1524)       semStmtList
semexprs.nim(2347)       semExpr
semstmts.nim(218)        semCase
semstmts.nim(116)        semExprBranchScope
semstmts.nim(107)        semExprBranch
semexprs.nim(2336)       semExpr
semstmts.nim(1524)       semStmtList
semexprs.nim(2334)       semExpr
semexprs.nim(1379)       semAsgn
semexprs.nim(42)         semExprWithType
semexprs.nim(2269)       semExpr
semexprs.nim(803)        semDirectOp
semexprs.nim(794)        afterCallActions
semmagic.nim(163)        magicsAfterOverloadResolution
semmagic.nim(42)         semArrGet
semexprs.nim(1240)       semSubscript
semcall.nim(432)         explicitGenericInstantiation
semcall.nim(413)         explicitGenericSym
seminst.nim(288)         generateInstance
seminst.nim(128)         instantiateBody
semexprs.nim(1423)       semProcBody
semexprs.nim(2336)       semExpr
semstmts.nim(1524)       semStmtList
semexprs.nim(2334)       semExpr
semexprs.nim(1391)       semAsgn
sem.nim(78)              fitNode
semcall.nim(311)         indexTypesMatch
sigmatch.nim(1507)       paramTypesMatch
sigmatch.nim(1383)       paramTypesMatchAux
sigmatch.nim(938)        typeRel
sigmatch.nim(548)        procTypeRel
types.nim(1406)          compatibleEffects
types.nim(1384)          compatibleEffectsAux
types.nim(1377)          safeInheritanceDiff
types.nim(1006)          inheritanceDiff
system.nim(3414)         failedAssertImpl
system.nim(3406)         raiseAssert
system.nim(2546)         sysFatal
Error: unhandled exception: a.kind == tyObject  [AssertionError]
@Araq Araq added the Showstopper label Oct 21, 2016
@Araq Araq added a commit that closed this issue Oct 21, 2016
@Araq Araq fixes #4869 d60448f
@Araq Araq closed this in d60448f Oct 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment