{"action":"created","issue":{"url":"https://api.github.com/repos/cms-sw/cmssw/issues/13818","repository_url":"https://api.github.com/repos/cms-sw/cmssw","labels_url":"https://api.github.com/repos/cms-sw/cmssw/issues/13818/labels{/name}","comments_url":"https://api.github.com/repos/cms-sw/cmssw/issues/13818/comments","events_url":"https://api.github.com/repos/cms-sw/cmssw/issues/13818/events","html_url":"https://github.com/cms-sw/cmssw/issues/13818","id":142983780,"number":13818,"title":"[segfault][8_1_X] Error: uninitialized ProxyBase11 used (TrackingTools)","user":{"login":"davidlt","id":197091,"avatar_url":"https://avatars.githubusercontent.com/u/197091?v=3","gravatar_id":"","url":"https://api.github.com/users/davidlt","html_url":"https://github.com/davidlt","followers_url":"https://api.github.com/users/davidlt/followers","following_url":"https://api.github.com/users/davidlt/following{/other_user}","gists_url":"https://api.github.com/users/davidlt/gists{/gist_id}","starred_url":"https://api.github.com/users/davidlt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidlt/subscriptions","organizations_url":"https://api.github.com/users/davidlt/orgs","repos_url":"https://api.github.com/users/davidlt/repos","events_url":"https://api.github.com/users/davidlt/events{/privacy}","received_events_url":"https://api.github.com/users/davidlt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cms-sw/cmssw/labels/pending-signatures","name":"pending-signatures","color":"eb6420"},{"url":"https://api.github.com/repos/cms-sw/cmssw/labels/reconstruction-pending","name":"reconstruction-pending","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2016-03-23T14:58:23Z","updated_at":"2016-03-23T18:45:42Z","closed_at":null,"body":"While looking into ICC builds I have noticed quite a large number of failures, which we didn't have in the past. This looked to be memory related issue and I managed to reproduce it with GCC.\r\n\r\nWorkflow 4000.0, step3 (but affects a lot more workflows)\r\n\r\n```\r\ncmsRunGlibC step3_RAW2DIGI_L1Reco_RECO_EI_VALIDATION_DQM.py\r\n\r\nL1TRawToDigi Sequence configured for Run1 (Legacy) trigger.\r\nL1TReco Sequence configured for Run1 (Legacy) trigger.\r\nWARNING:  L1Trigger/L1TCommon/python/caloStage1LegacyFormatDigis_cfi.py has been deprecated...\r\nWARNING:  please use L1Trigger/L1TCalorimeter/python/caloStage1LegacyFormatDigis_cfi.py\r\n# Conditions read from  CMS_CONDITIONS  via FrontierProd\r\n23-Mar-2016 11:53:41 CET  Initiating request to open file file:step2.root\r\n23-Mar-2016 11:53:44 CET  Successfully opened file file:step2.root\r\nBegin processing the 1st record. Run 1, Event 101, LumiSection 2 at 23-Mar-2016 11:54:31.430 CET\r\n----- Begin Fatal Exception 23-Mar-2016 11:54:40 CET-----------------------\r\nAn exception of category 'Error: uninitialized ProxyBase11 used' occurred while\r\n   [0] Processing run: 1 lumi: 2 event: 101\r\n   [1] Running path 'reconstruction_step'\r\n   [2] Calling event method for module GoodSeedProducer/'trackerDrivenElectronSeeds'\r\n----- End Fatal Exception -------------------------------------------------\r\n%MSG-w BeamFitter:  AlcaBeamMonitor:AlcaBeamMonitor@endLumi  23-Mar-2016 11:54:40 CET Run: 1 Lumi: 2\r\nNo event read! No Fitting!\r\n%MSG\r\nAnother exception was caught while trying to clean up files after the primary fatal exception.\r\n23-Mar-2016 11:54:42 CET  Closed file file:step2.root\r\n[..]\r\n```\r\n\r\nNote the following change is required:\r\n```\r\ndiff --git a/TrackingTools/TrajectoryState/interface/ProxyBase11.h b/TrackingTools/TrajectoryState/interface/ProxyBase11.h\r\nindex 56f3b66..8c6a949 100644\r\n--- a/TrackingTools/TrajectoryState/interface/ProxyBase11.h\r\n+++ b/TrackingTools/TrajectoryState/interface/ProxyBase11.h\r\n@@ -4,6 +4,7 @@\r\n #include \"FWCore/Utilities/interface/Visibility.h\"\r\n #include \"FWCore/Utilities/interface/Likely.h\"\r\n #include \"FWCore/Utilities/interface/GCC11Compatibility.h\"\r\n+#include \"TrackingTools/TrajectoryParametrization/interface/TrajectoryStateExceptions.h\"\r\n\r\n #include \"ChurnAllocator.h\"\r\n\r\n```\r\n\r\nThe following packages need to checked out:\r\n```\r\nTrackingTools/TrajectoryState\r\nTrackingTools/GsfTracking\r\n```\r\n\r\nCompiled with:\r\n```\r\nUSER_CXXFLAGS='-DTR_DEBUG=1 -O0 -g3' scram b -v -k -j 32\r\n```\r\n\r\nWithout `-DTR_DEBUG=1` you would get segfault instead (which is better for debugging).\r\n\r\n```\r\nL1TReco Sequence configured for Run1 (Legacy) trigger.\r\nWARNING:  L1Trigger/L1TCommon/python/caloStage1LegacyFormatDigis_cfi.py has been deprecated...\r\nWARNING:  please use L1Trigger/L1TCalorimeter/python/caloStage1LegacyFormatDigis_cfi.py\r\n# Conditions read from  CMS_CONDITIONS  via FrontierProd\r\n[New Thread 0x7fffcaa2c700 (LWP 2729)]\r\n22-Mar-2016 21:52:10 CET  Initiating request to open file file:step2.root\r\n22-Mar-2016 21:52:25 CET  Successfully opened file file:step2.root\r\nBegin processing the 1st record. Run 1, Event 101, LumiSection 2 at 22-Mar-2016 21:58:31.312 CET\r\n\r\nProgram received signal SIGSEGV, Segmentation fault.\r\n0x00007fffb5975358 in BasicTrajectoryState::isValid (this=0x0) at /cvmfs/cms-ib.cern.ch/week1/slc6_amd64_gcc493/cms/cmssw/CMSSW_8_1_ICC_X_2016-03-21-2300/src/TrackingTools/TrajectoryState/interface/BasicTrajectoryState.h:170\r\n170       bool isValid() const { return theValid; }\r\n(gdb) up\r\n#1  0x00007fffb59799b8 in BasicTrajectoryState::localParameters (this=0x0) at /cvmfs/cms-ib.cern.ch/week1/slc6_amd64_gcc493/cms/cmssw/CMSSW_8_1_ICC_X_2016-03-21-2300/src/TrackingTools/TrajectoryState/interface/BasicTrajectoryState.h:227\r\n227         if unlikely(!isValid()) notValid();\r\n(gdb) up\r\n#2  0x00007fffb598cf46 in TrajectoryStateOnSurface::localParameters (this=0x49814380) at /cvmfs/cms-ib.cern.ch/week1/slc6_amd64_gcc493/cms/cmssw/CMSSW_8_1_ICC_X_2016-03-21-2300/src/TrackingTools/TrajectoryState/interface/TrajectoryStateOnSurface.h:108\r\n108         return data().localParameters();\r\n(gdb) p data()\r\n$1 = (const std::__shared_ptr<BasicTrajectoryState::BTSOS, __gnu_cxx::_S_atomic>::BTSOS &) @0x0: <incomplete type>\r\n```\r\n\r\nSimply put looks like `BasicTrajectoryState` is `nullptr` in some object which probably is allocated on the heap (or something assumes that object is allocated in memory). "},"comment":{"url":"https://api.github.com/repos/cms-sw/cmssw/issues/comments/200490884","html_url":"https://github.com/cms-sw/cmssw/issues/13818#issuecomment-200490884","issue_url":"https://api.github.com/repos/cms-sw/cmssw/issues/13818","id":200490884,"user":{"login":"VinInn","id":4143702,"avatar_url":"https://avatars.githubusercontent.com/u/4143702?v=3","gravatar_id":"","url":"https://api.github.com/users/VinInn","html_url":"https://github.com/VinInn","followers_url":"https://api.github.com/users/VinInn/followers","following_url":"https://api.github.com/users/VinInn/following{/other_user}","gists_url":"https://api.github.com/users/VinInn/gists{/gist_id}","starred_url":"https://api.github.com/users/VinInn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VinInn/subscriptions","organizations_url":"https://api.github.com/users/VinInn/orgs","repos_url":"https://api.github.com/users/VinInn/repos","events_url":"https://api.github.com/users/VinInn/events{/privacy}","received_events_url":"https://api.github.com/users/VinInn/received_events","type":"User","site_admin":false},"created_at":"2016-03-23T18:45:41Z","updated_at":"2016-03-23T18:45:41Z","body":"As you already guessed with\r\nauto const  refTsos1 = refTsos.components().front();\r\nworks as in this one (notice first and last and identical)\r\nI think this is not a problem in the code...\r\nmaybe in the compiler (and how could be that works with one binary and not with another?)\r\nsize 12\r\nrefs 2 0x2dd30750\r\nrefs 2 0x2dd30930\r\nrefs 2 0x2dd30af0\r\nrefs 2 0x2dd31710\r\nrefs 2 0x2dd38540\r\nrefs 2 0x2dd38700\r\nrefs 2 0x2dd388c0\r\nrefs 2 0x2dd38a80\r\nrefs 2 0x2dd38c40\r\nrefs 2 0x2dd38e00\r\nrefs 2 0x2dd38fc0\r\nrefs 2 0x2dd39180\r\nrefs 2 0x2dd30750\r\n"}}