{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/1459","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/1459/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/1459/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/1459/events","html_url":"https://github.com/tensorflow/tensorflow/issues/1459","id":140081704,"number":1459,"title":"partial_run segfault","user":{"login":"zayd","id":1335708,"avatar_url":"https://avatars.githubusercontent.com/u/1335708?v=3","gravatar_id":"","url":"https://api.github.com/users/zayd","html_url":"https://github.com/zayd","followers_url":"https://api.github.com/users/zayd/followers","following_url":"https://api.github.com/users/zayd/following{/other_user}","gists_url":"https://api.github.com/users/zayd/gists{/gist_id}","starred_url":"https://api.github.com/users/zayd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zayd/subscriptions","organizations_url":"https://api.github.com/users/zayd/orgs","repos_url":"https://api.github.com/users/zayd/repos","events_url":"https://api.github.com/users/zayd/events{/privacy}","received_events_url":"https://api.github.com/users/zayd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"yuanbyu","id":2342391,"avatar_url":"https://avatars.githubusercontent.com/u/2342391?v=3","gravatar_id":"","url":"https://api.github.com/users/yuanbyu","html_url":"https://github.com/yuanbyu","followers_url":"https://api.github.com/users/yuanbyu/followers","following_url":"https://api.github.com/users/yuanbyu/following{/other_user}","gists_url":"https://api.github.com/users/yuanbyu/gists{/gist_id}","starred_url":"https://api.github.com/users/yuanbyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuanbyu/subscriptions","organizations_url":"https://api.github.com/users/yuanbyu/orgs","repos_url":"https://api.github.com/users/yuanbyu/repos","events_url":"https://api.github.com/users/yuanbyu/events{/privacy}","received_events_url":"https://api.github.com/users/yuanbyu/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2016-03-11T04:19:23Z","updated_at":"2016-03-12T00:56:29Z","closed_at":null,"body":"Running partial_run twice results in a segfault. By running twice I mean: setting up placeholder, ops and completing one run through the graph and then trying to do another run.\r\n\r\n### Environment info\r\nOperating System: Linux. \r\nVersion: 0.7.1\r\nHash: 028d0b4\r\n\r\n### Steps to reproduce\r\n```\r\nimport tensorflow as tf\r\nfrom tensorflow.python import array_ops\r\nfrom tensorflow.python import math_ops\r\nfrom tensorflow.python.framework import dtypes\r\nsess = tf.Session()\r\n\r\na = array_ops.placeholder(dtypes.float32, shape=[])\r\nb = array_ops.placeholder(dtypes.float32, shape=[])\r\nr1 = math_ops.add(a, b)\r\n\r\nh = sess.partial_run_setup([r1], [a, b])\r\nres = sess.partial_run(h, r1, feed_dict={a: 1, b: 2})\r\n\r\nh = sess.partial_run_setup([r1], [a, b])\r\nres = sess.partial_run(h, r1, feed_dict={a: 1, b: 2})\r\n\r\n> Segmentation fault (core dumped)\r\n```\r\n\r\n### What have you tried?\r\n1. Changing execution target to CPU instead of GPU (same problem)\r\n2. Reusing the same handle for the second run results in a ```StatusNotOK``` error because the input has already been fed\r\n\r\n### Logs or other output that would be helpful\r\nCore dump is 1.7 GB. Can attach if useful\r\n"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/195619726","html_url":"https://github.com/tensorflow/tensorflow/issues/1459#issuecomment-195619726","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/1459","id":195619726,"user":{"login":"zayd","id":1335708,"avatar_url":"https://avatars.githubusercontent.com/u/1335708?v=3","gravatar_id":"","url":"https://api.github.com/users/zayd","html_url":"https://github.com/zayd","followers_url":"https://api.github.com/users/zayd/followers","following_url":"https://api.github.com/users/zayd/following{/other_user}","gists_url":"https://api.github.com/users/zayd/gists{/gist_id}","starred_url":"https://api.github.com/users/zayd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zayd/subscriptions","organizations_url":"https://api.github.com/users/zayd/orgs","repos_url":"https://api.github.com/users/zayd/repos","events_url":"https://api.github.com/users/zayd/events{/privacy}","received_events_url":"https://api.github.com/users/zayd/received_events","type":"User","site_admin":false},"created_at":"2016-03-12T00:56:29Z","updated_at":"2016-03-12T00:56:29Z","body":"(ran into bazel issues) \r\nworks!\r\n```\r\n('111', 3.0)\r\n('222', 3.0)\r\n('333', 3.0)\r\n```\r\nSeems the bug was fixed somewhere between last release and HEAD."}}