Skip to content

Not able to use tensorflow::mutex (../nptl/pthread_mutex_lock.c: No such file or directory) #6045

@laosiaudi

Description

@laosiaudi

Hi All,

I am trying to add a self-defined class under the core/common_runtime/ directory to log the information of each step([https://github.com/laosiaudi/tensorflow/blob/test/tensorflow/core/common_runtime/graph_logger.cc]) and try to use the tensorflow::mutex as step_stats_collector does, but when I run the example/tutorials/mnist/mnist_with_summaries.py, it throws out a segmentation fault. After inspecting via gdb, it reports the error "../nptl/pthread_mutex_lock.c: No such file or directory.".

Could you please provide some advice of how to use tensorflow::mutex correctly or how to fix such errors? Should I modify some BUILD files? I have been stuck in this for a while.

Thanks!

Information about the configuration:
Operating system: Ubuntu14.04
bazel version:
-- Build label:0.4.1
-- Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar

Installed from source and no CUDA supported

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions