{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/19347","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/19347/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/19347/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/19347/events","html_url":"https://github.com/tensorflow/tensorflow/issues/19347","id":323955370,"number":19347,"title":"Segmentation fault (core dumped) on tf.Session()","user":{"login":"BenisonSam","id":34688139,"avatar_url":"https://avatars3.githubusercontent.com/u/34688139?v=4","gravatar_id":"","url":"https://api.github.com/users/BenisonSam","html_url":"https://github.com/BenisonSam","followers_url":"https://api.github.com/users/BenisonSam/followers","following_url":"https://api.github.com/users/BenisonSam/following{/other_user}","gists_url":"https://api.github.com/users/BenisonSam/gists{/gist_id}","starred_url":"https://api.github.com/users/BenisonSam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenisonSam/subscriptions","organizations_url":"https://api.github.com/users/BenisonSam/orgs","repos_url":"https://api.github.com/users/BenisonSam/repos","events_url":"https://api.github.com/users/BenisonSam/events{/privacy}","received_events_url":"https://api.github.com/users/BenisonSam/received_events","type":"User","site_admin":false},"labels":[{"id":386191887,"url":"https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response","name":"stat:awaiting response","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":{"login":"poxvoculi","id":15676913,"avatar_url":"https://avatars2.githubusercontent.com/u/15676913?v=4","gravatar_id":"","url":"https://api.github.com/users/poxvoculi","html_url":"https://github.com/poxvoculi","followers_url":"https://api.github.com/users/poxvoculi/followers","following_url":"https://api.github.com/users/poxvoculi/following{/other_user}","gists_url":"https://api.github.com/users/poxvoculi/gists{/gist_id}","starred_url":"https://api.github.com/users/poxvoculi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poxvoculi/subscriptions","organizations_url":"https://api.github.com/users/poxvoculi/orgs","repos_url":"https://api.github.com/users/poxvoculi/repos","events_url":"https://api.github.com/users/poxvoculi/events{/privacy}","received_events_url":"https://api.github.com/users/poxvoculi/received_events","type":"User","site_admin":false},"assignees":[{"login":"poxvoculi","id":15676913,"avatar_url":"https://avatars2.githubusercontent.com/u/15676913?v=4","gravatar_id":"","url":"https://api.github.com/users/poxvoculi","html_url":"https://github.com/poxvoculi","followers_url":"https://api.github.com/users/poxvoculi/followers","following_url":"https://api.github.com/users/poxvoculi/following{/other_user}","gists_url":"https://api.github.com/users/poxvoculi/gists{/gist_id}","starred_url":"https://api.github.com/users/poxvoculi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poxvoculi/subscriptions","organizations_url":"https://api.github.com/users/poxvoculi/orgs","repos_url":"https://api.github.com/users/poxvoculi/repos","events_url":"https://api.github.com/users/poxvoculi/events{/privacy}","received_events_url":"https://api.github.com/users/poxvoculi/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-05-17T10:04:16Z","updated_at":"2018-05-17T18:49:28Z","closed_at":null,"author_association":"NONE","body":"I just installed TensorFlow and to test the installation, I tried the following code and as soon as I initiate the TF Session, I am getting the ***Segmentation fault (core dumped)*** error.\r\n\r\n    bafhf@remote-server:~$ python\r\n    Python 3.6.5 |Anaconda, Inc.| (default, Apr 29 2018, 16:14:56) \r\n    [GCC 7.2.0] on linux\r\n    Type \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n    >>> import tensorflow as tf\r\n    /home/bafhf/anaconda3/envs/ismll/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.\r\n      from ._conv import register_converters as _register_converters\r\n    >>> tf.Session()\r\n    2018-05-15 12:04:15.461361: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1349] Found device 0 with properties: \r\n    name: Tesla K80 major: 3 minor: 7 memoryClockRate(GHz): 0.8235\r\n    pciBusID: 0000:04:00.0\r\n    totalMemory: 11.17GiB freeMemory: 11.10GiB\r\n    Segmentation fault (core dumped)\r\n\r\nMy **nvidia-smi** is:\r\n\r\n    Tue May 15 12:12:26 2018       \r\n    +-----------------------------------------------------------------------------+\r\n    | NVIDIA-SMI 390.30                 Driver Version: 390.30                    |\r\n    |-------------------------------+----------------------+----------------------+\r\n    | GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |\r\n    | Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |\r\n    |===============================+======================+======================|\r\n    |   0  Tesla K80           On   | 00000000:04:00.0 Off |                    0 |\r\n    | N/A   38C    P8    26W / 149W |      0MiB / 11441MiB |      0%      Default |\r\n    +-------------------------------+----------------------+----------------------+\r\n    |   1  Tesla K80           On   | 00000000:05:00.0 Off |                    2 |\r\n    | N/A   31C    P8    29W / 149W |      0MiB / 11441MiB |      0%      Default |\r\n    +-------------------------------+----------------------+----------------------+\r\n                                                                               \r\n    +-----------------------------------------------------------------------------+\r\n    | Processes:                                                       GPU Memory |\r\n    |  GPU       PID   Type   Process name                             Usage      |\r\n    |=============================================================================|\r\n    |  No running processes found                                                 |\r\n    +-----------------------------------------------------------------------------+\r\n\r\nAnd **nvcc --version** is:\r\n\r\n    nvcc: NVIDIA (R) Cuda compiler driver\r\n    Copyright (c) 2005-2017 NVIDIA Corporation\r\n    Built on Fri_Nov__3_21:07:56_CDT_2017\r\n    Cuda compilation tools, release 9.1, V9.1.85\r\n\r\nAlso **gcc --version** is:\r\n\r\n    gcc (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609\r\n    Copyright (C) 2015 Free Software Foundation, Inc.\r\n    This is free software; see the source for copying conditions.  There is NO\r\n    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\r\n\r\nFollowing is my **PATH**:\r\n\r\n    /home/bafhf/anaconda3/envs/***/bin:/home/bafhf/bin:/home/bafhf/.local/bin:/home/bafhf/cuda-9.1/bin:/home/bafhf/anaconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin\r\n\r\nand the **LD_LIBRARY_PATH**:\r\n\r\n    /home/bafhf/cuda-9.1/lib64:/home/bafhf/cuda-9.1/extras/CUPTI/lib64:\r\n\r\n<br>I am running this on a server and I don't have root privileges. Still I managed to install everything as per the instructions on the official website.<br>\r\n\r\nSeems like the GPU is allocating memory for the process for a second and then the core segmentation dumped error is thrown.\r\n\r\n![terminal output](https://user-images.githubusercontent.com/34688139/40171744-7a623402-59cc-11e8-857a-f1c0b2286f2a.gif)\r\n\r\nI downgraded my tensorflow version from v1.8 to v1.5. The issue still remains.\r\n\r\n<br>Is there any way address or debug this issue?\r\n"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/389970179","html_url":"https://github.com/tensorflow/tensorflow/issues/19347#issuecomment-389970179","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/19347","id":389970179,"user":{"login":"BenisonSam","id":34688139,"avatar_url":"https://avatars3.githubusercontent.com/u/34688139?v=4","gravatar_id":"","url":"https://api.github.com/users/BenisonSam","html_url":"https://github.com/BenisonSam","followers_url":"https://api.github.com/users/BenisonSam/followers","following_url":"https://api.github.com/users/BenisonSam/following{/other_user}","gists_url":"https://api.github.com/users/BenisonSam/gists{/gist_id}","starred_url":"https://api.github.com/users/BenisonSam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenisonSam/subscriptions","organizations_url":"https://api.github.com/users/BenisonSam/orgs","repos_url":"https://api.github.com/users/BenisonSam/repos","events_url":"https://api.github.com/users/BenisonSam/events{/privacy}","received_events_url":"https://api.github.com/users/BenisonSam/received_events","type":"User","site_admin":false},"created_at":"2018-05-17T18:49:28Z","updated_at":"2018-05-17T18:49:28Z","author_association":"NONE","body":"I first installed tensorflow in an anaconda env using conda. It gave me the **Segmentation fault** error. So dumped that conda env, created a new conda env and then used bazel to build and generate the the whl package to install it. It still gives me the same error. I followed the same process for version r1.5. Each time I tried something new, I removed the old conda env just to make sure I don't pick up anything residual from earlier process. And every time I am getting the same error."}}
{"actor":{"display_login":"BenisonSam"}}