From 32234851c149ca1b8709aa2f47ec1b0012301afb Mon Sep 17 00:00:00 2001 From: Wouter Deconinck Date: Fri, 1 Dec 2017 15:12:35 -0500 Subject: [PATCH] Fix for TMD5-caused crash on ifarm (#50) * Fix for TMD5-caused crash on ifarm --- src/remollGlobalField.cc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/remollGlobalField.cc b/src/remollGlobalField.cc index 1bfc6a64a..8f37d62f5 100644 --- a/src/remollGlobalField.cc +++ b/src/remollGlobalField.cc @@ -52,16 +52,19 @@ void remollGlobalField::AddNewField(G4String& name) remollRunData *rd = remollRun::GetRunData(); - TMD5 *md5 = TMD5::FileChecksum(name.data()); + // FIXME disabled TMD5 functionality as long as CentOS 7.2 is common + // due to kernel bug when running singularity containers + + //TMD5 *md5 = TMD5::FileChecksum(name.data()); filedata_t fdata; strcpy(fdata.filename, name.data()); - strcpy(fdata.hashsum, md5->AsString() ); + strcpy(fdata.hashsum, "no hash" ); // md5->AsString() ); - G4cout << "MD5 checksum " << md5->AsString() << G4endl; + //G4cout << "MD5 checksum " << md5->AsString() << G4endl; - delete md5; + //delete md5; struct stat fs; stat(name.data(), &fs);