ATLAS Offline Software
DisableCoreDumpSvc_postInclude.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
2 
3 # This posInclude fragment is used when setting up GPT profiling of an Athena job
4 # to turn off CoreDumpSvc. CoreDumpSvc hooks into certain signal events, which
5 # seems to interfere with GPerfTools and causes random crashes
6 #
7 
8 from AthenaCommon.AppMgr import ServiceMgr as svcMgr
9 if hasattr(svcMgr, 'CoreDumpSvc'):
10  # By default, CoreDumpSvc.cxx defines to catch
11  # all SIGSEGV, SIGBUS, SIGILL, SIGFPE events
12  # -> we need to unregister all signals
13  svcMgr.CoreDumpSvc.Signals = [ ]