Skip to content
Snippets Groups Projects
Commit 9b39fc80 authored by Peter Berta's avatar Peter Berta Committed by Atlas Nightlybuild
Browse files

Merge branch 'diag.TrkTrack-20211027' into '22.0-mc20'

TrkTrack: More TrackStateOnSurface diagnostics.

See merge request !47646

(cherry picked from commit 270cbfa5)

6b7a231f TrkTrack: More TrackStateOnSurface diagnostics.
parent f1699ec6
No related branches found
No related tags found
5 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,!47691Sweeping !47646 from 22.0-mc20 to master. TrkTrack: More TrackStateOnSurface diagnostics.
Pipeline #3173533 passed
......@@ -8,6 +8,26 @@
#include <iostream>
#include <stdexcept>
#include <string>
#include <dlfcn.h>
namespace {
void syminfo (void* addr)
{
Dl_info info;
std::cerr << " " << addr;
if (dladdr (addr, &info) != 0) {
if (info.dli_fname) {
std::cerr << " " << info.dli_fname << " " << info.dli_fbase;
}
if (info.dli_sname) {
std::cerr << " " << info.dli_sname << " " << info.dli_saddr;
}
}
std::cerr << "\n";
}
}
namespace Trk {
TrackStateOnSurface::TrackStateOnSurface() {}
......@@ -155,7 +175,9 @@ TrackStateOnSurface::~TrackStateOnSurface()
const char* p = reinterpret_cast<const char*>(m_alignmentEffectsOnTrack.get());
if (p && reinterpret_cast<uintptr_t>(p) < 0x1000) {
std::cerr << "ERROR: ~TrackStateOnSurface bad AEOT pointer\n";
CxxUtils::safeHexdump (std::cerr, ((const char*)this)-32, sizeof(TrackStateOnSurface)+32);
CxxUtils::safeHexdump (std::cerr, ((const char*)this)-80, sizeof(TrackStateOnSurface)+80+24);
syminfo (((void**)this)[0]);
syminfo (((void**)this)[-4]);
}
}
......
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