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

Loading libImt and executing the ROOT_TImplicitMT_EnableImplicitMT function crashes root on osx

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.10/04
    • Component/s: None
    • Labels:
      None
    • Environment:

      osx

      Description

      Reproducer:

      #include "TSystem.h"
      #include "TInterpreter.h"
      #include <dlfcn.h>
       
      int main() {
         gSystem->Load("libImt");
         //reinterpret_cast<void(*)()>(gInterpreter->FindSym("ROOT_TThread_Initialize"))(); // this alone does not crash
         reinterpret_cast<void(*)(UInt_t)>(gInterpreter->FindSym("ROOT_TImplicitMT_EnableImplicitMT"))(0);
       
         return 0;
      }

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dpiparo Danilo Piparo
              Reporter:
              dpiparo Danilo Piparo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: