{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/3442","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/3442/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/3442/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/3442/events","html_url":"https://github.com/tensorflow/tensorflow/issues/3442","id":166828457,"number":3442,"title":"Error malloc(): memory corruption","user":{"login":"launch81","id":20580170,"avatar_url":"https://avatars.githubusercontent.com/u/20580170?v=3","gravatar_id":"","url":"https://api.github.com/users/launch81","html_url":"https://github.com/launch81","followers_url":"https://api.github.com/users/launch81/followers","following_url":"https://api.github.com/users/launch81/following{/other_user}","gists_url":"https://api.github.com/users/launch81/gists{/gist_id}","starred_url":"https://api.github.com/users/launch81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/launch81/subscriptions","organizations_url":"https://api.github.com/users/launch81/orgs","repos_url":"https://api.github.com/users/launch81/repos","events_url":"https://api.github.com/users/launch81/events{/privacy}","received_events_url":"https://api.github.com/users/launch81/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"petewarden","id":161459,"avatar_url":"https://avatars.githubusercontent.com/u/161459?v=3","gravatar_id":"","url":"https://api.github.com/users/petewarden","html_url":"https://github.com/petewarden","followers_url":"https://api.github.com/users/petewarden/followers","following_url":"https://api.github.com/users/petewarden/following{/other_user}","gists_url":"https://api.github.com/users/petewarden/gists{/gist_id}","starred_url":"https://api.github.com/users/petewarden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petewarden/subscriptions","organizations_url":"https://api.github.com/users/petewarden/orgs","repos_url":"https://api.github.com/users/petewarden/repos","events_url":"https://api.github.com/users/petewarden/events{/privacy}","received_events_url":"https://api.github.com/users/petewarden/received_events","type":"User","site_admin":false},"assignees":[{"login":"petewarden","id":161459,"avatar_url":"https://avatars.githubusercontent.com/u/161459?v=3","gravatar_id":"","url":"https://api.github.com/users/petewarden","html_url":"https://github.com/petewarden","followers_url":"https://api.github.com/users/petewarden/followers","following_url":"https://api.github.com/users/petewarden/following{/other_user}","gists_url":"https://api.github.com/users/petewarden/gists{/gist_id}","starred_url":"https://api.github.com/users/petewarden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petewarden/subscriptions","organizations_url":"https://api.github.com/users/petewarden/orgs","repos_url":"https://api.github.com/users/petewarden/repos","events_url":"https://api.github.com/users/petewarden/events{/privacy}","received_events_url":"https://api.github.com/users/petewarden/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2016-07-21T14:08:51Z","updated_at":"2016-09-11T07:42:46Z","closed_at":null,"body":"Hi All\r\n\r\n### Environment info\r\nOS: Linux raspberrypi 4.4.11-v7+ #888 SMP Mon May 23 20:10:33 BST 2016 armv7l GNU/Linux\r\nDevice: Raspberry PI 3\r\n\r\nInstalled version of CUDA and cuDNN: N/A\r\n\r\nTensorflow installed from source: \r\ngit clone --recurse-submodules https://github.com/tensorflow/tensorflow\r\ncommit c5983f87f0402f2cb8c627807917ebdf8e4d4bb6\r\n\r\n\r\n### Steps to reproduce\r\n1.   `make -f tensorflow/contrib/makefile/Makefile HOST_OS=PI TARGET=PI OPTFLAGS=\"-Os -mfpu=neon-vfpv4 -funsafe-math-optimizations -ftree-vectorize\" CXX=g++-4.8`\r\n\r\n2. `sudo apt-get install -y libjpeg-dev `\r\n\r\n3. make -f tensorflow/contrib/pi_examples/label_image/Makefile\r\nreturns:\r\n```\r\nI tensorflow/contrib/pi_examples/label_image/label_image.cc:142] Loaded JPEG: 512x600x3\r\n*** Error in `tensorflow/contrib/pi_examples/label_image/gen/bin/label_image': malloc(): memory corruption: 0x00e94520 ***\r\nAborted\r\n\r\n```\r\nI've tried also\r\n` tensorflow/contrib/pi_examples/label_image/gen/bin/label_image --image=tensorflow/tensorflow/contrib/pi_examples/label_image/data/grace_hopper.jpg\r\n`\r\nIs there a way to understand which line of code caused the memory corruption?\r\nHow can I increase the debug level?\r\n\r\nThanks\r\nGiovanni"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/246167022","html_url":"https://github.com/tensorflow/tensorflow/issues/3442#issuecomment-246167022","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/3442","id":246167022,"user":{"login":"petewarden","id":161459,"avatar_url":"https://avatars.githubusercontent.com/u/161459?v=3","gravatar_id":"","url":"https://api.github.com/users/petewarden","html_url":"https://github.com/petewarden","followers_url":"https://api.github.com/users/petewarden/followers","following_url":"https://api.github.com/users/petewarden/following{/other_user}","gists_url":"https://api.github.com/users/petewarden/gists{/gist_id}","starred_url":"https://api.github.com/users/petewarden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petewarden/subscriptions","organizations_url":"https://api.github.com/users/petewarden/orgs","repos_url":"https://api.github.com/users/petewarden/repos","events_url":"https://api.github.com/users/petewarden/events{/privacy}","received_events_url":"https://api.github.com/users/petewarden/received_events","type":"User","site_admin":false},"created_at":"2016-09-11T07:42:45Z","updated_at":"2016-09-11T07:42:45Z","body":"I´ve seen multiple reports of this, but haven´t been able to reproduce this, so I bought several clean Pi 3s with Jessie SD cards to experiment with. On my first one, I´m still not seeing the issue, so I suspect thereś something I´m missing with my approach. To narrow it down, here are my complete steps copied from my bash history:\r\n\r\n```bash\r\nmkdir ~/projects\r\n cd ~/projects/\r\n git clone https://github.com/tensorflow/tensorflow\r\n  cd tensorflow/\r\n  tensorflow/contrib/makefile/download_dependencies.sh\r\n  sudo apt-get install autoconf automake libtool\r\n  cd tensorflow/contrib/makefile/downloads/protobuf/\r\n  ./autogen.sh\r\n  ./configure\r\n  make\r\n  sudo make install\r\n  sudo ldconfig\r\n  cd ../../../../..\r\n  sudo apt-get install -y gcc-4.8 g++-4.8\r\n  make -f tensorflow/contrib/makefile/Makefile HOST_OS=PI TARGET=PI OPTFLAGS=\"-Os -mfpu=neon-vfpv4 -funsafe-math-optimizations -ftree-vectorize\" CXX=g++-4.8\r\n  sudo apt-get install -y libjpeg-dev\r\n  make -f tensorflow/contrib/pi_examples/label_image/Makefile\r\n  curl https://storage.googleapis.com/download.tensorflow.org/models/inception_dec_2015_stripped.zip -o /tmp/inception_dec_2015_stripped.zip\r\n   unzip /tmp/inception_dec_2015_stripped.zip -d tensorflow/contrib/pi_examples/label_image/data/\r\n   tensorflow/contrib/pi_examples/label_image/gen/bin/label_image\r\n``` \r\nThis runs as expected, and produces military uniform as the top result, with no malloc error.\r\n\r\nThe outpout of `uname -a` is `Linux raspberrypi 4.1.19-v7+ #858 SMP Tue Mar 15 15:56:00 GMT 2016 armv7l GNU/Linux`. \r\n\r\nCan someone who´s seeing this issue give my steps above a try and let me know if they see the error still?"}}
{"actor":{"display_login":"petewarden"}}