-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SL23f crash in StFstRawHitMaker #631
Comments
I should also note I'm running in 32-bit mode, and I get the crash in either optimized or not. I've put a valgrind report here: There are some invalid reads just before the crash (search for |
Run numbers marked |
Hi gene, thanks for this info. I will work on this and also get the FST grip on it. Btw we are working on QA. |
I'm not sure this is any additional help, but seeing nothing else reported here, I re-ran valgrind with |
Hi Gene and Daniel, thanks for finding this issue and the infos. I have made a pull request to fix this. It is due to the inconsistent number of time bins between data and the codes. Just change the corresponding constant number will fix this issue. |
Issue #631 was due to an inconsistent number of time bins used in the data and the codes. In most FST data and in the codes, we used 3 time bins, while some data used 9 time bins. Only changing a constant in `StRoot/StEvent/StFstConsts.h` is needed to fix this issue. Co-authored-by: Te-Chuan Huang <[email protected]>
resolved by #634 |
Issue #631 was due to an inconsistent number of time bins used in the data and the codes. In most FST data and in the codes, we used 3 time bins, while some data used 9 time bins. Only changing a constant in `StRoot/StEvent/StFstConsts.h` is needed to fix this issue. Co-authored-by: Te-Chuan Huang <[email protected]>
Issue star-bnl#631 was due to an inconsistent number of time bins used in the data and the codes. In most FST data and in the codes, we used 3 time bins, while some data used 9 time bins. Only changing a constant in `StRoot/StEvent/StFstConsts.h` is needed to fix this issue. Co-authored-by: Te-Chuan Huang <[email protected]>
This doesn't crash for all DAQ files, but it does for some. Here is a crashing chain to try:
I ran in the debugger and got this....
....followed by a long backtrace. I'm not sure why it mentions
/tmp/smirnovd
in here:(gdb) where
#0 0xf7fdb425 in __kernel_vsyscall ()
#1 0xf4f1e1f7 in raise () from /lib/libc.so.6
#2 0xf4f1fa33 in abort () from /lib/libc.so.6
#3 0xf4f5d5e5 in __libc_message () from /lib/libc.so.6
#4 0xf4f66a03 in _int_malloc () from /lib/libc.so.6
#5 0xf4f6818a in malloc () from /lib/libc.so.6
#6 0xf5113b27 in operator new(unsigned int) () from /lib/libstdc++.so.6
#7 0xf7dd48dd in TStorage::ObjectAlloc (sz=52)
at /tmp/smirnovd/spack-stage/spack-stage-root-5.34.38-fta7antlmbz65avo4vw6tf7xsbtghfc4/spack-src/core/base/src/TStorage.cxx:325
#8 0x0808df27 in TObject::operator new (sz=52)
at /cvmfs/star.sdcc.bnl.gov/star-spack/spack/opt/spack/linux-rhel7-x86/gcc-4.8.5/root-5.34.38-fta7antlmbz65avo4vw6tf7xsbtghfc4/include/TObject.h:156
#9 0xeaca52af in StFstRawHitCollection::getRawHit (this=0xf050794, elecId=76) at .sl73_gcc485/obj/StRoot/StFstUtil/StFstRawHitCollection.cxx:120
#10 0xe927ce6c in StFstRawHitMaker::FillRawHitCollectionFromAPVData (this=0xf050460, dataFlag=2 '\002', ntimebin=9, counterAdcPerRgroupPerEvent=0xfffca198,
sumAdcPerRgroupPerEvent=0xfffca1f8, apvElecId=0, signalUnCorrected=..., signalCorrected=..., seedFlag=..., idTruth=...)
at .sl73_gcc485/obj/StRoot/StFstRawHitMaker/StFstRawHitMaker.cxx:565
Curiously, gdb can't seem to find the source code unless it is present locally. Doing so, I find...
#9 0xeaca52af in StFstRawHitCollection::getRawHit (this=0xf050534, elecId=75) at .sl73_gcc485/obj/StRoot/StFstUtil/StFstRawHitCollection.cxx:120
120 rawHitPtr = new StFstRawHit();
I'll try running in valgrind, but if someone else knows immediately what's wrong, please chime in.
-Gene
The text was updated successfully, but these errors were encountered: