Skip to content

heap profiling (53.0) not working with absl time lib (Linux) #4801

@sifangli-labs

Description

@sifangli-labs

Hi, I have tried the old and latest absl libs and the problem remains - here is the minimum code to reproduce the problem in our env:

#include <iostream>
#include "absl/time/time.h"

int main(int argc, char** argv) {
    std::cout << "====" << absl::UTCTimeZone() << std::endl; // <==============THIS LINE
    auto leaked = new int [100000];
    for (auto i = 0; i < 100000; ++i) {
        leaked[i] = i % 37;
    }
    std::cout << "************leaked output=" << leaked[0] + leaked [100000 - 1]  << std::endl;
    return 0;
}

Just comment out the marked out line, the generated trace show the leaks calling stack correctly - otherwise it shows:

root
ERROR MEMORY_INVALID (the leaked size seems to be correct but no symbols)
unknown

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