Project

General

Profile

Bug #17403

Undesirable conversion of +ve integer to -ve in FHiCL array parameter

Added by Martin Haigh about 2 years ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Normal
Category:
artdaq-database
Target version:
-
Start date:
08/08/2017
Due date:
% Done:

0%

Estimated time:
Experiment:
DUNE
Co-Assignees:
Duration:

Description

When committing FHiCL file to the DB, 32 bit positive ints with the top bit set high are converted to negative (this is a problem with array parameters where reading back into a vector of uint in user code fails). This seems to me to be undesirable behaviour.

See, e.g., the file common_code/ssp_standard in the configuration sspEmulator00019, where an element of the parameter ARR_pdts_cmd_control was set to 0x80000FFF before importing, but is converted by the database to -2147483648. The same behaviour is observed when the value is written in decimal rather than hex.


Related issues

Related to artdaq Utilities - Bug #17425: FHiCL numerical parameters truncated by DB!Resolved08/10/2017

History

#1 Updated by Martin Haigh about 2 years ago

Clarification: I am talking about a configuration in the DB for the CERN test stand for protoDUNE.

#2 Updated by John Freeman about 2 years ago

To reproduce this error, log into pddaq-gen05-daq0 from lxplus.cern.ch as usual, and then do the following:

cd /daq/artdaq
source setup_database.sh
tmpdir1=$PWD/$( uuidgen ) 
mkdir $tmpdir1
cd $tmpdir1
conftool.py exportConfiguration sspEmulator00025
sed -r -i 's/BEGIN_PROLOG/BEGIN_PROLOG\nissuetest: 0xFFFFFFFF/' common_code/ssp_standard.fcl 
conftool.py importConfiguration sspEmulator
cd ..
tmpdir2=$PWD/$( uuidgen ) 
mkdir $tmpdir2
cd $tmpdir2
conftool.py exportConfiguration <name of sspEmulator configuration which was just imported>
cd ..
diff -r $tmpdir1 $tmpdir2

#3 Updated by Gennadiy Lukhanin about 2 years ago

  • Related to Bug #17425: FHiCL numerical parameters truncated by DB! added

#4 Updated by Gennadiy Lukhanin about 1 year ago

  • Status changed from New to Resolved

Fixed in the version v1_04_46 of artdaq_database.



Also available in: Atom PDF