Skip to content
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

ASAN build failure with GCC 11 #36480

Closed
makortel opened this issue Dec 13, 2021 · 17 comments
Closed

ASAN build failure with GCC 11 #36480

makortel opened this issue Dec 13, 2021 · 17 comments

Comments

@makortel
Copy link
Contributor

makortel commented Dec 13, 2021

It seems that ASAN IBs fail to build with GCC 11 (whereas the last GCC 10 build compiled fine). The errors are in the shared object link

>> Building  shared library tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/libFWCoreFramework.so
/data/cmsbld/jenkins/workspace/build-any-ib/w/slc7_amd64_gcc11/external/gcc/11.2.1-f478fee2760dbd22aaabb4e3a8fe1640/bin/c++ -O2 -pthread -pipe -Werror=main -Werror=pointer-arith -Werror=overlength-strings -Wno-vla -Werror=overflow -std=c++1z -ftree-vectorize -Wstrict-overflow -Werror=array-bounds -Werror=format-contains-nul -Werror=type-limits -fvisibility-inlines-hidden -fno-math-errno --param vect-max-version-for-alias-checks=50 -Xassembler --compress-debug-sections -msse3 -felide-constructors -fmessage-length=0 -Wall -Wno-non-template-friend -Wno-long-long -Wreturn-type -Wextra -Wpessimizing-move -Wclass-memaccess -Wno-cast-function-type -Wno-unused-but-set-parameter -Wno-ignored-qualifiers -Wno-deprecated-copy -Wno-unused-parameter -Wunused -Wparentheses -Wno-deprecated -Werror=return-type -Werror=missing-braces -Werror=unused-value -Werror=unused-label -Werror=address -Werror=format -Werror=sign-compare -Werror=write-strings -Werror=delete-non-virtual-dtor -Werror=strict-aliasing -Werror=narrowing -Werror=unused-but-set-variable -Werror=reorder -Werror=unused-variable -Werror=conversion-null -Werror=return-local-addr -Wnon-virtual-dtor -Werror=switch -fdiagnostics-show-option -Wno-unused-local-typedefs -Wno-attributes -Wno-psabi -Wno-error=unused-variable -DBOOST_DISABLE_ASSERTS -fno-omit-frame-pointer -fsanitize=address -fsanitize=pointer-compare -fsanitize=pointer-subtract -shared -Wl,-E -Wl,-z,defs tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/Breakpoints.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/ComponentMaker.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/ConsumesCollector.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/DataKey.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/DataKeyTags.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/DataProxy.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/DataProxyProvider.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/DelayedReader.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/DependentRecordIntervalFinder.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/EDAnalyzer.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/EDConsumerBase.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/EDFilter.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/EDLooper.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/EDLooperBase.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/EDProducer.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/ESHandle.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/ESHandleExceptionFactory.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/ESProducer.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/ESProducerLooper.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/ESProxyFactoryProducer.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/ESRecordsToProxyIndices.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/ESSourceDataProxyBase.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/ESTagGetter.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/ESValidHandle.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/EarlyDeleteHelper.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/EndPathStatusInserter.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/Event.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/EventForOutput.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/EventPrincipal.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/EventProcessor.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/EventSelector.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/EventSetupImpl.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/EventSetupProvider.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/EventSetupProviderMaker.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/EventSetupRecord.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/EventSetupRecordIOVQueue.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/EventSetupRecordImpl.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/EventSetupRecordIntervalFinder.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/EventSetupRecordKey.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/EventSetupRecordProvider.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/EventSetupsController.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/ExceptionActions.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/ExceptionHelpers.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/Factory.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/FileBlock.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/GenericHandle.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/GlobalSchedule.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/HCTypeTag.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/HistoryAppender.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/IOVSyncValue.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/InputSource.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/InputSourceFactory.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/IntersectingIOVRecordIntervalFinder.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/LooperFactory.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/LuminosityBlock.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/LuminosityBlockForOutput.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/LuminosityBlockPrincipal.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/LuminosityBlockProcessingStatus.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/MakeDataException.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/MergeableRunProductMetadata.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/MergeableRunProductProcesses.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/ModuleChanger.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/ModuleFactory.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/ModuleHolder.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/ModuleRegistry.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/NoDataException.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/NoRecordException.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/NumberOfConcurrentIOVs.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/OccurrenceForOutput.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/OutputModuleCommunicator.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/OutputModuleCommunicatorT.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/OutputModuleCore.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/Path.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/PathStatusInserter.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/PathsAndConsumesOfModules.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/Principal.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/PrincipalCache.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/PrincipalGetAdapter.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/ProcessBlock.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/ProcessBlockForOutput.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/ProcessBlockPrincipal.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/ProcessingController.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/ProducerBase.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/ProducesCollector.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/ProductDeletedException.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/ProductProvenanceRetriever.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/ProductRegistryHelper.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/ProductResolverBase.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/ProductResolvers.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/ProductSelector.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/ProductSelectorRules.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/RecordDependencyRegister.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/Run.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/RunForOutput.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/RunPrincipal.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/Schedule.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/ScheduleInfo.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/ScheduleItems.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/SharedResourcesRegistry.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/SignallingProductRegistry.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/SourceFactory.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/StreamSchedule.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/SubProcess.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/SynchronousEventSetupsController.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/SystemTimeKeeper.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/TriggerNamesService.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/TriggerResultInserter.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/TriggerResultsBasedEventSelector.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/UnscheduledAuxiliary.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/ValidityInterval.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/Worker.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/WorkerInPath.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/WorkerMaker.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/WorkerManager.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/WorkerRegistry.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/WorkerT.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/defaultCmsRunServices.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/edmodule_mightGet_config.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/exceptionContext.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/getAllTriggerNames.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/getProducerParameterSet.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/insertSelectedProcesses.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/processBlockUtilities.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/global/EDAnalyzerBase.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/global/EDFilterBase.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/global/EDProducerBase.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/global/OutputModuleBase.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/global/analyzerImplementors.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/global/filterImplementors.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/global/outputmoduleImplementors.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/global/producerImplementors.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/limited/EDAnalyzerBase.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/limited/EDFilterBase.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/limited/EDProducerBase.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/limited/OutputModuleBase.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/limited/analyzerImplementors.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/limited/filterImplementors.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/limited/outputmoduleImplementors.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/limited/producerImplementors.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/one/EDAnalyzerBase.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/one/EDFilterBase.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/one/EDProducerBase.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/one/OutputModuleBase.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/one/analyzerImplementors.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/one/filterImplementors.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/one/outputmoduleImplementors.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/one/producerImplementors.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/stream/EDAnalyzerAdaptorBase.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/stream/EDAnalyzerBase.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/stream/EDFilterAdaptorBase.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/stream/EDFilterBase.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/stream/EDProducerAdaptorBase.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/stream/EDProducerBase.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/stream/ProducingModuleAdaptorBase.cc.o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/stream/ProducingModuleHelper.cc.o -o tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/libFWCoreFramework.so -Wl,-E -Wl,--hash-style=gnu -L/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/801b531dabe40bce2db775beead67ad4/opt/cmssw/slc7_amd64_gcc11/cms/cmssw/CMSSW_12_3_ASAN_X_2021-12-10-2300/biglib/slc7_amd64_gcc11 -L/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/801b531dabe40bce2db775beead67ad4/opt/cmssw/slc7_amd64_gcc11/cms/cmssw/CMSSW_12_3_ASAN_X_2021-12-10-2300/lib/slc7_amd64_gcc11 -L/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/801b531dabe40bce2db775beead67ad4/opt/cmssw/slc7_amd64_gcc11/cms/cmssw/CMSSW_12_3_ASAN_X_2021-12-10-2300/external/slc7_amd64_gcc11/lib -L/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/801b531dabe40bce2db775beead67ad4/opt/cmssw/slc7_amd64_gcc11/cms/cmssw/CMSSW_12_3_ASAN_X_2021-12-10-2300/static/slc7_amd64_gcc11 -lFWCoreCommon -lFWCoreServiceRegistry -lDataFormatsCommon -lFWCoreParameterSet -lFWCoreMessageLogger -lDataFormatsProvenance -lFWCorePluginManager -lFWCoreReflection -lFWCoreConcurrency -lFWCoreUtilities -lFWCoreVersion -lTree -lNet -lThread -lMathCore -lRIO -lCore -lboost_thread -lboost_date_time -lpcre -lbz2 -luuid -ltbb -llzma -lz -lfmt -lcms-md5 -lcrypt -ldl -lrt -lstdc++fs -ltinyxml2
/data/cmsbld/jenkins/workspace/build-any-ib/w/slc7_amd64_gcc11/external/gcc/11.2.1-f478fee2760dbd22aaabb4e3a8fe1640/bin/../lib/gcc/x86_64-unknown-linux-gnu/11.2.1/../../../../x86_64-unknown-linux-gnu/bin/ld: tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/PathsAndConsumesOfModules.cc.o: in function `edm::checkForModuleDependencyCorrectness(edm::PathsAndConsumesOfModulesBase const&, bool)':
  PathsAndConsumesOfModules.cc:(.text+0x20596): undefined reference to `std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::_M_high_mark() const'
 collect2: error: ld returned 1 exit status
  gmake: *** [tmp/slc7_amd64_gcc11/src/FWCore/Framework/src/FWCoreFramework/libFWCoreFramework.so] Error 1

https://cmssdt.cern.ch/SDT/cgi-bin/buildlogs/slc7_amd64_gcc11/CMSSW_12_3_ASAN_X_2021-12-10-2300/FWCore/Framework

and

>> Building  shared library tmp/slc7_amd64_gcc11/src/L1Trigger/CSCTriggerPrimitives/src/L1TriggerCSCTriggerPrimitives/libL1TriggerCSCTriggerPrimitives.so
/data/cmsbld/jenkins/workspace/build-any-ib/w/slc7_amd64_gcc11/external/gcc/11.2.1-f478fee2760dbd22aaabb4e3a8fe1640/bin/c++ -O2 -pthread -pipe -Werror=main -Werror=pointer-arith -Werror=overlength-strings -Wno-vla -Werror=overflow -std=c++1z -ftree-vectorize -Wstrict-overflow -Werror=array-bounds -Werror=format-contains-nul -Werror=type-limits -fvisibility-inlines-hidden -fno-math-errno --param vect-max-version-for-alias-checks=50 -Xassembler --compress-debug-sections -msse3 -felide-constructors -fmessage-length=0 -Wall -Wno-non-template-friend -Wno-long-long -Wreturn-type -Wextra -Wpessimizing-move -Wclass-memaccess -Wno-cast-function-type -Wno-unused-but-set-parameter -Wno-ignored-qualifiers -Wno-deprecated-copy -Wno-unused-parameter -Wunused -Wparentheses -Wno-deprecated -Werror=return-type -Werror=missing-braces -Werror=unused-value -Werror=unused-label -Werror=address -Werror=format -Werror=sign-compare -Werror=write-strings -Werror=delete-non-virtual-dtor -Werror=strict-aliasing -Werror=narrowing -Werror=unused-but-set-variable -Werror=reorder -Werror=unused-variable -Werror=conversion-null -Werror=return-local-addr -Wnon-virtual-dtor -Werror=switch -fdiagnostics-show-option -Wno-unused-local-typedefs -Wno-attributes -Wno-psabi -Wno-error=unused-variable -DBOOST_DISABLE_ASSERTS -fno-omit-frame-pointer -fsanitize=address -fsanitize=pointer-compare -fsanitize=pointer-subtract -shared -Wl,-E -Wl,-z,defs tmp/slc7_amd64_gcc11/src/L1Trigger/CSCTriggerPrimitives/src/L1TriggerCSCTriggerPrimitives/CSCALCTCrossCLCT.cc.o tmp/slc7_amd64_gcc11/src/L1Trigger/CSCTriggerPrimitives/src/L1TriggerCSCTriggerPrimitives/CSCAnodeLCTProcessor.cc.o tmp/slc7_amd64_gcc11/src/L1Trigger/CSCTriggerPrimitives/src/L1TriggerCSCTriggerPrimitives/CSCBaseboard.cc.o tmp/slc7_amd64_gcc11/src/L1Trigger/CSCTriggerPrimitives/src/L1TriggerCSCTriggerPrimitives/CSCCathodeLCTProcessor.cc.o tmp/slc7_amd64_gcc11/src/L1Trigger/CSCTriggerPrimitives/src/L1TriggerCSCTriggerPrimitives/CSCGEMMatcher.cc.o tmp/slc7_amd64_gcc11/src/L1Trigger/CSCTriggerPrimitives/src/L1TriggerCSCTriggerPrimitives/CSCGEMMotherboard.cc.o tmp/slc7_amd64_gcc11/src/L1Trigger/CSCTriggerPrimitives/src/L1TriggerCSCTriggerPrimitives/CSCMotherboard.cc.o tmp/slc7_amd64_gcc11/src/L1Trigger/CSCTriggerPrimitives/src/L1TriggerCSCTriggerPrimitives/CSCMuonPortCard.cc.o tmp/slc7_amd64_gcc11/src/L1Trigger/CSCTriggerPrimitives/src/L1TriggerCSCTriggerPrimitives/CSCPatternBank.cc.o tmp/slc7_amd64_gcc11/src/L1Trigger/CSCTriggerPrimitives/src/L1TriggerCSCTriggerPrimitives/CSCTriggerPrimitivesBuilder.cc.o tmp/slc7_amd64_gcc11/src/L1Trigger/CSCTriggerPrimitives/src/L1TriggerCSCTriggerPrimitives/CSCUpgradeAnodeLCTProcessor.cc.o tmp/slc7_amd64_gcc11/src/L1Trigger/CSCTriggerPrimitives/src/L1TriggerCSCTriggerPrimitives/CSCUpgradeCathodeLCTProcessor.cc.o tmp/slc7_amd64_gcc11/src/L1Trigger/CSCTriggerPrimitives/src/L1TriggerCSCTriggerPrimitives/ComparatorCodeLUT.cc.o tmp/slc7_amd64_gcc11/src/L1Trigger/CSCTriggerPrimitives/src/L1TriggerCSCTriggerPrimitives/GEMClusterProcessor.cc.o tmp/slc7_amd64_gcc11/src/L1Trigger/CSCTriggerPrimitives/src/L1TriggerCSCTriggerPrimitives/GEMInternalCluster.cc.o tmp/slc7_amd64_gcc11/src/L1Trigger/CSCTriggerPrimitives/src/L1TriggerCSCTriggerPrimitives/LCTContainer.cc.o tmp/slc7_amd64_gcc11/src/L1Trigger/CSCTriggerPrimitives/src/L1TriggerCSCTriggerPrimitives/LCTQualityAssignment.cc.o tmp/slc7_amd64_gcc11/src/L1Trigger/CSCTriggerPrimitives/src/L1TriggerCSCTriggerPrimitives/LCTQualityControl.cc.o tmp/slc7_amd64_gcc11/src/L1Trigger/CSCTriggerPrimitives/src/L1TriggerCSCTriggerPrimitives/PulseArray.cc.o -o tmp/slc7_amd64_gcc11/src/L1Trigger/CSCTriggerPrimitives/src/L1TriggerCSCTriggerPrimitives/libL1TriggerCSCTriggerPrimitives.so -Wl,-E -Wl,--hash-style=gnu -L/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/801b531dabe40bce2db775beead67ad4/opt/cmssw/slc7_amd64_gcc11/cms/cmssw/CMSSW_12_3_ASAN_X_2021-12-10-2300/biglib/slc7_amd64_gcc11 -L/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/801b531dabe40bce2db775beead67ad4/opt/cmssw/slc7_amd64_gcc11/cms/cmssw/CMSSW_12_3_ASAN_X_2021-12-10-2300/lib/slc7_amd64_gcc11 -L/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/801b531dabe40bce2db775beead67ad4/opt/cmssw/slc7_amd64_gcc11/cms/cmssw/CMSSW_12_3_ASAN_X_2021-12-10-2300/external/slc7_amd64_gcc11/lib -L/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/801b531dabe40bce2db775beead67ad4/opt/cmssw/slc7_amd64_gcc11/cms/cmssw/CMSSW_12_3_ASAN_X_2021-12-10-2300/static/slc7_amd64_gcc11 -lDataFormatsL1CSCTrackFinder -lDataFormatsCSCDigi -lDataFormatsGEMDigi -lDataFormatsGEMRecHit -lDataFormatsCSCRecHit -lDataFormatsTrackingRecHit -lGeometryCSCGeometry -lGeometryGEMGeometry -lGeometryCommonTopologies -lCondFormatsAlignment -lDataFormatsGeometryCommonDetAlgo -lCondFormatsCSCObjects -lDataFormatsGeometrySurface -lDataFormatsCLHEP -lDataFormatsEcalDetId -lDataFormatsGeometryVector -lDataFormatsL1GlobalTrigger -lDataFormatsMuonDetId -lDataFormatsDetId -lDataFormatsL1GlobalMuonTrigger -lDataFormatsMath -lDataFormatsCommon -lFWCoreParameterSet -lFWCoreMessageLogger -lDataFormatsProvenance -lFWCorePluginManager -lFWCoreReflection -lCondFormatsSerialization -lFWCoreUtilities -lGenVector -lMathMore -lTree -lNet -lThread -lMathCore -lRIO -lboost_serialization -lCore -lboost_thread -lboost_date_time -lCLHEP -lpcre -lbz2 -lgsl -luuid -ltbb -llzma -lz -lfmt -lcms-md5 -lopenblas -lcrypt -ldl -lrt -lstdc++fs -ltinyxml2
/data/cmsbld/jenkins/workspace/build-any-ib/w/slc7_amd64_gcc11/external/gcc/11.2.1-f478fee2760dbd22aaabb4e3a8fe1640/bin/../lib/gcc/x86_64-unknown-linux-gnu/11.2.1/../../../../x86_64-unknown-linux-gnu/bin/ld: tmp/slc7_amd64_gcc11/src/L1Trigger/CSCTriggerPrimitives/src/L1TriggerCSCTriggerPrimitives/CSCCathodeLCTProcessor.cc.o: in function `CSCCathodeLCTProcessor::run(MuonDigiCollection<CSCDetId, CSCComparatorDigi> const*)':
  CSCCathodeLCTProcessor.cc:(.text+0x2a892): undefined reference to `std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::_M_high_mark() const'
 collect2: error: ld returned 1 exit status
  gmake: *** [tmp/slc7_amd64_gcc11/src/L1Trigger/CSCTriggerPrimitives/src/L1TriggerCSCTriggerPrimitives/libL1TriggerCSCTriggerPrimitives.so] Error 1

https://cmssdt.cern.ch/SDT/cgi-bin/buildlogs/slc7_amd64_gcc11/CMSSW_12_3_ASAN_X_2021-12-10-2300/L1Trigger/CSCTriggerPrimitives

@makortel
Copy link
Contributor Author

assign core

@cmsbuild
Copy link
Contributor

New categories assigned: core

@Dr15Jones,@smuzaffar,@makortel you have been requested to review this Pull request/Issue and eventually sign? Thanks

@cmsbuild
Copy link
Contributor

A new Issue was created by @makortel Matti Kortelainen.

@Dr15Jones, @perrotta, @dpiparo, @makortel, @smuzaffar, @qliphy can you please review it and eventually sign/assign? Thanks.

cms-bot commands are listed here

@makortel
Copy link
Contributor Author

Worked around in #36493

@makortel
Copy link
Contributor Author

@smuzaffar Do you think it would be worth to investigate deeper than #36493? (i.e. keep this issue open after the PR has been merged)

@dan131riley
Copy link

Looks like a compiler bug. The only _M_high_mark() member function is in sstream (and it is new for c++20 support). In the ASAN builds, these lines:

throw edm::Exception(edm::errors::ScheduleExecutionFailure, "Unrunnable schedule\n")
<< "Paths are non consistent\n"
<< " module '" << moduleIndexToNames[modIndex] << "' depends on '" << moduleIndexToNames[depIndex]
<< "' which appears on paths\n " << onStr.str() << "\nbut is missing from\n " << missingStr.str();

generate a call

call    _ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE12_M_high_markEv@PLT

If I change that to

          const auto tmp = onStr.str();
          throw edm::Exception(edm::errors::ScheduleExecutionFailure, "Unrunnable schedule\n")
              << "Paths are non consistent\n"
              << "  module '" << moduleIndexToNames[modIndex] << "' depends on '" << moduleIndexToNames[depIndex]
              << "' which appears on paths\n  " << tmp << "\nbut is missing from\n  " << missingStr.str();

the error goes away.

The second one happens at

edm::LogError("CSCCathodeLCTProcessor|SetupError")
<< "+++ Invalid ring number for this processor " << theRing << " was set in the config."
<< " +++\n"
<< "+++ CSC geometry looks garbled; no emulation possible +++\n";

and can be worked around by changing that to:

          edm::LogError("CSCCathodeLCTProcessor|SetupError")
              << "+++ Invalid ring number for this processor " << theRing << " was set in the config. +++\n"
              << "+++ CSC geometry looks garbled; no emulation possible +++\n";

so it seems to be a very picky bug. I'll try making a reproducible test case. Should I check in the workarounds?

@makortel
Copy link
Contributor Author

Thanks @dan131riley!

Should I check in the workarounds?

I'm not sure. On one hand these workarounds would allow keeping the ASAN compilation flags, on the other hand I'm slightly concerned these workarounds would quickly sediment. Maybe they would be better than adjusting compiler flags. @smuzaffar, what do you think?

