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

Segmentation violation in repr() of TFile when using default constructor

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 6.04.00, 5.34/21
    • Fix Version/s: 6.04.00, 6.02/04, 5.34/26
    • Component/s: PyROOT
    • Labels:
      None
    • Environment:

      Ubuntu and SL machines

      Description

      I stumbled upon this interesting bug while debugging a segmentation violation at the head of the master branch (ROOT 6) but then noticed that it is also present in ROOT 5.34.

      >>> import ROOT
      >>> ROOT.TFile()

          • Break *** segmentation violation

      Here is the trace (after gdb hangs for a while...):

      ===========================================================
      There was a crash (kSigSegmentationViolation).
      This is the entire stack trace of all threads:
      ===========================================================

      Thread 2 (Thread 0x7f21c0912700 (LWP 6088)):
      #0 sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
      #1 0x00000000005bc117 in ?? ()
      #2 0x00000000004caa35 in PyEval_EvalFrameEx ()
      #3 0x00000000004e6970 in ?? ()
      #4 0x00000000004cd00f in PyEval_EvalFrameEx ()
      #5 0x00000000004cb212 in PyEval_EvalFrameEx ()
      #6 0x00000000004cb212 in PyEval_EvalFrameEx ()
      #7 0x00000000004e6970 in ?? ()
      #8 0x0000000000505128 in ?? ()
      #9 0x00000000004d25fb in PyEval_CallObjectWithKeywords ()
      #10 0x00000000005bbc82 in ?? ()
      #11 0x00007f21cf2c50a5 in start_thread (arg=0x7f21c0912700) at pthread_create.c:309
      #12 0x00007f21ceff277d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

      Thread 1 (Thread 0x7f21cf6d2740 (LWP 6075)):
      #0 0x00007f21cefb94e9 in __libc_waitpid (pid=6099, stat_loc=stat_loc
      entry=0x7fff640247f0, options=options
      entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40
      #1 0x00007f21cef3c7d2 in do_system (line=<optimized out>) at ../sysdeps/posix/system.c:148
      #2 0x00007f21cd336c34 in TUnixSystem::Exec (this=0x248b980, shellcmd=0x3e15400 "/home/endw/software/root/root_v6.02/etc/root/gdb-backtrace.sh 6075 1>&2") at /home/endw/software/root/root/core/unix/src/TUnixSystem.cxx:2069
      #3 0x00007f21cd3374de in TUnixSystem::StackTrace (this=0x248b980) at /home/endw/software/root/root/core/unix/src/TUnixSystem.cxx:2297
      #4 0x00007f21cd33b02b in TUnixSystem::DispatchSignals (this=0x248b980, sig=kSigSegmentationViolation) at /home/endw/software/root/root/core/unix/src/TUnixSystem.cxx:3533
      #5 0x00007f21cd332e43 in SigHandler (sig=kSigSegmentationViolation) at /home/endw/software/root/root/core/unix/src/TUnixSystem.cxx:395
      #6 0x00007f21cd33af7a in sighandler (sig=11) at /home/endw/software/root/root/core/unix/src/TUnixSystem.cxx:3510
      #7 <signal handler called>
      #8 0x00007f21ccaad613 in TDirectoryFile::Get (this=0x42340e0, namecycle=0x2ef3418 "_deref_") at /home/endw/software/root/root/io/io/src/TDirectoryFile.cxx:868
      #9 0x00007f21c77639e5 in ?? ()
      #10 0x00007fff64027a60 in ?? ()
      #11 0x00007fff64027be0 in ?? ()
      #12 0x00007fff640279f8 in ?? ()
      #13 0x00000001c821699c in ?? ()
      #14 0x00000000042340e0 in ?? ()
      #15 0x00007f21c77639a0 in ?? ()
      #16 0x00007fff64027cb0 in ?? ()
      #17 0x00007f21c8211779 in TClingCallFunc::exec (this=0x414c9e0, address=0x42340e0, ret=0x7fff64027be0) at /home/endw/software/root/root/core/meta/src/TClingCallFunc.cxx:1873
      #18 0x00007f21c8211bf9 in TClingCallFunc::exec_with_valref_return (this=0x414c9e0, address=0x42340e0, ret=0x7fff64027be0) at /home/endw/software/root/root/core/meta/src/TClingCallFunc.cxx:1936
      #19 0x00007f21c82170dc in TClingCallFunc::ExecT<long> (this=0x414c9e0, address=0x42340e0) at /home/endw/software/root/root/core/meta/src/TClingCallFunc.cxx:2130
      #20 0x00007f21c8212499 in TClingCallFunc::ExecInt (this=0x414c9e0, address=0x42340e0) at /home/endw/software/root/root/core/meta/src/TClingCallFunc.cxx:2143
      #21 0x00007f21c81563dc in TCling::CallFunc_ExecInt (this=0x24d64c0, func=0x414c9e0, address=0x42340e0) at /home/endw/software/root/root/core/meta/src/TCling.cxx:6060
      #22 0x00007f21cd7a1b6e in PRCallFuncExecInt (func=0x1c821699c, self=0x7fff640279f8, release_gil=255) at /home/endw/software/root/root/bindings/pyroot/src/Executors.cxx:51
      ===========================================================

      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.
      ===========================================================
      #8 0x00007f21ccaad613 in TDirectoryFile::Get (this=0x42340e0, namecycle=0x2ef3418 "_deref_") at /home/endw/software/root/root/io/io/src/TDirectoryFile.cxx:868
      #9 0x00007f21c77639e5 in ?? ()
      #10 0x00007fff64027a60 in ?? ()
      #11 0x00007fff64027be0 in ?? ()
      #12 0x00007fff640279f8 in ?? ()
      #13 0x00000001c821699c in ?? ()
      #14 0x00000000042340e0 in ?? ()
      #15 0x00007f21c77639a0 in ?? ()
      #16 0x00007fff64027cb0 in ?? ()
      #17 0x00007f21c8211779 in TClingCallFunc::exec (this=0x414c9e0, address=0x42340e0, ret=0x7fff64027be0) at /home/endw/software/root/root/core/meta/src/TClingCallFunc.cxx:1873
      #18 0x00007f21c8211bf9 in TClingCallFunc::exec_with_valref_return (this=0x414c9e0, address=0x42340e0, ret=0x7fff64027be0) at /home/endw/software/root/root/core/meta/src/TClingCallFunc.cxx:1936
      #19 0x00007f21c82170dc in TClingCallFunc::ExecT<long> (this=0x414c9e0, address=0x42340e0) at /home/endw/software/root/root/core/meta/src/TClingCallFunc.cxx:2130
      #20 0x00007f21c8212499 in TClingCallFunc::ExecInt (this=0x414c9e0, address=0x42340e0) at /home/endw/software/root/root/core/meta/src/TClingCallFunc.cxx:2143
      #21 0x00007f21c81563dc in TCling::CallFunc_ExecInt (this=0x24d64c0, func=0x414c9e0, address=0x42340e0) at /home/endw/software/root/root/core/meta/src/TCling.cxx:6060
      #22 0x00007f21cd7a1b6e in PRCallFuncExecInt (func=0x1c821699c, self=0x7fff640279f8, release_gil=255) at /home/endw/software/root/root/bindings/pyroot/src/Executors.cxx:51
      ===========================================================

        Attachments

          Activity

            People

            • Assignee:
              pcanal Philippe Canal
              Reporter:
              end Noel Dawe (Inactive)
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: