Skip to content

Troubleshooting

Yuri Voinov edited this page Dec 5, 2023 · 7 revisions
  • On some platforms/compilers (like CentOS 7, GCC 7 for example; CentOS 8 also has this issue) possible occurs error
symbol lookup error: ./libmemlogger.so: undefined symbol: pthread_create

In such cases just add -pthread option to CXXFLAGS manually and rebuild library.

  • If you are testing a memlogger on Linux using userland utilities, you may notice that the final report is not displayed on the screen. This is due to the fact that most userland utilities in Linux, by default, close output streams before on exit destructors fire.

To fix this, redirect saving the report to a file as shown below and repeat the test:

export MEMLOGGER_LOG_FILENAME=/tmp/memory.log

The file stream will continue to run and save your report properly on a periodic basis.

  • If you compile a profiler with Clang, you may receive compilation warnings like:
clang++: warning: argument unused during compilation: '-pthread' [-Wunused-command-line-argument]
clang++: warning: argument unused during compilation: '-stdlib=libc++' [-Wunused-command-line-argument]
clang++: warning: argument unused during compilation: '-pthread' [-Wunused-command-line-argument]
clang++: warning: argument unused during compilation: '-stdlib=libc++' [-Wunused-command-line-argument]
clang++: warning: argument unused during compilation: '-pthread' [-Wunused-command-line-argument]

You can safely ignore them.

Clone this wiki locally