{"action":"created","issue":{"url":"https://api.github.com/repos/JetBrains/kotlin-native/issues/1100","repository_url":"https://api.github.com/repos/JetBrains/kotlin-native","labels_url":"https://api.github.com/repos/JetBrains/kotlin-native/issues/1100/labels{/name}","comments_url":"https://api.github.com/repos/JetBrains/kotlin-native/issues/1100/comments","events_url":"https://api.github.com/repos/JetBrains/kotlin-native/issues/1100/events","html_url":"https://github.com/JetBrains/kotlin-native/issues/1100","id":278453532,"number":1100,"title":"Tetris sample broken","user":{"login":"msink","id":1785275,"avatar_url":"https://avatars3.githubusercontent.com/u/1785275?v=4","gravatar_id":"","url":"https://api.github.com/users/msink","html_url":"https://github.com/msink","followers_url":"https://api.github.com/users/msink/followers","following_url":"https://api.github.com/users/msink/following{/other_user}","gists_url":"https://api.github.com/users/msink/gists{/gist_id}","starred_url":"https://api.github.com/users/msink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msink/subscriptions","organizations_url":"https://api.github.com/users/msink/orgs","repos_url":"https://api.github.com/users/msink/repos","events_url":"https://api.github.com/users/msink/events{/privacy}","received_events_url":"https://api.github.com/users/msink/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-12-01T12:36:01Z","updated_at":"2017-12-04T13:33:59Z","closed_at":"2017-12-04T13:33:59Z","author_association":"CONTRIBUTOR","body":"At least on windows:\r\n```\r\nKtFile: sdl.kt\r\nKtFile: Tetris.kt\r\nexception: java.lang.AssertionError: Assertion failed\r\n    at org.jetbrains.kotlin.backend.konan.llvm.VariableManager.createMutable$backend_native_compiler(VariableManager.kt:80)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.VariableManager.createVariable(VariableManager.kt:75)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor$VariableScope.genDeclareVariable(IrToBitcode.kt:476)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.generateVariable(IrToBitcode.kt:1159)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.generateStatement(IrToBitcode.kt:723)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.evaluateContainerExpression(IrToBitcode.kt:1559)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.evaluateExpression(IrToBitcode.kt:703)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.generateVariable(IrToBitcode.kt:1158)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.generateStatement(IrToBitcode.kt:723)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.evaluateReturnableBlock(IrToBitcode.kt:1526)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.evaluateExpression(IrToBitcode.kt:702)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.generateVariable(IrToBitcode.kt:1158)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.generateStatement(IrToBitcode.kt:723)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.evaluateContainerExpression(IrToBitcode.kt:1559)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.evaluateExpression(IrToBitcode.kt:703)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.generateVariable(IrToBitcode.kt:1158)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.generateStatement(IrToBitcode.kt:723)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.evaluateReturnableBlock(IrToBitcode.kt:1526)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.evaluateExpression(IrToBitcode.kt:702)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.generateVariable(IrToBitcode.kt:1158)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.generateStatement(IrToBitcode.kt:723)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.evaluateContainerExpression(IrToBitcode.kt:1559)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.evaluateExpression(IrToBitcode.kt:703)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.evaluateExplicitArgs(IrToBitcode.kt:1795)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.evaluateIntrinsicCall(IrToBitcode.kt:2069)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.evaluateFunctionCall(IrToBitcode.kt:1901)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.evaluateCall(IrToBitcode.kt:1661)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.evaluateExpression(IrToBitcode.kt:688)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.generateStatement(IrToBitcode.kt:722)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.evaluateContainerExpression(IrToBitcode.kt:1559)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.evaluateExpression(IrToBitcode.kt:703)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.generateStatement(IrToBitcode.kt:722)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.visitFunction(IrToBitcode.kt:614)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.visitConstructor(IrToBitcode.kt:459)\r\n    at org.jetbrains.kotlin.ir.visitors.IrElementVisitorVoid$DefaultImpls.visitConstructor(IrElementVisitorVoid.kt:55)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.visitConstructor(IrToBitcode.kt:216)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.visitConstructor(IrToBitcode.kt:216)\r\n    at org.jetbrains.kotlin.ir.declarations.impl.IrConstructorImpl.accept(IrConstructorImpl.kt:52)\r\n    at org.jetbrains.kotlin.ir.visitors.IrElementVisitorVoidKt.acceptVoid(IrElementVisitorVoid.kt:236)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.visitClass(IrToBitcode.kt:644)\r\n    at org.jetbrains.kotlin.ir.visitors.IrElementVisitorVoid$DefaultImpls.visitClass(IrElementVisitorVoid.kt:43)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.visitClass(IrToBitcode.kt:216)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.visitClass(IrToBitcode.kt:216)\r\n    at org.jetbrains.kotlin.ir.declarations.impl.IrClassImpl.accept(IrClassImpl.kt:58)\r\n    at org.jetbrains.kotlin.ir.visitors.IrElementVisitorVoidKt.acceptVoid(IrElementVisitorVoid.kt:236)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.visitClass(IrToBitcode.kt:644)\r\n    at org.jetbrains.kotlin.ir.visitors.IrElementVisitorVoid$DefaultImpls.visitClass(IrElementVisitorVoid.kt:43)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.visitClass(IrToBitcode.kt:216)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.visitClass(IrToBitcode.kt:216)\r\n    at org.jetbrains.kotlin.ir.declarations.impl.IrClassImpl.accept(IrClassImpl.kt:58)\r\n    at org.jetbrains.kotlin.ir.declarations.impl.IrFileImpl.acceptChildren(IrFileImpl.kt:63)\r\n    at org.jetbrains.kotlin.ir.visitors.IrElementVisitorVoidKt.acceptChildrenVoid(IrElementVisitorVoid.kt:240)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.visitFile(IrToBitcode.kt:384)\r\n    at org.jetbrains.kotlin.ir.visitors.IrElementVisitorVoid$DefaultImpls.visitFile(IrElementVisitorVoid.kt:37)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.visitFile(IrToBitcode.kt:216)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.visitFile(IrToBitcode.kt:216)\r\n    at org.jetbrains.kotlin.ir.declarations.impl.IrFileImpl.accept(IrFileImpl.kt:60)\r\n    at org.jetbrains.kotlin.ir.declarations.impl.IrModuleFragmentImpl.acceptChildren(IrModuleFragmentImpl.kt:46)\r\n    at org.jetbrains.kotlin.ir.visitors.IrElementVisitorVoidKt.acceptChildrenVoid(IrElementVisitorVoid.kt:240)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.visitModuleFragment(IrToBitcode.kt:297)\r\n    at org.jetbrains.kotlin.ir.visitors.IrElementVisitorVoid$DefaultImpls.visitModuleFragment(IrElementVisitorVoid.kt:28)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.visitModuleFragment(IrToBitcode.kt:216)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.CodeGeneratorVisitor.visitModuleFragment(IrToBitcode.kt:216)\r\n    at org.jetbrains.kotlin.ir.declarations.impl.IrModuleFragmentImpl.accept(IrModuleFragmentImpl.kt:43)\r\n    at org.jetbrains.kotlin.ir.visitors.IrElementVisitorVoidKt.acceptVoid(IrElementVisitorVoid.kt:236)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.IrToBitcodeKt$emitLLVM$6.invoke(IrToBitcode.kt:100)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.IrToBitcodeKt$emitLLVM$6.invoke(IrToBitcode.kt)\r\n    at org.jetbrains.kotlin.backend.konan.PhaseManager$phase$$inlined$with$lambda$1.invoke(KonanPhases.kt:137)\r\n    at org.jetbrains.kotlin.backend.konan.PhaseManager$phase$$inlined$with$lambda$1.invoke(KonanPhases.kt:116)\r\n    at org.jetbrains.kotlin.backend.konan.util.UtilKt.profileIf(util.kt:33)\r\n    at org.jetbrains.kotlin.backend.konan.PhaseManager.phase$backend_native_compiler(KonanPhases.kt:136)\r\n    at org.jetbrains.kotlin.backend.konan.llvm.IrToBitcodeKt.emitLLVM(IrToBitcode.kt:99)\r\n    at org.jetbrains.kotlin.backend.konan.KonanDriverKt$runTopLevelPhases$4$2.invoke(KonanDriver.kt:94)\r\n    at org.jetbrains.kotlin.backend.konan.KonanDriverKt$runTopLevelPhases$4$2.invoke(KonanDriver.kt)\r\n    at org.jetbrains.kotlin.backend.konan.PhaseManager$phase$$inlined$with$lambda$1.invoke(KonanPhases.kt:137)\r\n    at org.jetbrains.kotlin.backend.konan.PhaseManager$phase$$inlined$with$lambda$1.invoke(KonanPhases.kt:116)\r\n    at org.jetbrains.kotlin.backend.konan.util.UtilKt.profileIf(util.kt:33)\r\n    at org.jetbrains.kotlin.backend.konan.PhaseManager.phase$backend_native_compiler(KonanPhases.kt:136)\r\n    at org.jetbrains.kotlin.backend.konan.KonanDriverKt$runTopLevelPhases$4.invoke(KonanDriver.kt:93)\r\n    at org.jetbrains.kotlin.backend.konan.KonanDriverKt$runTopLevelPhases$4.invoke(KonanDriver.kt)\r\n    at org.jetbrains.kotlin.backend.konan.PhaseManager$phase$$inlined$with$lambda$1.invoke(KonanPhases.kt:137)\r\n    at org.jetbrains.kotlin.backend.konan.PhaseManager$phase$$inlined$with$lambda$1.invoke(KonanPhases.kt:116)\r\n    at org.jetbrains.kotlin.backend.konan.util.UtilKt.profileIf(util.kt:33)\r\n    at org.jetbrains.kotlin.backend.konan.PhaseManager.phase$backend_native_compiler(KonanPhases.kt:136)\r\n    at org.jetbrains.kotlin.backend.konan.KonanDriverKt.runTopLevelPhases(KonanDriver.kt:87)\r\n    at org.jetbrains.kotlin.cli.bc.K2Native.doExecute(K2Native.kt:54)\r\n    at org.jetbrains.kotlin.cli.bc.K2Native.doExecute(K2Native.kt:40)\r\n    at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.java:107)\r\n    at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.java:51)\r\n    at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:92)\r\n    at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:70)\r\n    at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:36)\r\n    at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMainNoExit(CLITool.kt:157)\r\n    at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMain(CLITool.kt:148)\r\n    at org.jetbrains.kotlin.cli.bc.K2Native$Companion$main$1.invoke(K2Native.kt:161)\r\n    at org.jetbrains.kotlin.cli.bc.K2Native$Companion$main$1.invoke(K2Native.kt:158)\r\n    at org.jetbrains.kotlin.backend.konan.util.UtilKt.profileIf(util.kt:33)\r\n    at org.jetbrains.kotlin.backend.konan.util.UtilKt.profile(util.kt:28)\r\n    at org.jetbrains.kotlin.cli.bc.K2Native$Companion.main(K2Native.kt:160)\r\n    at org.jetbrains.kotlin.cli.bc.K2NativeKt.main(K2Native.kt:166)\r\n    at org.jetbrains.kotlin.cli.utilities.MainKt.main(main.kt:115)\r\n```"},"comment":{"url":"https://api.github.com/repos/JetBrains/kotlin-native/issues/comments/348963318","html_url":"https://github.com/JetBrains/kotlin-native/issues/1100#issuecomment-348963318","issue_url":"https://api.github.com/repos/JetBrains/kotlin-native/issues/1100","id":348963318,"user":{"login":"msink","id":1785275,"avatar_url":"https://avatars3.githubusercontent.com/u/1785275?v=4","gravatar_id":"","url":"https://api.github.com/users/msink","html_url":"https://github.com/msink","followers_url":"https://api.github.com/users/msink/followers","following_url":"https://api.github.com/users/msink/following{/other_user}","gists_url":"https://api.github.com/users/msink/gists{/gist_id}","starred_url":"https://api.github.com/users/msink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msink/subscriptions","organizations_url":"https://api.github.com/users/msink/orgs","repos_url":"https://api.github.com/users/msink/repos","events_url":"https://api.github.com/users/msink/events{/privacy}","received_events_url":"https://api.github.com/users/msink/received_events","type":"User","site_admin":false},"created_at":"2017-12-04T13:33:59Z","updated_at":"2017-12-04T13:33:59Z","author_association":"CONTRIBUTOR","body":"Fixed."}}
{"actor":{"display_login":"msink"}}