ATLAS Offline Software
Loading...
Searching...
No Matches
python.FPEAndCoreDumpConfig Namespace Reference

Functions

 FPEAndCoreDumpCfg (flags)

Function Documentation

◆ FPEAndCoreDumpCfg()

python.FPEAndCoreDumpConfig.FPEAndCoreDumpCfg ( flags)

Definition at line 11 of file FPEAndCoreDumpConfig.py.

11def FPEAndCoreDumpCfg(flags):
12 cfg=ComponentAccumulator()
13 cds=CompFactory.CoreDumpSvc(FastStackTrace=True)
14
15 #AthGeneration & AthAnalysis don't contain the FPEAuditor
16 if flags.Exec.FPE != -2 and hasattr(CompFactory,"FPEAuditor"):
17 #If we run with FPEAuditor, the CoreDumpSvc should not catch SIGFPE
18 #(but otherwise use the default list of signals)
19 signalsToCatch=[int(i) for i in cds.Signals] # Get the default
20
21 if flags.Exec.FPE<0:
22 cfg.addService(CompFactory.FPEControlSvc(),create=True)
23 else:
24 cfg.addAuditor(CompFactory.FPEAuditor(NStacktracesOnFPE=flags.Exec.FPE))
25 from signal import SIGFPE
26 signalsToCatch.remove(SIGFPE)
27 cds.Signals=signalsToCatch
28 pass
29
30 cfg.addService(cds,create=True)
31
32 return cfg
33