{"action":"created","issue":{"url":"https://api.github.com/repos/lxc/lxd/issues/788","labels_url":"https://api.github.com/repos/lxc/lxd/issues/788/labels{/name}","comments_url":"https://api.github.com/repos/lxc/lxd/issues/788/comments","events_url":"https://api.github.com/repos/lxc/lxd/issues/788/events","html_url":"https://github.com/lxc/lxd/issues/788","id":90865588,"number":788,"title":"lxc exec randomly crash","user":{"login":"vince06fr","id":101909,"avatar_url":"https://avatars.githubusercontent.com/u/101909?v=3","gravatar_id":"","url":"https://api.github.com/users/vince06fr","html_url":"https://github.com/vince06fr","followers_url":"https://api.github.com/users/vince06fr/followers","following_url":"https://api.github.com/users/vince06fr/following{/other_user}","gists_url":"https://api.github.com/users/vince06fr/gists{/gist_id}","starred_url":"https://api.github.com/users/vince06fr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vince06fr/subscriptions","organizations_url":"https://api.github.com/users/vince06fr/orgs","repos_url":"https://api.github.com/users/vince06fr/repos","events_url":"https://api.github.com/users/vince06fr/events{/privacy}","received_events_url":"https://api.github.com/users/vince06fr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-25T06:05:52Z","updated_at":"2015-06-25T09:44:50Z","closed_at":null,"body":"When I do \r\n```lxc exec ubuntu -- /bin/bash```\r\nsometimes it is working and sometimes i can do nothing except close the terminal (even ctrl+z or ctrl+c don't work)\r\n\r\nhere my log\r\n\r\n```\r\n  lxc_container 1435212136.848 INFO     lxc_confile - confile.c:config_idmap:1376 - read uid map: type u nsid 0 hostid 100000 range 65536\r\n  lxc_container 1435212136.848 INFO     lxc_confile - confile.c:config_idmap:1376 - read uid map: type g nsid 0 hostid 100000 range 65536\r\n  lxc_container 1435212136.851 DEBUG    lxc_commands - commands.c:lxc_cmd_get_state:574 - 'ubuntu' is in 'RUNNING' state\r\n  lxc_container 1435212136.858 DEBUG    lxc_commands - commands.c:lxc_cmd_get_state:574 - 'ubuntu' is in 'RUNNING' state\r\n  lxc_container 1435212136.859 WARN     lxc_log - log.c:lxc_log_init:316 - lxc_log_init called with log already initialized\r\n  lxc_container 1435212136.859 WARN     lxc_attach - attach.c:lxc_attach:651 - Failed to get seccomp policy\r\n  lxc_container 1435212136.862 INFO     lxc_apparmor - lsm/apparmor.c:apparmor_process_label_set:187 - changed apparmor profile to lxc-container-default\r\n```\r\nMore about the bug\r\n\r\nfirst time running the lxc exec command working perfectly\r\ndo exit \r\nrunning the lxc exec command again don't work\r\nrestart the lxd daemon\r\nthe lxc exec command work again\r\n "},"comment":{"url":"https://api.github.com/repos/lxc/lxd/issues/comments/115189620","html_url":"https://github.com/lxc/lxd/issues/788#issuecomment-115189620","issue_url":"https://api.github.com/repos/lxc/lxd/issues/788","id":115189620,"user":{"login":"zacbri","id":6050704,"avatar_url":"https://avatars.githubusercontent.com/u/6050704?v=3","gravatar_id":"","url":"https://api.github.com/users/zacbri","html_url":"https://github.com/zacbri","followers_url":"https://api.github.com/users/zacbri/followers","following_url":"https://api.github.com/users/zacbri/following{/other_user}","gists_url":"https://api.github.com/users/zacbri/gists{/gist_id}","starred_url":"https://api.github.com/users/zacbri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zacbri/subscriptions","organizations_url":"https://api.github.com/users/zacbri/orgs","repos_url":"https://api.github.com/users/zacbri/repos","events_url":"https://api.github.com/users/zacbri/events{/privacy}","received_events_url":"https://api.github.com/users/zacbri/received_events","type":"User","site_admin":false},"created_at":"2015-06-25T09:44:50Z","updated_at":"2015-06-25T09:44:50Z","body":"Same behaviour here.\r\nHere is the debug output on the client :\r\n\r\n2015/06/25 11:27:24 fingering the daemon\r\n2015/06/25 11:27:25 raw response: {\"type\":\"sync\",\"status\":\"Success\",\"status_code\":200,\"metadata\":{\"api_compat\":1,\"auth\":\"trusted\",\"config\":{\"core.trust_password\":true},\"environment\":{\"backing_fs\":\"ext4\",\"driver\":\"lxc\",\"kernel_version\":\"3.13.0-55-generic\",\"lxc_version\":\"1.1.2\",\"lxd_version\":\"0.11\"}}}\r\n2015/06/25 11:27:25 pong received\r\n2015/06/25 11:27:25 posting {\"command\":[\"ps\"],\"environment\":{\"HOME\":\"/root\",\"TERM\":\"xterm\",\"USER\":\"root\"},\"interactive\":true,\"wait-for-websocket\":true}\r\n to https://REDACTED:8443/1.0/containers/corp-pg1/exec\r\n2015/06/25 11:27:25 raw response: {\"type\":\"async\",\"status\":\"OK\",\"status_code\":100,\"operation\":\"/1.0/operations/d7a9c526-ef59-49db-9fc3-22b6acdfb59e\",\"resources\":null,\"metadata\":{\"fds\":{\"0\":\"7be7475d42f70bbf95a2d783ef94dc978b0df3d788d5b520447f696d63591309\",\"1\":\"8c222f5a75f6f0b26f00faf482936c875fd7edbfa2dcb8a512520274ef4817ef\",\"control\":\"0b6da7dd8d3b4b1fedb1f46946a49783043abdaad9c60a8d934a59d1b3066c00\"}}}\r\n\r\nAnd it gets stuck here.\r\nI get the same random lock-ups whether I'm running the exec command locally or remotely.\r\n\r\nFunny thing is when I use exec to run a script previously pushed with \"lxc file\", I would get no output back and it would get stuck, but the script execution actually completes in the container.\r\n\r\nI'm using :\r\n* lxc 1.1.2-0ubuntu3~ubuntu14.04.1~ppa1\r\n* lxd 0.11-0ubuntu1~ubuntu14.04.1~ppa1"}}