OK, I have looked at this and found your problem. Your command, ./getDataRunNumbers -b 13690 -e 13762 goes through run 13696 which doesn't exist. Although I wonder how much insight is gained by selecting runs that don't exist, I have put in protections in the selection of beam conditions for runs that don't exist. It returns zeroes and spaces just like when the run is too early or the time difference between the first available beam condition and the start of the run of interest is too long. Simply stated, I keep it from crashing even if you are interested in a run that doesn't exist. I also took out the warning messages because I think people don't like them. If you use the beam conditions, it will be up to you to insure that you have a valid run. I have committed these modifications to the repository. Kris flemming videbaek wrote: >Part of the issue is that the run conditions being looked up i.e. the store >number, start oif store ... > was only >introduced this year as beeing stored. there should probably be a test >wheter or not to return >this info. The segmantation fault may well come from lack of releasing >'mysql' records. >The calibration DB had that problem from start, and was fixed at a later >time. > >I hope Kris can take a look at this; he developed the code at my request > >cheers > Flemming > >---------------------------------------------------------------- >Flemming Videbaek >Physics Department >Brookhaven National Laboratory > >e-mail: videbaek@bnl.gov >phone: 631-344-4106 >----- Original Message ----- >From: "trulsml" <trulsml@nbi.dk> >To: "Brahms Devel List" <brahms-dev-l@lists.bnl.gov> >Sent: Wednesday, May 11, 2005 6:57 AM >Subject: [Brahms-dev-l] brat 2-25-10 vs 2-25-8 > > >Hi, > >there is really something strange introduced in the BrRunInfo classes. >Is meantioned a couple of days ago. > >Try running the attached file with brat 2-25-10 and 2-25-8, giving the >command: > >./getDataRunNumbers -b 13690 -e 13762 > > >with 2-25-10 it crashes: > *-------------------------------------------* > * DumpRunNumbers for: data >*-------------------------------------------* >Warning in <BrRunInfo::Update>: Closest yellow beam condition is > 15925 >hour(s); too long; Returning zeros and spaces >Warning in <BrRunInfo::Update>: Closest blue beam condition is > 15925 >hours; too long; Returning zeros and spaces >--->Run 13690 with 16 seqs. MRS@90deg ( 700A) FFS@4.0deg (1219A) >(BFS@4.0) MRS Quality: Good FS Quality: Good >Warning in <BrRunInfo::Update>: Closest yellow beam condition is > 15928 >hour(s); too long; Returning zeros and spaces >Warning in <BrRunInfo::Update>: Closest blue beam condition is > 15928 >hours; too long; Returning zeros and spaces >Warning in <BrRunInfo::Update>: Closest yellow beam condition is > 15928 >hour(s); too long; Returning zeros and spaces >Warning in <BrRunInfo::Update>: Closest blue beam condition is > 15928 >hours; too long; Returning zeros and spaces >Warning in <BrRunInfo::Update>: Closest yellow beam condition is > 15929 >hour(s); too long; Returning zeros and spaces >Warning in <BrRunInfo::Update>: Closest blue beam condition is > 15929 >hours; too long; Returning zeros and spaces > Run 13693 with 9 seqs. MRS@90deg ( 700A) FFS@4.0deg (1219A) >(BFS@4.0) MRS Quality: Good FS Quality: Good >Warning in <BrRunInfo::Update>: Closest yellow beam condition is > 15930 >hour(s); too long; Returning zeros and spaces >Warning in <BrRunInfo::Update>: Closest blue beam condition is > 15930 >hours; too long; Returning zeros and spaces > Run 13694 with 8 seqs. MRS@90deg ( 700A) FFS@4.0deg (1219A) >(BFS@4.0) MRS Quality: Good FS Quality: Good >Warning in <BrRunInfo::Update>: Closest yellow beam condition is > 15931 >hour(s); too long; Returning zeros and spaces >Warning in <BrRunInfo::Update>: Closest blue beam condition is > 15931 >hours; too long; Returning zeros and spaces > Run 13695 with 6 seqs. MRS@90deg ( 700A) FFS@4.0deg (1219A) >(BFS@4.0) MRS Quality: Good FS Quality: Good >Warning in <BrRdbmDb::GetSingle>: Too many or too few matches on query >SELECT * FROM Runs WHERE RunNo = 13696: 0 >Warning in <BrRdbmDb::GetSingle>: Too many or too few matches on query >SELECT * FROM Runs WHERE RunNo = 13696: 0 > > *** Break *** segmentation violation > Generating stack trace... > 0x002ce72b in BrRunInfo::Update(int) at >/home/brahmlib/brat/db/run/BrRunInfo.cxx:110 from >/afs/rhic.bnl.gov/opt/brahms/new/lib/libBratDb.so.2 > 0x002d2020 in BrRunInfoManager::Update() at >/home/brahmlib/brat/db/run/BrRunInfoManager.cxx:121 from >/afs/rhic.bnl.gov/opt/brahms/new/lib/libBratDb.so.2 0x0804b598 in main + >0xff2 from ./getDataRunNumbers > 0x01d7179d in __libc_start_main + 0xed from /lib/tls/libc.so.6 > 0x0804a4dd in std::ios_base::Init::~Init() + 0x31 from >./getDataRunNumbers >Abort (core dumped) > >(tested on the bramreco account: >~bramreco/DataProduction/run05/calibTPC/getRunNumbers/) > >with 2-25-8 it works: > > *-------------------------------------------* > * DumpRunNumbers for: data >*-------------------------------------------* >--->Run 13690 with 16 seqs. MRS@90deg ( 700A) FFS@4.0deg (1219A) >(BFS@4.0) MRS Quality: Good FS Quality: Good > Run 13693 with 9 seqs. MRS@90deg ( 700A) FFS@4.0deg (1219A) >(BFS@4.0) MRS Quality: Good FS Quality: Good > Run 13694 with 8 seqs. MRS@90deg ( 700A) FFS@4.0deg (1219A) >(BFS@4.0) MRS Quality: Good FS Quality: Good > Run 13695 with 6 seqs. MRS@90deg ( 700A) FFS@4.0deg (1219A) >(BFS@4.0) MRS Quality: Good FS Quality: Good >Warning in <BrRdbmDb::GetSingle>: Too many or too few matches on query >SELECT * FROM Runs WHERE RunNo = 13696: 0 >Warning in <BrRdbmDb::GetSingle>: Too many or too few matches on query >SELECT * FROM Runs WHERE RunNo = 13697: 0 > Run 13698 with 8 seqs. MRS@90deg ( 700A) FFS@4.0deg (1219B) >(BFS@4.0) MRS Quality: Good FS Quality: Good > Run 13701 with 2 seqs. MRS@90deg ( 700A) FFS@4.0deg (1219B) >(BFS@4.0) MRS Quality: Good FS Quality: Good >--->Run 13702 with 9 seqs. MRS@90deg ( 700A) FFS@4.0deg (1219B) >(BFS@4.0) MRS Quality: Good FS Quality: Good > Run 13703 with 8 seqs. MRS@90deg ( 700A) FFS@4.0deg (1219B) >(BFS@4.0) MRS Quality: Good FS Quality: Good > Run 13704 with 9 seqs. MRS@90deg ( 700A) FFS@4.0deg (1219B) >(BFS@4.0) MRS Quality: Good FS Quality: Good > Run 13705 with 7 seqs. MRS@90deg ( 700A) FFS@4.0deg (1219B) >(BFS@4.0) MRS Quality: Good FS Quality: Good > Run 13707 with 1 seqs. MRS@90deg ( 700A) FFS@3.0deg (1723B) >(BFS@3.0) MRS Quality: Good FS Quality: Good > Run 13708 with 1 seqs. MRS@90deg ( 700A) FFS@3.0deg (1723B) >(BFS@3.0) MRS Quality: Good FS Quality: Good > Run 13709 with 0 seqs. MRS@90deg ( 700A) FFS@3.0deg (1723B) >(BFS@3.0) MRS Quality: Good FS Quality: Good > Run 13710 with 1 seqs. MRS@90deg ( 700A) FFS@3.0deg (1723B) >(BFS@3.0) MRS Quality: Good FS Quality: Good > Run 13712 with 1 seqs. MRS@90deg ( 700A) FFS@3.0deg (1723B) >(BFS@3.0) MRS Quality: Good FS Quality: Good >Warning in <BrRdbmDb::GetSingle>: Too many or too few matches on query >SELECT * FROM Runs WHERE RunNo = 13713: 0 > Run 13716 with 0 seqs. MRS@90deg ( 700A) FFS@3.0deg (1723B) >(BFS@3.0) MRS Quality: Good FS Quality: Good >Warning in <BrRdbmDb::GetSingle>: Too many or too few matches on query >SELECT * FROM Runs WHERE RunNo = 13718: 0 >Warning in <BrRdbmDb::GetSingle>: Too many or too few matches on query >SELECT * FROM Runs WHERE RunNo = 13721: 0 >Warning in <BrRdbmDb::GetSingle>: Too many or too few matches on query >SELECT * FROM Runs WHERE RunNo = 13725: 0 >Warning in <BrRdbmDb::GetSingle>: Too many or too few matches on query >SELECT * FROM Runs WHERE RunNo = 13726: 0 >--->Run 13731 with 3 seqs. MRS@90deg ( 700A) FFS@3.0deg (1723B) >(BFS@3.0) MRS Quality: Good FS Quality: Good >Warning in <BrRdbmDb::GetSingle>: Too many or too few matches on query >SELECT * FROM Runs WHERE RunNo = 13732: 0 > Run 13733 with 0 seqs. MRS@90deg ( 700A) FFS@3.0deg (1723B) >(BFS@3.0) MRS Quality: Good FS Quality: Good >Warning in <BrRdbmDb::GetSingle>: Too many or too few matches on query >SELECT * FROM Runs WHERE RunNo = 13736: 0 >Warning in <BrRdbmDb::GetSingle>: Too many or too few matches on query >SELECT * FROM Runs WHERE RunNo = 13740: 0 > Run 13743 with 1 seqs. MRS@90deg ( 700A) FFS@3.0deg (1723B) >(BFS@3.0) MRS Quality: Good FS Quality: Good > Run 13744 with 0 seqs. MRS@90deg ( 700A) FFS@3.0deg (1723B) >(BFS@3.0) MRS Quality: Good FS Quality: Good > Run 13745 with 0 seqs. MRS@90deg ( 700A) FFS@3.0deg (1723B) >(BFS@3.0) MRS Quality: Good FS Quality: Good >Warning in <BrRdbmDb::GetSingle>: Too many or too few matches on query >SELECT * FROM Runs WHERE RunNo = 13746: 0 >Warning in <BrRdbmDb::GetSingle>: Too many or too few matches on query >SELECT * FROM Runs WHERE RunNo = 13751: 0 > Run 13753 with 5 seqs. MRS@90deg ( 700A) FFS@3.0deg (1723B) >(BFS@3.0) MRS Quality: Good FS Quality: Good >--->Run 13754 with 2 seqs. MRS@90deg ( 700A) FFS@3.0deg (1723B) >(BFS@3.0) MRS Quality: Good FS Quality: Good > Run 13755 with 20 seqs. MRS@90deg ( 700A) FFS@3.0deg (1723B) >(BFS@3.0) MRS Quality: Good FS Quality: Good > Run 13756 with 7 seqs. MRS@90deg ( 700B) FFS@3.0deg (1723A) >(BFS@3.0) MRS Quality: Good FS Quality: Good > Run 13757 with 10 seqs. MRS@90deg ( 700B) FFS@3.0deg (1723A) >(BFS@3.0) MRS Quality: Good FS Quality: Good > Run 13760 with 11 seqs. MRS@90deg ( 700B) FFS@3.0deg (1723A) >(BFS@3.0) MRS Quality: Good FS Quality: Good > Run 13761 with 8 seqs. MRS@90deg ( 700B) FFS@3.0deg (1723A) >(BFS@3.0) MRS Quality: Good FS Quality: Good >--->Run 13762 with 8 seqs. MRS@90deg ( 700B) FFS@3.0deg (1723A) >(BFS@3.0) MRS Quality: Good FS Quality: Good >Suggest 5 runs for calibrations all marked with: --> > >(tested with a private brat version: 2-25-8 ....) > > >Maybe this can give the DB experts a clue to the crashes... > >(And I'm not referring to the tons of new Warnings about beam conditions >you get in 2-25-10. Why is this searched for in CuCu data? Is not that >only related to pp???) > >Regards, >Truls > >*-----------------------------* >|http://www.nbi.dk/~trulsml / >|Truls Martin Larsen / >|trulsml@nbi.dk . >|The Niels Bohr Institute // >|Work Address: / \0 >|Blegdamsvej 17 /\_/ >|DK-2100 Copenhagen / / >|Tel: +45 35325269 / -- >| /_/ | >|Home address: / \ >|Ingerslevsgade | ' >|146, 1. TH | >|1705 København V | >|Denmark | >|Mob: +45 20974802 | >*------------------* > > >---------------------------------------------------------------------------- >---- > > > > >>_______________________________________________ >>Brahms-dev-l mailing list >>Brahms-dev-l@lists.bnl.gov >>http://lists.bnl.gov/mailman/listinfo/brahms-dev-l >> >> >> > > >_______________________________________________ >Brahms-dev-l mailing list >Brahms-dev-l@lists.bnl.gov >http://lists.bnl.gov/mailman/listinfo/brahms-dev-l > > > _______________________________________________ Brahms-dev-l mailing list Brahms-dev-l@lists.bnl.gov http://lists.bnl.gov/mailman/listinfo/brahms-dev-lReceived on Wed May 11 11:16:58 2005
This archive was generated by hypermail 2.1.8 : Wed May 11 2005 - 11:17:08 EDT