tensorflow-cpp-op-example icon indicating copy to clipboard operation
tensorflow-cpp-op-example copied to clipboard

inner_product_tests.py failed with segment fault

Open immarvin opened this issue 6 years ago • 2 comments

Hi, system info:

mac OS: Mojave
version: 10.14.2

$ python --version
Python 2.7.15

$ pip show tensorflow
Name: tensorflow
Version: 1.12.0
Summary: TensorFlow is an open source machine learning framework for everyone.
Home-page: https://www.tensorflow.org/
Author: Google Inc.
Author-email: [email protected]
License: Apache 2.0
Location: /usr/local/lib/python2.7/site-packages
Requires: astor, enum34, protobuf, keras-preprocessing, gast, six, wheel, absl-py, backports.weakref, termcolor, tensorboard, numpy, grpcio, mock, keras-applications
Required-by:

$ gcc -v
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1
Apple LLVM version 10.0.0 (clang-1000.10.44.4)
Target: x86_64-apple-darwin18.2.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

The error message:

user:tensorflow-cpp-op-example  user$ ./inner_product_tests.py
.Python(8524,0x70000b1d5000) malloc: Incorrect checksum for freed object 0x7fa5ad144e90: probably modified after being freed.
Corrupt value: 0xb000000041800000
Python(8524,0x70000b1d5000) malloc: *** set a breakpoint in malloc_error_break to debug
Abort trap: 6

immarvin avatar Jan 23 '19 10:01 immarvin

the modified code base: https://github.com/immarvin/tensorflow-cpp-op-example

immarvin avatar Jan 23 '19 10:01 immarvin

So what was the exact problem at the end? According to the changes it was just a problem in the CMakeFile?

davidstutz avatar Mar 28 '19 15:03 davidstutz