Skip to content
Snippets Groups Projects
Commit ada345dc authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

Merge branch 'relpath.CxxUtils-20210909' into 'master'

CxxUtils: Fix stacktrace_test.

See merge request atlas/athena!46418
parents afa65280 5bfb02d8
No related branches found
No related tags found
9 merge requests!69091Fix correlated smearing bug in JER in JetUncertainties in 22.0,!58791DataQualityConfigurations: Modify L1Calo config for web display,!51674Fixing hotSpotInHIST for Run3 HIST,!50012RecExConfig: Adjust log message levels from GetRunNumber and GetLBNumber,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!46538Draft: Added missing xAOD::TrigConfKeys from DESDM_MCP,!46514TGC Digitization: Implementation of signal propagation time between the sensor edge and ASD,!46418CxxUtils: Fix stacktrace_test.
...@@ -48,6 +48,7 @@ void filter (char* buf) ...@@ -48,6 +48,7 @@ void filter (char* buf)
{ {
char* buf0 = buf; char* buf0 = buf;
char* sl = 0; char* sl = 0;
char* sp = 0;
while (*buf) { while (*buf) {
if (buf[0] == '0' && buf[1] == 'x') { if (buf[0] == '0' && buf[1] == 'x') {
buf += 2; buf += 2;
...@@ -76,6 +77,7 @@ void filter (char* buf) ...@@ -76,6 +77,7 @@ void filter (char* buf)
else if (buf[0] == ' ') { else if (buf[0] == ' ') {
++buf; ++buf;
sl = 0; sl = 0;
sp = buf;
} }
else if (buf[0] == '?') { else if (buf[0] == '?') {
...@@ -111,8 +113,14 @@ void filter (char* buf) ...@@ -111,8 +113,14 @@ void filter (char* buf)
++buf; ++buf;
if (*buf == ' ') if (*buf == ' ')
++buf; ++buf;
if (sl) { if (sp) {
buf = snip (sp, buf);
sp = 0;
sl = 0;
}
else if (sl) {
buf = snip (sl, buf); buf = snip (sl, buf);
sp = 0;
sl = 0; sl = 0;
} }
else { else {
...@@ -133,6 +141,7 @@ void dumptrace (FILE* fp) ...@@ -133,6 +141,7 @@ void dumptrace (FILE* fp)
while (fgets (buf, sizeof (buf), fp)) { while (fgets (buf, sizeof (buf), fp)) {
if (strstr (buf, "libasan") != nullptr) if (strstr (buf, "libasan") != nullptr)
continue; continue;
fputs (buf, stdout);
filter (buf); filter (buf);
fputs (buf, stdout); fputs (buf, stdout);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment