Issue 1:
Building tensorflow with makefile method gets stuck at

gcc --std=c++11 -DIS_SLIM_BUILD -O0 -I. -I/home/tensorflow/tensorflow/contrib/makefile/downloads/ -I/home/tensorflow/tensorflow/contrib/makefile/downloads/eigen-eigen-9e1b48c333aa -I/home/tensorflow/tensorflow/contrib/makefile/gen/proto/ -I/home/tensorflow/tensorflow/contrib/makefile/gen/proto_text/ -I/usr/local/include -I/usr/local/include/c++/4.9.4/ -I/usr/local/include/c++/4.9.4/arm-linux-gnueabihf/ \
-o /home/tensorflow/tensorflow/contrib/makefile/gen/bin/benchmark /home/tensorflow/tensorflow/contrib/makefile/gen/obj/tensorflow/core/util/reporter.o /home/tensorflow/tensorflow/contrib/makefile/gen/obj/tensorflow/tools/benchmark/benchmark_model.o /home/tensorflow/tensorflow/contrib/makefile/gen/obj/tensorflow/tools/benchmark/benchmark_model_main.o \
-Wl,--allow-multiple-definition -Wl,--whole-archive /home/tensorflow/tensorflow/contrib/makefile/gen/lib/libtensorflow-core.a -L/usr/local/lib -lstdc++ -lprotobuf -lz -lm -ldl -lpthread
/home/tensorflow/tensorflow/contrib/makefile/gen/lib/libtensorflow-core.a(conv_ops.o): In function `tensorflow::LaunchDeepConvOp<Eigen::ThreadPoolDevice, float>::Run(tensorflow::OpKernelContext*, tensorflow::Tensor const&, tensorflow::Tensor const&, int, int, int, int, int, int, int, int, int, int, int, int, int, tensorflow::Tensor*, tensorflow::TensorFormat)':
conv_ops.cc:(.text._ZN10tensorflow16LaunchDeepConvOpIN5Eigen16ThreadPoolDeviceEfE3RunEPNS_15OpKernelContextERKNS_6TensorES8_iiiiiiiiiiiiiPS6_NS_12TensorFormatE[_ZN10tensorflow16LaunchDeepConvOpIN5Eigen16ThreadPoolDeviceEfE3RunEPNS_15OpKernelContextERKNS_6TensorES8_iiiiiiiiiiiiiPS6_NS_12TensorFormatE]+0x58): undefined reference to `tensorflow::CanUseDeepConv2D(int, int, int, int, int, int, int, int)'
conv_ops.cc:(.text._ZN10tensorflow16LaunchDeepConvOpIN5Eigen16ThreadPoolDeviceEfE3RunEPNS_15OpKernelContextERKNS_6TensorES8_iiiiiiiiiiiiiPS6_NS_12TensorFormatE[_ZN10tensorflow16LaunchDeepConvOpIN5Eigen16ThreadPoolDeviceEfE3RunEPNS_15OpKernelContextERKNS_6TensorES8_iiiiiiiiiiiiiPS6_NS_12TensorFormatE]+0x174): undefined reference to `tensorflow::functor::DeepConv2D<Eigen::ThreadPoolDevice, float>::operator()(tensorflow::OpKernelContext*, tensorflow::Conv2DArgs const&, float const*, float const*, float*)'
collect2: error: ld returned 1 exit status
tensorflow/contrib/makefile/Makefile:485: recipe for target '/home/tensorflow/tensorflow/contrib/makefile/gen/bin/benchmark' failed
make: *** [/home/tensorflow/tensorflow/contrib/makefile/gen/bin/benchmark] Error 1

Issue 2:
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): N/A

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 16.04.4

Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: N/A

TensorFlow installed from (source or binary): binary from pip

TensorFlow version (use command below): v1.14.0-rc1-22-gaf24dc91b5 1.14.0

Python version: 3.5.2

Bazel version (if compiling from source): N/A

GCC/Compiler version (if compiling from source): N/A

CUDA/cuDNN version: N/A

GPU model and memory: N/A

Exact command to reproduce:

launch jupyter notebook,

download tutorial from google colab (https://colab.research.google.com/github/tensorflow/docs/blob/master/site/en/tutorials/estimators/boosted_trees.ipynb),

run the notebook.

Describe the problem

Hi, I'm currently learning TensorFlow from the tutorials of the TF site.

But, during exercise in the tutorial (https://www.tensorflow.org/tutorials/estimators/boosted_trees), I got a strange error.

TensorFlow was constantly crashed with the code, although it was provided from official site. I tried both jupyter notebook and plain python code.

So I googled the problem a little bit, and found that there's a workaround (#6968), i.e.,

sudo apt install libtcmalloc-minimal4
export LD_PRELOAD="/usr/lib/libtcmalloc_minimal.so.4"

And then the code worked flawlessly.

However, this leaves another questions, and these are what I really wonder;

does this problem happen to some boundary cases like mine? Perhaps I am missing some configurations. I'll be glad to let me know.

if not, that is, tcmalloc is necessary for the TensorFlow, and considering that tcmalloc is not distributed with the every default linux (for example, ubuntu) installations, might be there a better way to evade this situation?

Source code / logs

Before applying the tcmalloc package, jupyter kernel died with this message,

Kernel Restarting

The kernel appears to have died. It will restart automatically.

Here is some snippet of the log message.

*** Error in `/home/sungjin/.virtualenvs/boost/bin/python3': malloc(): memory corruption (fast): 0x00007fe0e804d6d0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7fe1f56097e5]