Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

"Segmentation fault" & "src/tcmalloc.cc:277.. Aborted" on prediction #119

Closed
zzks opened this issue Mar 28, 2017 · 3 comments
Closed

"Segmentation fault" & "src/tcmalloc.cc:277.. Aborted" on prediction #119

zzks opened this issue Mar 28, 2017 · 3 comments

Comments

@zzks
Copy link

zzks commented Mar 28, 2017

hi,
When i try prediction on NMT sample, encounter following error (the same to
#43 ):

INFO:tensorflow:Creating ZeroBridge in mode=infer
INFO:tensorflow:
ZeroBridge: {}
Segmentation fault (core dumped)

Then, I tried tensorflow/tensorflow#6968 (comment)
However, new error showed:
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcublas.so.8.0 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcudnn.so.5 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcufft.so.8.0 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcuda.so.1 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcurand.so.8.0 locally
src/tcmalloc.cc:277] Attempt to free invalid pointer 0x12
Aborted (core dumped)

env: ubuntu14.04, python3.4, tf1.0

@dennybritz
Copy link
Contributor

dennybritz commented Mar 28, 2017

Thanks for reporting. I think you should open a Tensorflow issue, this doesn't seem directly related to this code, but has something to do with your local Tensorflow/GPU/CUDA setup. Tensorflow maintainers may help yo debug this better than I can.

@yfor1008
Copy link

i have the same issue, and i fix it by:
sudo apt-get install libjemalloc-dev export LD_PRELOAD="/usr/lib/usr/lib/x86_64-linux-gnu/libjemalloc.so.1"

@akash13singh
Copy link

I faced the same issue. @yfor1008's solution fixed it. Though there is a slight typo.
sudo apt-get install libjemalloc-dev
export LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libjemalloc.so.1"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants