{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/coreclr/issues/1358","repository_url":"https://api.github.com/repos/dotnet/coreclr","labels_url":"https://api.github.com/repos/dotnet/coreclr/issues/1358/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/coreclr/issues/1358/comments","events_url":"https://api.github.com/repos/dotnet/coreclr/issues/1358/events","html_url":"https://github.com/dotnet/coreclr/issues/1358","id":99482412,"number":1358,"title":"RyuJIT StackOverflowException while using System.Numerics","user":{"login":"ghord","id":10825459,"avatar_url":"https://avatars.githubusercontent.com/u/10825459?v=3","gravatar_id":"","url":"https://api.github.com/users/ghord","html_url":"https://github.com/ghord","followers_url":"https://api.github.com/users/ghord/followers","following_url":"https://api.github.com/users/ghord/following{/other_user}","gists_url":"https://api.github.com/users/ghord/gists{/gist_id}","starred_url":"https://api.github.com/users/ghord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghord/subscriptions","organizations_url":"https://api.github.com/users/ghord/orgs","repos_url":"https://api.github.com/users/ghord/repos","events_url":"https://api.github.com/users/ghord/events{/privacy}","received_events_url":"https://api.github.com/users/ghord/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/coreclr/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/dotnet/coreclr/labels/CodeGen","name":"CodeGen","color":"d4c5f9"}],"state":"open","locked":false,"assignee":{"login":"CarolEidt","id":2973870,"avatar_url":"https://avatars.githubusercontent.com/u/2973870?v=3","gravatar_id":"","url":"https://api.github.com/users/CarolEidt","html_url":"https://github.com/CarolEidt","followers_url":"https://api.github.com/users/CarolEidt/followers","following_url":"https://api.github.com/users/CarolEidt/following{/other_user}","gists_url":"https://api.github.com/users/CarolEidt/gists{/gist_id}","starred_url":"https://api.github.com/users/CarolEidt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CarolEidt/subscriptions","organizations_url":"https://api.github.com/users/CarolEidt/orgs","repos_url":"https://api.github.com/users/CarolEidt/repos","events_url":"https://api.github.com/users/CarolEidt/events{/privacy}","received_events_url":"https://api.github.com/users/CarolEidt/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/dotnet/coreclr/milestones/5","html_url":"https://github.com/dotnet/coreclr/milestones/Future","labels_url":"https://api.github.com/repos/dotnet/coreclr/milestones/5/labels","id":1328081,"number":5,"title":"Future","description":"Milestone tracking the issues that have been triaged for after 1.0.0-rtm","creator":{"login":"joshfree","id":1302850,"avatar_url":"https://avatars.githubusercontent.com/u/1302850?v=3","gravatar_id":"","url":"https://api.github.com/users/joshfree","html_url":"https://github.com/joshfree","followers_url":"https://api.github.com/users/joshfree/followers","following_url":"https://api.github.com/users/joshfree/following{/other_user}","gists_url":"https://api.github.com/users/joshfree/gists{/gist_id}","starred_url":"https://api.github.com/users/joshfree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshfree/subscriptions","organizations_url":"https://api.github.com/users/joshfree/orgs","repos_url":"https://api.github.com/users/joshfree/repos","events_url":"https://api.github.com/users/joshfree/events{/privacy}","received_events_url":"https://api.github.com/users/joshfree/received_events","type":"User","site_admin":false},"open_issues":305,"closed_issues":18,"state":"open","created_at":"2015-09-29T00:26:07Z","updated_at":"2016-02-09T03:03:13Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-08-06T17:05:55Z","updated_at":"2016-02-09T17:34:13Z","closed_at":null,"body":"Here is a minimal repro of the issue I have found in RyuJit. It throws StackOverflowException on following code:\r\n\r\n```c#\r\nusing System;\r\nusing System.Collections.Generic;\r\nusing System.Linq;\r\nusing System.Numerics;\r\nusing System.Runtime.InteropServices;\r\nusing System.Text;\r\nusing System.Threading.Tasks;\r\n\r\nnamespace ConsoleApplication1\r\n{\r\n    class Program\r\n    {\r\n        static void Main(string[] args)\r\n        {\r\n            Foo(Matrix4x4.Identity);\r\n        }\r\n     \r\n        private static unsafe void Foo(Matrix4x4 m)\r\n        {\r\n            byte* buffer = stackalloc byte[16]; //any number really, not only 16\r\n            m.Translation = new Vector3(0, 0, 0);      \r\n        }\r\n    }\r\n}\r\n```\r\n\r\nCompiled on DesktopCLR .NET 4.6 x64 with optiomizations enabled (debug builds do not throw) and /unsafe."},"comment":{"url":"https://api.github.com/repos/dotnet/coreclr/issues/comments/181972977","html_url":"https://github.com/dotnet/coreclr/issues/1358#issuecomment-181972977","issue_url":"https://api.github.com/repos/dotnet/coreclr/issues/1358","id":181972977,"user":{"login":"sivarv","id":11184808,"avatar_url":"https://avatars.githubusercontent.com/u/11184808?v=3","gravatar_id":"","url":"https://api.github.com/users/sivarv","html_url":"https://github.com/sivarv","followers_url":"https://api.github.com/users/sivarv/followers","following_url":"https://api.github.com/users/sivarv/following{/other_user}","gists_url":"https://api.github.com/users/sivarv/gists{/gist_id}","starred_url":"https://api.github.com/users/sivarv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sivarv/subscriptions","organizations_url":"https://api.github.com/users/sivarv/orgs","repos_url":"https://api.github.com/users/sivarv/repos","events_url":"https://api.github.com/users/sivarv/events{/privacy}","received_events_url":"https://api.github.com/users/sivarv/received_events","type":"User","site_admin":false},"created_at":"2016-02-09T17:34:13Z","updated_at":"2016-02-09T17:34:13Z","body":"@CarolEidt - this bug is fixed and can be closed?"}}