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

Segfault in [some] std::vector<T, custom_alloc<T>> I/O

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 6.18/04
    • Fix Version/s: 6.20/00, 6.18/06
    • Component/s: I/O
    • Labels:
      None
    • Environment:

      For example, LCG_96b / x86_64-centos7-gcc9-dbg / ROOT 6.18/04. No evidence the issue is environment-dependent.

      Description

      Trying to save objects that contain

      std::vector<T, custom_alloc<T>>
      

      members to TTree/TFile leads to a segfault for some template parameters.

      A working (read: crashing) example is provided here: https://gitlab.cern.ch/olupton/DictProblems and some more background discussion can be found here: https://mattermost.web.cern.ch/root/pl/4xn9mxn6hfy1zgog8ybe915sar

      Philippe Canal already investigated and opened https://github.com/root-project/root/pull/4827

        Attachments

          Activity

            People

            • Assignee:
              pcanal Philippe Canal
              Reporter:
              olupton Olli Lupton
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: