Project

General

Profile

Bug #1183

Segmentation violation, when input is JSON with JobHeader or RunHeader, and output is ROOT format

Added by Taylor, Ian almost 11 years ago. Updated over 9 years ago.

Status:
Open
Priority:
Normal
Assignee:
Category:
common_cpp
Target version:
Start date:
04 December 2012
Due date:
% Done:

0%

Estimated time:
Workflow:
New Issue

Description

The code fails when I try and process an input JSON file with ROOT output. Specifically, it fails at Write time, when it attempts to write the JobHeader or RunHeader from the input file.

If I remove the offending lines from the input JSON, then it runs okay. This was tested with the current trunk.

I have attached two scripts and two datacards, which will reproduce the problem with minimal effort.


Files

run_1.py (1.98 KB) run_1.py Taylor, Ian, 04 December 2012 12:01
datacard_1 (3.84 KB) datacard_1 Taylor, Ian, 04 December 2012 12:01
run_2.py (1.14 KB) run_2.py Taylor, Ian, 04 December 2012 12:01
datacard_2 (1.56 KB) datacard_2 Taylor, Ian, 04 December 2012 12:01
valgrind.log (503 KB) valgrind.log Rogers, Chris, 19 June 2014 14:18
#1

Updated by Dobbs, Adam over 10 years ago

I see something similar. When I attempt to modify events in order to 'fake' multiple particles per event, either by directly editing the JSON, or through the C++ classes, I see a segmentation fault which seems to be caused by the Job Header.

#2

Updated by Rogers, Chris over 9 years ago

I ran

valgrind python run_1.py --configuration_file datacard_1 >& valgrind.log

and got attached output. I think this is what I was supposed to do to reproduce this bug? Anyway, I don't see any issue. Is this still relevant?

Also available in: Atom PDF