{"action":"created","issue":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/6095","repository_url":"https://api.github.com/repos/scikit-learn/scikit-learn","labels_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/6095/labels{/name}","comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/6095/comments","events_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/6095/events","html_url":"https://github.com/scikit-learn/scikit-learn/issues/6095","id":124022848,"number":6095,"title":"Segmentation fault with GPy","user":{"login":"emakryo","id":6158152,"avatar_url":"https://avatars.githubusercontent.com/u/6158152?v=3","gravatar_id":"","url":"https://api.github.com/users/emakryo","html_url":"https://github.com/emakryo","followers_url":"https://api.github.com/users/emakryo/followers","following_url":"https://api.github.com/users/emakryo/following{/other_user}","gists_url":"https://api.github.com/users/emakryo/gists{/gist_id}","starred_url":"https://api.github.com/users/emakryo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emakryo/subscriptions","organizations_url":"https://api.github.com/users/emakryo/orgs","repos_url":"https://api.github.com/users/emakryo/repos","events_url":"https://api.github.com/users/emakryo/events{/privacy}","received_events_url":"https://api.github.com/users/emakryo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-28T06:01:59Z","updated_at":"2016-02-26T18:56:40Z","closed_at":null,"body":"I executed the following code and met segmentation faults\r\n\r\n```\r\nimport GPy\r\nimport numpy as np\r\nfrom sklearn.cluster import KMeans\r\n\r\ndef test():\r\n    km = KMeans(n_clusters=10, n_jobs=2)\r\n    km.fit(np.random.randn(5000,1))\r\n\r\ntest()\r\n```\r\n\r\nWithout importing GPy, with fitting less data or with running only one job the above code ran successfully.\r\nI executed the code under following environment.\r\n\r\n* OS X 10.10\r\n* Python 2.7\r\n* scikit-learn 0.17\r\n* GPy 0.8.8\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/comments/189423251","html_url":"https://github.com/scikit-learn/scikit-learn/issues/6095#issuecomment-189423251","issue_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/6095","id":189423251,"user":{"login":"lesteve","id":1680079,"avatar_url":"https://avatars.githubusercontent.com/u/1680079?v=3","gravatar_id":"","url":"https://api.github.com/users/lesteve","html_url":"https://github.com/lesteve","followers_url":"https://api.github.com/users/lesteve/followers","following_url":"https://api.github.com/users/lesteve/following{/other_user}","gists_url":"https://api.github.com/users/lesteve/gists{/gist_id}","starred_url":"https://api.github.com/users/lesteve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lesteve/subscriptions","organizations_url":"https://api.github.com/users/lesteve/orgs","repos_url":"https://api.github.com/users/lesteve/repos","events_url":"https://api.github.com/users/lesteve/events{/privacy}","received_events_url":"https://api.github.com/users/lesteve/received_events","type":"User","site_admin":false},"created_at":"2016-02-26T18:56:40Z","updated_at":"2016-02-26T18:56:40Z","body":"Just a wild guess: this may be related to https://pythonhosted.org/joblib/parallel.html?highlight=accelerate#bad-interaction-of-multiprocessing-and-third-party-libraries.\r\n\r\nCan you try the work-around provided in the link? Note you will need to use Python >= 3.4."}}