[Halld-offline] Calibration exception -- missing file for magnetic field?
Matthew Shepherd
mashephe at indiana.edu
Thu Mar 6 12:44:20 EST 2014
Hi David,
So I finally got around to trying to get this code running for my student but still no luck...
We upgraded to jana_0.7.1p1 and ccdb_0.09 then tried to build the sim-recon-dc-2.2 tagged release.
(By the way is there anything special about the dc releases? Are the just like ordinary tagged releases with a different naming scheme? I noticed in the RELEASE that the last dated tag version uses older jana and ccdb.)
First we got caught by the fact that the installation scheme for JANA is now different. I remember now this was announced. We read the directions and ran the setenv script in the JANA install.
There also seems to be some collisions between the gluex env setup that is in build_scripts and the JANA setup. It is not clear what to set where. I tried for example to set the JANA_CALIB_URL based on CCDB_CONNECTION to point to the sqlite file downloaded from the link on Wiki, but found it was overwritten by one of the scripts. (This may be due to the fact that we didn't svn update in build_scripts.) So I had to set it at the very end of .tcshrc.
Anyway... after about 50 minutes we finally got everything compiled. (The compile itself went well thanks to scons and a 12-core machine).
However, trying to run hdview2 on a file then generated a segfault. The stack trace and environment is attached. Do you have any ideas on how to debug further?
Matt
JANA >>Opening source "pions_1gev_smeared.hddm" of type: HDDM
JANA >>Creating DGeometry:
JANA >> Run requested:9999 found:9999
JANA >> Run validity range: 9999-9999
JANA >> URL="xmlfile:///home/s4/zacqjone/gluex/svn/hdds/prod/main_HDDS.xml" context="default"
JANA >> Type="JGeometryXML"
Reading preferences from "/s4/zacqjone/.hdview2" ...
===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
Thread 2 (Thread 0x7f3d57684700 (LWP 5173)):
#0 0x0000003d9980b43c in pthread_cond_wait
GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1 0x00000000005c76c3 in jana::JApplication::EventBufferThread() ()
#2 0x00000000005c7849 in LaunchEventBufferThread(void*) ()
#3 0x0000003d99807851 in start_thread () from /lib64/libpthread.so.0
#4 0x0000003d98ce811d in clone () from /lib64/libc.so.6
Thread 1 (Thread 0x7f3d57d947e0 (LWP 5166)):
#0 0x0000003d98cabfdd in waitpid () from /lib64/libc.so.6
#1 0x0000003d98c3e899 in do_system () from /lib64/libc.so.6
#2 0x0000003d98c3ebd0 in system () from /lib64/libc.so.6
#3 0x00007f3d5cd409b8 in TUnixSystem::StackTrace() () from /usr/local/root_v5.34/lib/libCore.so
#4 0x00007f3d5cd3f4b3 in TUnixSystem::DispatchSignals(ESignals) () from /usr/local/root_v5.34/lib/libCore.so
#5 <signal handler called>
#6 0x0000003d98f8ee80 in main_arena () from /lib64/libc.so.6
#7 0x00007f3d58120fcf in ccdb::Calibration::GetCalib (this=0x7fffdd631e40, values=std::vector of length -34975351016872, capacity -34973215129772 = {...}, namepath=Traceback (most recent call last):
header = ptr.cast(reptype) - 1
#8 0x00000000005d0abc in jana::JCalibrationGeneratorCCDB::MakeJCalibration(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >) ()
#9 0x00000000005c32a5 in jana::JApplication::GetJCalibration(unsigned int) ()
#10 0x000000000096babf in DMagneticFieldMapFineMesh::DMagneticFieldMapFineMesh(jana::JApplication*, unsigned int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >) ()
#11 0x00000000005ff351 in DApplication::GetBfield(unsigned int) ()
#12 0x000000000055d54a in MyProcessor::brun(jana::JEventLoop*, int) ()
#13 0x00000000005e5a3c in jana::JEventLoop::OneEvent() ()
#14 0x0000000000531645 in main ()
===========================================================
The lines below might hint at the cause of the crash.
If they do not help you then please submit a bug report at
http://root.cern.ch/bugs. Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
===========================================================
#6 0x0000003d98f8ee80 in main_arena () from /lib64/libc.so.6
#7 0x00007f3d58120fcf in ccdb::Calibration::GetCalib (this=0x7fffdd631e40, values=std::vector of length -34975351016872, capacity -34973215129772 = {...}, namepath=Traceback (most recent call last):
header = ptr.cast(reptype) - 1
#8 0x00000000005d0abc in jana::JCalibrationGeneratorCCDB::MakeJCalibration(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >) ()
#9 0x00000000005c32a5 in jana::JApplication::GetJCalibration(unsigned int) ()
#10 0x000000000096babf in DMagneticFieldMapFineMesh::DMagneticFieldMapFineMesh(jana::JApplication*, unsigned int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >) ()
#11 0x00000000005ff351 in DApplication::GetBfield(unsigned int) ()
#12 0x000000000055d54a in MyProcessor::brun(jana::JEventLoop*, int) ()
#13 0x00000000005e5a3c in jana::JEventLoop::OneEvent() ()
#14 0x0000000000531645 in main ()
===========================================================
LANG=en_US.UTF-8
USER=zacqjone
LOGNAME=zacqjone
HOME=/s4/zacqjone
PATH=/home/s4/zacqjone/gluex/svn/ccdb/prod/bin:/home/s4/zacqjone/gluex/my_src/bin/Linux_CentOS6-x86_64-gcc4.4.6:/home/s4/zacqjone/gluex/svn/sim-recon/prod/bin/Linux_CentOS6-x86_64-gcc4.4.6:/usr/local/cern/2005/bin:/usr/local/root_v5.34/bin:/s4/zacqjone/bin:/share/apps/xerces/xerces-c-3.1.1/bin:/usr/local/root_v5.34/bin:/home/s4/zacqjone/gluex/svn/ccdb/prod/bin:/home/fs1/zacqjone/gluex/svn/jana/jana_0.7.1p1/Linux_CentOS6-x86_64-gcc4.4.6/bin:/opt/openmpi/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/opt/ganglia/bin:/opt/ganglia/sbin:/usr/java/latest/bin:/opt/rocks/bin:/opt/gridengine/bin/linux-x64
MAIL=/var/spool/mail/zacqjone
SHELL=/bin/tcsh
SSH_CLIENT=149.160.132.169 57186 22
SSH_CONNECTION=149.160.132.169 57186 129.79.157.143 22
SSH_TTY=/dev/pts/2
TERM=xterm
DISPLAY=localhost:12.0
HOSTTYPE=x86_64-linux
VENDOR=unknown
OSTYPE=linux
MACHTYPE=x86_64
SHLVL=1
PWD=/s4/zacqjone/gluex/pion_1gev
GROUP=zacqjone
HOST=stanley.physics.indiana.edu
REMOTEHOST=149-160-132-169.dhcp-bl.indiana.edu
HOSTNAME=stanley.physics.indiana.edu
ANT_HOME=/opt/rocks
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.tbz=01;31:*.tbz2=01;31:*.bz=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:
G_BROKEN_FILENAMES=1
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
JAVA_HOME=/usr/java/latest
LESSOPEN=|/usr/bin/lesspipe.sh %s
MODULESHOME=/usr/share/Modules
MODULEPATH=/usr/share/Modules/modulefiles:/etc/modulefiles
LOADEDMODULES=rocks-openmpi
QTDIR=/usr/lib64/qt-3.3
QTINC=/usr/lib64/qt-3.3/include
QTLIB=/usr/lib64/qt-3.3/lib
ROCKS_ROOT=/opt/rocks
ROCKSROOT=/opt/rocks/share/devel
ROLLSROOT=/opt/rocks/share/devel/src/roll
LD_LIBRARY_PATH=/home/s4/zacqjone/gluex/svn/ccdb/prod/lib:/share/apps/xerces/xerces-c-3.1.1/lib:/usr/local/root_v5.34/lib:/usr/local/CLHEP-2.1.3.1/x86_64-slc6-gcc47-opt/lib
MPIHOME=/opt/openmpi
OMPI_MCA_btl=tcp,self
_LMFILES_=/usr/share/Modules/modulefiles/rocks-openmpi
SGE_ROOT=/opt/gridengine
SGE_ARCH=linux-x64
SGE_CELL=default
SGE_QMASTER_PORT=536
SGE_EXECD_PORT=537
MPICH_PROCESS_GROUP=no
OSNAME=Linux
BMS_OSNAME=Linux_CentOS6-x86_64-gcc4.4.6
UNAME=Linux
CERN=/usr/local/cern
CERN_LEVEL=2005
CERN_ROOT=/usr/local/cern/2005
CERNLIBDIR=/usr/local/cern/2005/lib
ROOTSYS=/usr/local/root_v5.34
HALLD_MY=/home/s4/zacqjone/gluex/my_src
GLUEX_TOP=/home/s4/zacqjone/gluex/svn
CCDB_HOME=/home/s4/zacqjone/gluex/svn/ccdb/prod
JANA_HOME=/home/fs1/zacqjone/gluex/svn/jana/jana_0.7.1p1/Linux_CentOS6-x86_64-gcc4.4.6
JANA_CALIB_URL=sqlite:////home/s4/zacqjone/gluex/ccdb.sqlite
JANA_PLUGIN_PATH=/home/fs1/zacqjone/gluex/svn/jana/jana_0.7.1p1/Linux_CentOS6-x86_64-gcc4.4.6/plugins
PYTHONPATH=/home/s4/zacqjone/gluex/svn/ccdb/prod/python:/home/s4/zacqjone/gluex/svn/ccdb/prod/python/ccdb/ccdb_pyllapi/:/home/s4/zacqjone/gluex/svn/ccdb/prod/python:/home/s4/zacqjone/gluex/svn/ccdb/prod/python/ccdb/ccdb_pyllapi/
CCDB_CONNECTION=sqlite:////home/s4/zacqjone/gluex/ccdb.sqlite
XERCESCROOT=/share/apps/xerces/xerces-c-3.1.1
JANA_GEOMETRY_URL=xmlfile:///home/s4/zacqjone/gluex/svn/hdds/prod/main_HDDS.xml
CLHEP=/usr/local/CLHEP-2.1.3.1/x86_64-slc6-gcc47-opt
CLHEP_INCLUDE_DIR=/usr/local/CLHEP-2.1.3.1/x86_64-slc6-gcc47-opt/include
CLHEP_LIB_DIR=/usr/local/CLHEP-2.1.3.1/x86_64-slc6-gcc47-opt/lib
BUILD_SCRIPTS=/home/s4/zacqjone/gluex/svn/build_scripts
XERCES_INCLUDE=/share/apps/xerces/xerces-c-3.1.1/include
CLHEP_INCLUDE=/usr/local/CLHEP-2.1.3.1/x86_64-slc6-gcc47-opt/include
CLHEP_LIB=/usr/local/CLHEP-2.1.3.1/x86_64-slc6-gcc47-opt/lib
HDDS_HOME=/home/s4/zacqjone/gluex/svn/hdds/prod
HALLD_HOME=/home/s4/zacqjone/gluex/svn/sim-recon/prod
---------------------------------------------------------------------
Matthew Shepherd, Associate Professor
Department of Physics, Indiana University, Swain West 265
727 East Third Street, Bloomington, IN 47405
Office Phone: +1 812 856 5808
On Feb 25, 2014, at 2:47 PM, David Lawrence <davidl at jlab.org> wrote:
>
> Hi Matt,
>
> The flat files that we kept in the repository for the calibration constants have not been kept up for some time. You now have to get the constants from the CCDB either via SQLite file (recommended for your current use case) or MySQL. An SQLite file is generated every night now from the MySQL database. These can be found on the JLab CUE here:
>
> /group/halld/Software/calib/ccdb_sqlite
>
> Download a recent file and set your JANA_CALIB_URL environment variable to something like:
>
> setenv JANA_CALIB_URL sqlite:////path/to/ccdb_2014-02-21.sqlite
>
> (note the four “/‘)
>
> You will have to download a new SQLite file occasionally. If you point to the MySQL DB at JLab, you will always be up-to-date, but will have a slower startup due to the long distance network access.
>
> Regards,
> -David
More information about the Halld-offline
mailing list