Open
Description
My sample code is like this:
#include <iostream>
#include "backward.hpp"
#include <oneapi/tbb.h>
int main() {
backward::SignalHandling sh;
int sum = oneapi::tbb::parallel_reduce(
oneapi::tbb::blocked_range<int>(1,101), 0,
[](oneapi::tbb::blocked_range<int> const& r, int init) -> int {
for (int v = r.begin(); v != r.end(); v++) {
init += v;
}
char *nn = nullptr;
nn[3] = 'a';
return init;
},
[](int lhs, int rhs) -> int {
return lhs + rhs;
}
);
printf("sum: %d\n", sum);
std::cout << "hello\n";
return 0;
}
Look at the code char *nn = nullptr; nn[3] = 'a';
And the backward-cpp can not output the stack.
Metadata
Metadata
Assignees
Labels
No labels