Boost logo

Boost Users :

Subject: [Boost-users] [boost][stacktrace] stacktrace keep eating memory
From: Hao Jiang (drakedog2008_at_[hidden])
Date: 2019-03-20 10:05:00

I am using stacktrace on Windows. I found stacktrace keep eating my memory. A simple test program:

void foo() {
  auto st = boost::stacktrace::stacktrace{};
  auto line = st.begin()->source_line();
  std::cout << line << std::endl;
void main() {
  for (int i = 0; i < 0xFFFF; i++) {

Based on MSVC memory profiling tool, memory usage keep growth:

And frame allocator is taking heap:


Anyone knows why it happens?


Platform: Windows 7.
Compiler: MSVC 2017
Boost version: 1.67
Compile and link: release, static-link, static runtime.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at