{"action":"created","issue":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/7752","repository_url":"https://api.github.com/repos/home-assistant/home-assistant","labels_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/7752/labels{/name}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/7752/comments","events_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/7752/events","html_url":"https://github.com/home-assistant/home-assistant/issues/7752","id":231112899,"number":7752,"title":"Python 3.6 + 0.45.1 - Segmentation Faults","user":{"login":"arraylabs","id":1139563,"avatar_url":"https://avatars2.githubusercontent.com/u/1139563?v=3","gravatar_id":"","url":"https://api.github.com/users/arraylabs","html_url":"https://github.com/arraylabs","followers_url":"https://api.github.com/users/arraylabs/followers","following_url":"https://api.github.com/users/arraylabs/following{/other_user}","gists_url":"https://api.github.com/users/arraylabs/gists{/gist_id}","starred_url":"https://api.github.com/users/arraylabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arraylabs/subscriptions","organizations_url":"https://api.github.com/users/arraylabs/orgs","repos_url":"https://api.github.com/users/arraylabs/repos","events_url":"https://api.github.com/users/arraylabs/events{/privacy}","received_events_url":"https://api.github.com/users/arraylabs/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":32,"created_at":"2017-05-24T17:20:20Z","updated_at":"2017-06-17T20:46:45Z","closed_at":"2017-06-17T20:46:45Z","body":"Make sure you are running the latest version of Home Assistant before reporting an issue.\r\n\r\nYou should only file an issue if you found a bug. Feature and enhancement requests should go in [the Feature Requests section](https://community.home-assistant.io/c/feature-requests) of our community forum:\r\n\r\n**Home Assistant release (`hass --version`): 0.45.1**\r\n\r\n\r\n**Python release (`python3 --version`): 3.6.1**\r\n\r\n\r\n**Component/platform:**\r\n\r\n\r\n**Description of problem:**\r\nDocker file installed as explained in documentation. Getting segmentation faults after a couple hours of running. There are no messages in the HA error log when it seg faults. Only place I have seen it logged is in the messages log from dmesg. It contains the following:\r\n\r\n```\r\nMay 23 23:02:46 hass kern.info kernel: [100410.601161] python[20759]: segfault at 8 ip 000076dfbbae97b2 sp 000076dfa8837ea0 error 6 in libpython3.6m.so.1.0[76dfbba45000+29a000]\r\nMay 23 23:02:46 hass kern.alert kernel: [100410.601196] grsec: Segmentation fault occurred at 0000000000000008 in /usr/local/bin/python3.6[python:20759] uid/euid:0/0 gid/egid:0/0, parent /usr/bin/docker-containerd-shim[docker-containe:4467] uid/euid:0/0 gid/egid:0/0\r\nMay 23 23:02:46 hass kern.alert kernel: [100410.601455] grsec: denied resource overstep by requesting 4096 for RLIMIT_CORE against limit 0 for /usr/local/bin/python3.6[python:20759] uid/euid:0/0 gid/egid:0/0, parent /usr/bin/docker-containerd-shim[docker-containe:4467\r\n```\r\nSwitching back to 0.44.2 all works without issue and 0.45.0/1 is the first time I have experienced any seg faults. Further info. I installed 0.45.0 (via docker rm, pull, run, etc) late saturday or early sunday on an ubuntu 16 esxi vm (my normal environment run HA without issue for the last year or so) and within a few hours it died with a seg fault error. Restarted HA, ran fine for a few hours then seg faulted again. At this point I moved back to 0.44.2 via docker and all ran fine. On monday i moved my HA docker install to a physical box running latest alpine linux with docker and version 0.44.2 (turning off my vm install) and it came up without issue and ran fine until I decided to try 0.45.1 again yesterday. So on the physical alpine linux box I again used docker to rm, pull, run, etc and move to 0.45.1. All came up fine then a few hours later the seg fault again occurred. Restarted the container, all was again fine for a few hours and again seg fault. Moved back to 0.44.2 and its been running without issue since then.\r\n\r\nSeg faults on two different \"machines\" with two different operating systems concerns me.\r\n\r\n**Expected:**\r\nNo seg faults"},"comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/comments/309239250","html_url":"https://github.com/home-assistant/home-assistant/issues/7752#issuecomment-309239250","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/7752","id":309239250,"user":{"login":"balloob","id":1444314,"avatar_url":"https://avatars0.githubusercontent.com/u/1444314?v=3","gravatar_id":"","url":"https://api.github.com/users/balloob","html_url":"https://github.com/balloob","followers_url":"https://api.github.com/users/balloob/followers","following_url":"https://api.github.com/users/balloob/following{/other_user}","gists_url":"https://api.github.com/users/balloob/gists{/gist_id}","starred_url":"https://api.github.com/users/balloob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balloob/subscriptions","organizations_url":"https://api.github.com/users/balloob/orgs","repos_url":"https://api.github.com/users/balloob/repos","events_url":"https://api.github.com/users/balloob/events{/privacy}","received_events_url":"https://api.github.com/users/balloob/received_events","type":"User","site_admin":false},"created_at":"2017-06-17T20:46:45Z","updated_at":"2017-06-17T20:46:45Z","body":"Starting 0.47 we have enabled the monkey patch by default."}}
{"actor":{"display_login":"balloob"}}