{"action":"opened","issue":{"url":"https://api.github.com/repos/dotnet/cli/issues/1582","repository_url":"https://api.github.com/repos/dotnet/cli","labels_url":"https://api.github.com/repos/dotnet/cli/issues/1582/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/cli/issues/1582/comments","events_url":"https://api.github.com/repos/dotnet/cli/issues/1582/events","html_url":"https://github.com/dotnet/cli/issues/1582","id":136340846,"number":1582,"title":"Running dotnet in Dockerfile fails with \"lttng-ust-comm.c:1446: lttng_ust_init: Assertion `!ret' failed.\"","user":{"login":"mmalolepszy","id":9466870,"avatar_url":"https://avatars.githubusercontent.com/u/9466870?v=3","gravatar_id":"","url":"https://api.github.com/users/mmalolepszy","html_url":"https://github.com/mmalolepszy","followers_url":"https://api.github.com/users/mmalolepszy/followers","following_url":"https://api.github.com/users/mmalolepszy/following{/other_user}","gists_url":"https://api.github.com/users/mmalolepszy/gists{/gist_id}","starred_url":"https://api.github.com/users/mmalolepszy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmalolepszy/subscriptions","organizations_url":"https://api.github.com/users/mmalolepszy/orgs","repos_url":"https://api.github.com/users/mmalolepszy/repos","events_url":"https://api.github.com/users/mmalolepszy/events{/privacy}","received_events_url":"https://api.github.com/users/mmalolepszy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-25T10:15:46Z","updated_at":"2016-02-25T10:15:46Z","closed_at":null,"body":"## Problem\r\nWhen trying to create new docker image using dotnet command in Dockerfile, it fails with following error:\r\n```\r\nStep 9 : RUN dotnet restore\r\n ---> Running in b28d56b2ace2\r\ndotnet: lttng-ust-comm.c:1446: lttng_ust_init: Assertion `!ret' failed.\r\nAborted\r\nThe command '/bin/sh -c dotnet new && dotnet restore' returned a non-zero code: 134\r\n```\r\n## Steps to reproduce\r\nExample dockerfile:\r\n```\r\nFROM ubuntu:trusty\r\n\r\nRUN apt-get -y update && apt-get -y install wget libcurl3 libicu52 liblldb-3.6 liblttng-ust0 libunwind8 libssl-dev clang-3.5\r\n\r\nRUN wget https://dotnetcli.blob.core.windows.net/dotnet/beta/Installers/Latest/dotnet-ubuntu-x64.latest.deb\r\nRUN dpkg -i dotnet-ubuntu-x64.latest.deb\r\n\r\nRUN mkdir /app\r\nWORKDIR /app\r\n\r\nRUN dotnet new && dotnet restore\r\nENTRYPOINT [\"dotnet\", \"run\"]\r\n```\r\n## My environment\r\n- host: Win 10 Enterprise x64\r\n- docker: 1.10.2, build c3959b1\r\n- dotnet: latest (1.0.0.001556, but observed also yesterday on 1.0.0.001517)\r\n\r\n## Additional observations\r\n- If you strip last two lines from the above Dockerfile, the image builds successfully. When you run this image, first execution of dotnet fails, but the next one runs ok:\r\n```\r\n$ docker run -it dotnetbug\r\nroot@95ec2aeac8d3:/app# dotnet new && dotnet restore\r\ndotnet: lttng-ust-comm.c:1446: lttng_ust_init: Assertion `!ret' failed.\r\nAborted\r\nroot@95ec2aeac8d3:/app# dotnet new && dotnet restore\r\nCreated new C# project in /app.\r\nlog  : Restoring packages for /app/project.json...\r\n(...)\r\n```\r\n- Same behavior can be observed on `microsoft/dotnet:latest` image:\r\n```\r\n$ docker run -it microsoft/dotnet:latest\r\nroot@9a569dd5251a:/# dotnet\r\ndotnet: lttng-ust-comm.c:1446: lttng_ust_init: Assertion `!ret' failed.\r\nAborted\r\nroot@9a569dd5251a:/# dotnet\r\n.NET Command Line Interface\r\nUsage: dotnet [common-options] [command] [arguments]\r\n(...)\r\n```\r\n## Notes\r\n- I found a reference to similar (if not exactly the same) problem here: [https://github.com/rendlelabs/docknet-docker/issues/1](https://github.com/rendlelabs/docknet-docker/issues/1)\r\n- I don't have access to another docker host, so I can't check it in other environments.\r\n\r\n/cc @blackdwarf"}}