Project

General

Profile

Bug #10833

Incorrect framing of information about an exception thrown in the beginRun callback of an art::Service

Added by Rob Kutschke about 4 years ago. Updated over 1 year ago.

Status:
Accepted
Priority:
Low
Assignee:
-
Category:
Infrastructure
Target version:
Start date:
11/06/2015
Due date:
% Done:

0%

Estimated time:
Occurs In:
Scope:
Internal
Experiment:
Mu2e
SSI Package:
art
Duration:

Description

I have added an example to the Mu2e Sandbox that illustrates bad framing information of exception information

To get the Mu2e code:
git clone http://cdcvs.fnal.gov/projects/mu2eofflinesoftwaremu2eoffline/Offline.git

The relevant bits are:
Sandbox/inc/Bug01Service.hh
Sandbox/src/Bug01Service_service.cc
Sandbox/src/SConscript
Sandbox/test/bug01.fcl

In this example the service Bug01Service registers a beginRun callback and unconditionally throws a cet:exception in that callback. See below for the output, including the output from --trace.

While the exception is thrown at service beginRun time, the art printout is deferred until after close input file and the message framing information says that error occurs during PostClose module.

mu2e -c Sandbox/test/bug01.fcl --trace
%MSG-i MF_INIT_OK:  mu2e 06-Nov-2015 10:51:04 CST JobSetup
Messagelogger initialization complete.
%MSG
Bug01Service::constructor
++ Job started
++++open input file
++++finished: open input file 
++++source run
++++finished: source run
++++ processing begin run:run: 1 time:0
Bug01Service::preBeginRun: throwing now ... 
++++close input file
++++finished: close input file
%MSG-s ArtException:  PostCloseFile 06-Nov-2015 10:51:05 CST run: 1
cet::exception caught in art
---- EventProcessorFailure BEGIN
  An exception occurred during current event processing
  ---- FOO BEGIN
    Throwing an exception, just because ... 
  ---- FOO END
  cet::exception caught in EventProcessor and rethrown
---- EventProcessorFailure END
%MSG
Art has completed and will exit with status 65.

History

#1 Updated by Christopher Green about 4 years ago

  • Category set to Infrastructure
  • Status changed from New to Accepted
  • Target version set to 2.01.00
  • SSI Package art added
  • SSI Package deleted ()

Estimated time will be added following preliminary reproduction and analysis of the problem.

#2 Updated by Kyle Knoepfel over 3 years ago

  • Target version changed from 2.01.00 to Vega

#3 Updated by Kyle Knoepfel over 1 year ago

  • Target version changed from Vega to Capella


Also available in: Atom PDF