cobra_to_sentry / backtraces are reversed and line number is not extracted correctly
This commit is contained in:
parent
20c80352bf
commit
dbd62b8622
@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file.
|
|||||||
|
|
||||||
## [unreleased] - 2019-06-09
|
## [unreleased] - 2019-06-09
|
||||||
### Changed
|
### Changed
|
||||||
|
- cobra_to_sentry / backtraces are reversed and line number is not extracted correctly
|
||||||
- mbedtls and zlib are searched with find_package, and we use the vendored version if nothing is found
|
- mbedtls and zlib are searched with find_package, and we use the vendored version if nothing is found
|
||||||
- travis CI uses g++ on Linux
|
- travis CI uses g++ on Linux
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
4.0.0
|
4.0.4
|
||||||
|
@ -72,7 +72,6 @@ namespace ix
|
|||||||
std::string line;
|
std::string line;
|
||||||
std::stringstream tokenStream(stack);
|
std::stringstream tokenStream(stack);
|
||||||
|
|
||||||
std::stringstream ss;
|
|
||||||
std::smatch group;
|
std::smatch group;
|
||||||
|
|
||||||
while (std::getline(tokenStream, line))
|
while (std::getline(tokenStream, line))
|
||||||
@ -84,6 +83,7 @@ namespace ix
|
|||||||
const auto linenoStr = group.str(2);
|
const auto linenoStr = group.str(2);
|
||||||
const auto function = group.str(3);
|
const auto function = group.str(3);
|
||||||
|
|
||||||
|
std::stringstream ss;
|
||||||
ss << linenoStr;
|
ss << linenoStr;
|
||||||
uint64_t lineno;
|
uint64_t lineno;
|
||||||
ss >> lineno;
|
ss >> lineno;
|
||||||
@ -97,6 +97,8 @@ namespace ix
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::reverse(frames.begin(), frames.end());
|
||||||
|
|
||||||
return frames;
|
return frames;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user