If done, for the PathsAndConsumesOfModules.cc, could you add a comment that the explicit temporary variable is to work around a build issue on GCC 11 ASAN? The formatting in CSCCathodeLCTProcessor.cc looks like something the code-format could have done,

@dan131riley
Copy link

@makortel I'd vote for your workaround by changing the ASAN flags for those modules (I didn't see your PR until after I made my comment), and I'll work on a bug report.

@smuzaffar
Copy link
Contributor

@dan131riley workaround is better than adjusting the flags for these special files. @dan131riley go ahead and open a PR. meanwhile I am testing latest gcc 11.2 changes ( hopeing that they might have fixed this)

@smuzaffar
Copy link
Contributor

Issue remains there even with newer GCC 11 [a]
[a]

>gcc --version
gcc (GCC) 11.2.1 20211214

@smuzaffar
Copy link
Contributor

looks like the issue is just not with these two files. Once you fix these two files then you get a lot more e.g. see the PR tests results
#36493 (comment)
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-365d69/21266/build-logs/

looks like -fsanitize=pointer-compare and gcc11 combination does not go well.

@makortel
Copy link
Contributor Author

Found this issue google/sanitizers#1324 that said (over a year ago)

We do not consider this feature production-ready (nor it is enabled by default).

@smuzaffar
Copy link
Contributor

smuzaffar commented Dec 16, 2021

I propose to drop this flag for now ( see https://github.com/cms-sw/cmssw-config/pull/88/files and cms-sw/cmsdist#7516 ) so that we can continue with ASAN builds

@makortel
Copy link
Contributor Author

I was thinking the same, so I agree.

@makortel
Copy link
Contributor Author

The build failure was worked around, so I think this issue can be closed now.

@makortel
Copy link
Contributor Author

+core

@cmsbuild
Copy link
Contributor

This issue is fully signed and ready to be closed.

psi29a pushed a commit to OpenMW/openmw that referenced this issue Jan 10, 2023
Otherwise compiler may produce a code that linker fails to link.

For openmw it fails with following error
(https://gitlab.com/elsid/openmw/-/jobs/3571943608):

Linking CXX executable ../../openmw_test_suite mold: error: undefined symbol:
CMakeFiles/openmw_test_suite.dir/lua/test_configuration.cpp.o:
std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char>
>::_M_high_mark() const

Related issue in a different project with links to GCC bug tracker:
cms-sw/cmssw#36480
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants