Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-7817

Crash in TWebFile destructor when failing to open a s3 endpoint with TS3WebFile

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: 6.08/00
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      SLC6, 64bit

      Description

      Seen with master (when TDavixFile is not configured):

      root [0] TFile *g=TFile::Open("s3://nosuchhost123.cern.ch/file.root");
      Error in <TS3WebFile::TS3WebFile>: invalid S3 path 's3://nosuchhost123.cern.ch/file.root'

          • Break *** segmentation violation

      ===========================================================
      There was a crash.
      This is the entire stack trace of all threads:
      ===========================================================
      #0 0x0000003d168ac65e in waitpid () from /lib64/libc.so.6
      #1 0x0000003d1683e609 in do_system () from /lib64/libc.so.6
      #2 0x00007efc27ae65fa in TUnixSystem::StackTrace() () at /home/dhsmith/root-master/core/unix/src/TUnixSystem.cxx:2090
      #3 0x00007efc27ae85cc in TUnixSystem::DispatchSignals(ESignals) () at /home/dhsmith/root-master/core/unix/src/TUnixSystem.cxx:3556
      #4 <signal handler called>
      #5 0x00007efc1de58a6e in TWebFile::~TWebFile() () at /home/dhsmith/root-master/net/net/src/TWebFile.cxx:196
      #6 0x00007efc1de4729c in TS3WebFile::~TS3WebFile() () at /home/dhsmith/root-master-build/include/TS3WebFile.h:101
      #7 0x00007efc246e5bf1 in TFile::Open(char const*, char const*, char const*, int, int) () at /home/dhsmith/root-master/io/io/src/TFile.cxx:4035
      #8 0x00007efc272e902f in __cxx_global_var_initcling_module_6 ()
      #9 0x00007efc272e9050 in GLOBAL_sub_I_cling_module_6 ()
      #10 0x00007efc24e08a8c in cling::IncrementalExecutor::runStaticInitializersOnce(cling::Transaction const&) () from /home/dhsmith/root-master-build/lib/libCling.so
      #11 0x00007efc24dac3a6 in cling::Interpreter::executeTransaction(cling::Transaction&) () from /home/dhsmith/root-master-build/lib/libCling.so
      #12 0x00007efc24e0f75f in cling::IncrementalParser::commitTransaction(llvm::PointerIntPair<cling::Transaction*, 2u, cling::IncrementalParser::EParseResult, llvm::PointerLikeTypeTraits<cling::Transaction*> >) () from /home/dhsmith/root-master-build/lib/libCling.so
      #13 0x00007efc24e11be5 in cling::IncrementalParser::Compile(llvm::StringRef, cling::CompilationOptions const&) () from /home/dhsmith/root-master-build/lib/libCling.so
      #14 0x00007efc24db10f7 in cling::Interpreter::EvaluateInternal(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cling::CompilationOptions, cling::Value*, cling::Transaction**) () from /home/dhsmith/root-master-build/lib/libCling.so
      #15 0x00007efc24db13b5 in cling::Interpreter::process(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cling::Value*, cling::Transaction**) () from /home/dhsmith/root-master-build/lib/libCling.so
      #16 0x00007efc24e5cbab in cling::MetaProcessor::process(char const*, cling::Interpreter::CompilationResult&, cling::Value*) () from /home/dhsmith/root-master-build/lib/libCling.so
      #17 0x00007efc24d3faed in TCling::ProcessLine(char const*, TInterpreter::EErrorCode*) () at /home/dhsmith/root-master/core/meta/src/TCling.cxx:2002
      #18 0x00007efc27a27286 in TApplication::ProcessLine(char const*, bool, int*) () at /home/dhsmith/root-master/core/base/src/TApplication.cxx:997
      #19 0x00007efc2761a01f in TRint::ProcessLineNr(char const*, char const*, int*) () at /home/dhsmith/root-master/core/rint/src/TRint.cxx:726
      #20 0x00007efc2761a2df in TRint::HandleTermInput() () at /home/dhsmith/root-master/core/rint/src/TRint.cxx:601
      #21 0x00007efc27ae7d5d in TUnixSystem::CheckDescriptors() () at /home/dhsmith/root-master/core/unix/src/TUnixSystem.cxx:1318
      #22 0x00007efc27ae8e6a in TUnixSystem::DispatchOneEvent(bool) () at /home/dhsmith/root-master/core/unix/src/TUnixSystem.cxx:1073
      #23 0x00007efc27a45224 in TSystem::InnerLoop() () at /home/dhsmith/root-master/core/base/src/TSystem.cxx:407
      #24 0x00007efc27a43791 in TSystem::Run() () at /home/dhsmith/root-master/core/base/src/TSystem.cxx:357
      #25 0x00007efc27a24a9f in TApplication::Run(bool) () at /home/dhsmith/root-master/core/base/src/TApplication.cxx:1145
      #26 0x00007efc2761b75b in TRint::Run(bool) () at /home/dhsmith/root-master/core/rint/src/TRint.cxx:459
      #27 0x00000000004012c0 in main () at /home/dhsmith/root-master/main/src/rmain.cxx:30
      ===========================================================

      The lines below might hint at the cause of the crash.
      If they do not help you then please submit a bug report at
      http://root.cern.ch/bugs. Please post the ENTIRE stack trace
      from above as an attachment in addition to anything else
      that might help us fixing this issue.
      ===========================================================
      #5 0x00007efc1de58a6e in TWebFile::~TWebFile() () at /home/dhsmith/root-master/net/net/src/TWebFile.cxx:196
      #6 0x00007efc1de4729c in TS3WebFile::~TS3WebFile() () at /home/dhsmith/root-master-build/include/TS3WebFile.h:101
      #7 0x00007efc246e5bf1 in TFile::Open(char const*, char const*, char const*, int, int) () at /home/dhsmith/root-master/io/io/src/TFile.cxx:4035
      #8 0x00007efc272e902f in __cxx_global_var_initcling_module_6 ()
      #9 0x00007efc272e9050 in GLOBAL_sub_I_cling_module_6 ()
      #10 0x00007efc24e08a8c in cling::IncrementalExecutor::runStaticInitializersOnce(cling::Transaction const&) () from /home/dhsmith/root-master-build/lib/libCling.so
      #11 0x00007efc24dac3a6 in cling::Interpreter::executeTransaction(cling::Transaction&) () from /home/dhsmith/root-master-build/lib/libCling.so
      #12 0x00007efc24e0f75f in cling::IncrementalParser::commitTransaction(llvm::PointerIntPair<cling::Transaction*, 2u, cling::IncrementalParser::EParseResult, llvm::PointerLikeTypeTraits<cling::Transaction*> >) () from /home/dhsmith/root-master-build/lib/libCling.so
      #13 0x00007efc24e11be5 in cling::IncrementalParser::Compile(llvm::StringRef, cling::CompilationOptions const&) () from /home/dhsmith/root-master-build/lib/libCling.so
      #14 0x00007efc24db10f7 in cling::Interpreter::EvaluateInternal(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cling::CompilationOptions, cling::Value*, cling::Transaction**) () from /home/dhsmith/root-master-build/lib/libCling.so
      #15 0x00007efc24db13b5 in cling::Interpreter::process(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cling::Value*, cling::Transaction**) () from /home/dhsmith/root-master-build/lib/libCling.so
      #16 0x00007efc24e5cbab in cling::MetaProcessor::process(char const*, cling::Interpreter::CompilationResult&, cling::Value*) () from /home/dhsmith/root-master-build/lib/libCling.so
      ===========================================================

        Attachments

          Activity

            People

            • Assignee:
              dhsmith David Smith
              Reporter:
              dhsmith David Smith
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: