{"action":"opened","issue":{"url":"https://api.github.com/repos/dotnet/coreclr/issues/5457","repository_url":"https://api.github.com/repos/dotnet/coreclr","labels_url":"https://api.github.com/repos/dotnet/coreclr/issues/5457/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/coreclr/issues/5457/comments","events_url":"https://api.github.com/repos/dotnet/coreclr/issues/5457/events","html_url":"https://github.com/dotnet/coreclr/issues/5457","id":158320051,"number":5457,"title":"[sos] Wrong IL dump (ildasm vs dumpil)","user":{"login":"sam-baravy","id":19685728,"avatar_url":"https://avatars.githubusercontent.com/u/19685728?v=3","gravatar_id":"","url":"https://api.github.com/users/sam-baravy","html_url":"https://github.com/sam-baravy","followers_url":"https://api.github.com/users/sam-baravy/followers","following_url":"https://api.github.com/users/sam-baravy/following{/other_user}","gists_url":"https://api.github.com/users/sam-baravy/gists{/gist_id}","starred_url":"https://api.github.com/users/sam-baravy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sam-baravy/subscriptions","organizations_url":"https://api.github.com/users/sam-baravy/orgs","repos_url":"https://api.github.com/users/sam-baravy/repos","events_url":"https://api.github.com/users/sam-baravy/events{/privacy}","received_events_url":"https://api.github.com/users/sam-baravy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-03T08:50:09Z","updated_at":"2016-06-03T08:50:09Z","closed_at":null,"body":"CIL dump of _DumpIL_ command doesn't match that of _ildasm_ utility.\r\nTested with csc.exe and gmcs compilers; CIL does differ in a minor way but behavior holds.\r\n\r\n\r\nMethod of a class:\r\n\r\n```\r\nstatic void DumpIL()\r\n{\r\n    Console.WriteLine(\"test dumpil\");\r\n}\r\n```\r\n\r\nOutput of **ildasm** (note a call to WriteLine):\r\n\r\n```\r\nIL_0000:  nop\r\nIL_0001:  ldstr      \"test dumpil\"\r\nIL_0006:  call       void [mscorlib]System.Console::WriteLine(string)\r\nIL_000b:  nop\r\nIL_000c:  ret\r\n```\r\n\r\nOutput of **sos DumpIL** (no WriteLine at all):\r\n\r\n```\r\nIL_0000: nop \r\nIL_0001: ldstr \"test dumpil\"\r\nIL_000a: stloc.0 \r\nIL_000b: nop \r\nIL_000c: ret\r\n```\r\n\r\nIn host assembler calls to WriteLine are present and a program runs flawlessly:\r\n\r\n```\r\nNormal JIT generated code\r\nTest.DumpIL()\r\n...\r\n00007fff7d09b4f9 48bf68100068ff7f0000 movabs  rdi, 0x7fff68001068\r\n00007fff7d09b503 488b3f               mov     rdi, qword ptr [rdi]\r\n00007fff7d09b506 e88d8d79ff           call    0x7fff7c834298 (System.Console.WriteLine(System.String), mdToken: 000000000600183C)\r\n...\r\n```\r\n\r\n\r\nExpected result: the same output of _ildasm_ and sos _DumpIL_."}}
{"actor":{"display_login":"sam-baravy"}}