8000 segmentation fault when running convolutional.py · Issue #79 · tensorflow/tensorflow · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

segmentation fault when running convolutional.py #79

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community. 8000

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
arimwilson opened this issue Nov 10, 2015 · 5 comments
Closed

segmentation fault when running convolutional.py #79

arimwilson opened this issue Nov 10, 2015 · 5 comments

Comments

@arimwilson
Copy link

I am running tensorflow/models/image/mnist/convolutional.py. I get:

ariw@clairvoyance:~/tensorflow$ python tensorflow/models/image/mnist/convolutional.py
Succesfully downloaded train-images-idx3-ubyte.gz 9912422 bytes.
Succesfully downloaded train-labels-idx1-ubyte.gz 28881 bytes.
Succesfully downloaded t10k-images-idx3-ubyte.gz 1648877 bytes.
Succesfully downloaded t10k-labels-idx1-ubyte.gz 4542 bytes.
Extracting data/train-images-idx3-ubyte.gz
Extracting data/train-labels-idx1-ubyte.gz
Extracting data/t10k-images-idx3-ubyte.gz
Extracting data/t10k-labels-idx1-ubyte.gz
I tensorflow/core/common_runtime/local_device.cc:25] Local device intra op parallelism threads: 2
I tensorflow/core/common_runtime/local_session.cc:45] Local session inter op parallelism threads: 2
Initialized!
zsh: segmentation fault (core dumped) python tensorflow/models/image/mnist/convolutional.py

Thoughts?

@arimwilson
Copy link
Author

Notes: I'm running on Ubuntu 14.04 i686, following the "install from source" instructions. I have 2GB RAM/4GB swap.

@ebrevdo
Copy link
Contributor
ebrevdo commented Nov 10, 2015

Can you do the following:

Build //tensorflow/models/mnist:convolutional via:

bazel build -c dbg //tensorflow/models/mnist:convolutional

And run with gdb:

(assuming your python is in /usr/bin/python2.7)
gdb --args /usr/bin/python2.7 bazel-bin/tensorflow/models/mnist/convolutional

(press "r" to run it)

wait until it crashes; and type "bt" for backtrace

paste the resulting output here.

@arimwilson
Copy link
Author

(gdb) r
Starting program: /usr/bin/python2.7 bazel-bin/tensorflow/models/image/mnist/convolutional
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
process 29857 is executing new program: /usr/bin/python2.7
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
Traceback (most recent call last):
File "/usr/share/gdb/auto-load/usr/lib/i386-linux-gnu/libstdc++.so.6.0.19-gdb.py", line 63, in
from libstdcxx.v6.printers import register_libstdcxx_printers
ImportError: No module named 'libstdcxx'
Extracting data/train-images-idx3-ubyte.gz
Extracting data/train-labels-idx1-ubyte.gz
Extracting data/t10k-images-idx3-ubyte.gz
Extracting data/t10k-labels-idx1-ubyte.gz
I tensorflow/core/common_runtime/local_device.cc:25] Local device intra op parallelism threads: 2
[New Thread 0xa8abdb40 (LWP 29862)]
[New Thread 0xa80bcb40 (LWP 29863)]
I tensorflow/core/common_runtime/local_session.cc:45] Local session inter op parallelism threads: 2
[New Thread 0xa76ffb40 (LWP 29864)]
[New Thread 0xa4a8fb40 (LWP 29865)]
Initialized!
python: third_party/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h:177: Eigen::internal::TensorIntDivisor::TensorIntDivisor(int32_t): Assertion `divider >= 2' failed.

Program received signal SIGABRT, Aborted.
[Switching to Thread 0xa4a8fb40 (LWP 29865)]
0xb7fdd424 in ?? ()
(gdb) bt
#0 0xb7fdd424 in ?? ()
#1 0xb418e20e in Eigen::TensorEvaluator<Eigen::TensorImagePatchOp<-1, -1, Eigen::TensorMap<Eigen::Tensor<float const, 4u, 1, int>, 1> const> const, Eigen::ThreadPoolDevice>::TensorEvaluator (
this=0xa4a8e25c, op=..., device=...) at third_party/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h:363
#2 0xb4207a8e in Eigen::TensorEvaluator<Eigen::TensorReshapingOp<Eigen::DSizes<int, 2u> const, Eigen::TensorImagePatchOp<-1, -1, Eigen::TensorMap<Eigen::Tensor<float const, 4u, 1, int>, 1> const> const> const, Eigen::ThreadPoolDevice>::TensorEvaluator (this=0xa4a8e25c, op=..., device=...) at third_party/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h:121
#3 0xb41fd4f7 in Eigen::TensorContractionEvaluatorBaseEigen::TensorEvaluator<Eigen::TensorContractionOp<Eigen::array<Eigen::IndexPair<int, 1u> const, Eigen::TensorReshapingOp<Eigen::DSizes<int, 2u> const, Eigen::TensorImagePatchOp<-1, -1, Eigen::TensorMap<Eigen::Tensor<float const, 4u, 1, int>, 1> const> const> const, Eigen::TensorReshapingOp<Eigen::DSizes<int, 2u> const, Eigen::TensorMap<Eigen::Tensor<float const, 4u, 1, int>, 1> const> const> const, Eigen::ThreadPoolDevice> >::TensorContractionEvaluatorBase (this=0xa4a8e1f0, op=..., device=...)
at third_party/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContraction.h:158

@benoitsteiner
Copy link
Contributor

I have pushed a fix for this assertion to our internal tensorflow code repository. It will be available on github with the next push.

@vrv
Copy link
vrv commented Nov 24, 2015

I believe this is fixed as of 9c3043f, will be in our next binary release

@vrv vrv closed this as completed Nov 24, 2015
ilblackdragon added a commit to ilblackdragon/tensorflow that referenced this issue Mar 9, 2016
…ensor to the collection DROPOUTS and zeros it on prediction
ilblackdragon added a commit to ilblackdragon/tensorflow that referenced this issue Mar 9, 2016
lissyx added a commit to lissyx/tensorflow that referenced this issue Sep 28, 2018
cjolivier01 pushed a commit to Cerebras/tensorflow that referenced this issue Dec 6, 2019
…-doc

Update tensorflow-build-from-source.md
copybara-service bot pushed a commit that referenced this issue May 17, 2022
PiperOrigin-RevId: 449119424
copybara-service bot pushed a commit that referenced this issue Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
0