Backtrace function call malloc on first cal so to ensure corect function of backtrace we need to add one more state in to initialization and when the the first backtrace is called the malloc must call malloc from glibc. This operation mast not be logged because the free is not called on this memory.