{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/corert/issues/5005","repository_url":"https://api.github.com/repos/dotnet/corert","labels_url":"https://api.github.com/repos/dotnet/corert/issues/5005/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/corert/issues/5005/comments","events_url":"https://api.github.com/repos/dotnet/corert/issues/5005/events","html_url":"https://github.com/dotnet/corert/issues/5005","id":276363614,"number":5005,"title":"Enabling stack trace generation breaks WASM compilation","user":{"login":"MichalStrehovsky","id":13110571,"avatar_url":"https://avatars0.githubusercontent.com/u/13110571?v=4","gravatar_id":"","url":"https://api.github.com/users/MichalStrehovsky","html_url":"https://github.com/MichalStrehovsky","followers_url":"https://api.github.com/users/MichalStrehovsky/followers","following_url":"https://api.github.com/users/MichalStrehovsky/following{/other_user}","gists_url":"https://api.github.com/users/MichalStrehovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/MichalStrehovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichalStrehovsky/subscriptions","organizations_url":"https://api.github.com/users/MichalStrehovsky/orgs","repos_url":"https://api.github.com/users/MichalStrehovsky/repos","events_url":"https://api.github.com/users/MichalStrehovsky/events{/privacy}","received_events_url":"https://api.github.com/users/MichalStrehovsky/received_events","type":"User","site_admin":false},"labels":[{"id":689794855,"url":"https://api.github.com/repos/dotnet/corert/labels/arch-wasm","name":"arch-wasm","color":"eb6420","default":false},{"id":260894304,"url":"https://api.github.com/repos/dotnet/corert/labels/up-for-grabs","name":"up-for-grabs","color":"159818","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-11-23T12:51:20Z","updated_at":"2017-12-01T18:49:58Z","closed_at":null,"author_association":"MEMBER","body":"Stack trace points to problems in dependency analysis. To repro, undo the workaround in #5002 and build the HelloWasm test.\r\n\r\n```\r\n            at System.Diagnostics.Debug.Assert(Boolean condition, String message, String detailMessage)\r\n            at ILCompiler.DependencyAnalysis.ObjectDataBuilder.EmitReloc(ISymbolNode symbol, RelocType relocType, Int32 delta) in D:\\j\\workspace\\debug_windows---5721b50c\\src\\ILCompiler.Compiler\\src\\Compiler\\DependencyAnalysis\\ObjectDataBuilder.cs:line 258\r\n            at ILCompiler.DependencyAnalysis.StackTraceMethodMappingNode.GetData(NodeFactory factory, Boolean relocsOnly) in D:\\j\\workspace\\debug_windows---5721b50c\\src\\ILCompiler.Compiler\\src\\Compiler\\DependencyAnalysis\\StackTraceMethodMappingNode.cs:line 64\r\n            at ILCompiler.DependencyAnalysis.WebAssemblyObjectWriter.EmitObject(String objectFilePath, IEnumerable`1 nodes, NodeFactory factory, WebAssemblyCodegenCompilation compilation, IObjectDumper dumper) in D:\\j\\workspace\\debug_windows---5721b50c\\src\\ILCompiler.WebAssembly\\src\\CodeGen\\WebAssemblyObjectWriter.cs:line 725\r\n            at ILCompiler.WebAssemblyCodegenCompilation.CompileInternal(String outputFile, ObjectDumper dumper) in D:\\j\\workspace\\debug_windows---5721b50c\\src\\ILCompiler.WebAssembly\\src\\Compiler\\WebAssemblyCodegenCompilation.cs:line 46\r\n            at ILCompiler.Compilation.ILCompiler.ICompilation.Compile(String outputFile, ObjectDumper dumper) in D:\\j\\workspace\\debug_windows---5721b50c\\src\\ILCompiler.Compiler\\src\\Compiler\\Compilation.cs:line 305\r\n            at ILCompiler.Program.Run(String[] args) in D:\\j\\workspace\\debug_windows---5721b50c\\src\\ILCompiler\\src\\Program.cs:line 444\r\n            at ILCompiler.Program.Main(String[] args) in D:\\j\\workspace\\debug_windows---5721b50c\\src\\ILCompiler\\src\\Program.cs:line 589\r\n         \r\n            at System.Environment.FailFast(System.String, System.Exception)\r\n            at ILCompiler.DependencyAnalysis.ObjectDataBuilder.EmitReloc(ILCompiler.DependencyAnalysis.ISymbolNode, ILCompiler.DependencyAnalysis.RelocType, Int32)\r\n            at ILCompiler.DependencyAnalysis.StackTraceMethodMappingNode.GetData(ILCompiler.DependencyAnalysis.NodeFactory, Boolean)\r\n            at ILCompiler.DependencyAnalysis.WebAssemblyObjectWriter.EmitObject(System.String, System.Collections.Generic.IEnumerable`1<ILCompiler.DependencyAnalysisFramework.DependencyNode>, ILCompiler.DependencyAnalysis.NodeFactory, ILCompiler.WebAssemblyCodegenCompilation, ILCompiler.DependencyAnalysis.IObjectDumper)\r\n            at ILCompiler.WebAssemblyCodegenCompilation.CompileInternal(System.String, ILCompiler.ObjectDumper)\r\n            at ILCompiler.Compilation.ILCompiler.ICompilation.Compile(System.String, ILCompiler.ObjectDumper)\r\n            at ILCompiler.Program.Run(System.String[])\r\n            at ILCompiler.Program.Main(System.String[])\r\n```"},"comment":{"url":"https://api.github.com/repos/dotnet/corert/issues/comments/348576834","html_url":"https://github.com/dotnet/corert/issues/5005#issuecomment-348576834","issue_url":"https://api.github.com/repos/dotnet/corert/issues/5005","id":348576834,"user":{"login":"hippiehunter","id":624627,"avatar_url":"https://avatars1.githubusercontent.com/u/624627?v=4","gravatar_id":"","url":"https://api.github.com/users/hippiehunter","html_url":"https://github.com/hippiehunter","followers_url":"https://api.github.com/users/hippiehunter/followers","following_url":"https://api.github.com/users/hippiehunter/following{/other_user}","gists_url":"https://api.github.com/users/hippiehunter/gists{/gist_id}","starred_url":"https://api.github.com/users/hippiehunter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hippiehunter/subscriptions","organizations_url":"https://api.github.com/users/hippiehunter/orgs","repos_url":"https://api.github.com/users/hippiehunter/repos","events_url":"https://api.github.com/users/hippiehunter/events{/privacy}","received_events_url":"https://api.github.com/users/hippiehunter/received_events","type":"User","site_admin":false},"created_at":"2017-12-01T18:49:58Z","updated_at":"2017-12-01T18:49:58Z","author_association":"CONTRIBUTOR","body":"I think I understand the issue now, WebAssemblyUnboxingNode can be a WebAssemblyMethodCodeNode but it needs to return the internal method as a dependency, otherwise the stack trace tries to create a new WebAssemblyMethodCodeNode when it tries to write its data."}}
{"actor":{"display_login":"hippiehunter"}}