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

Typo at prompt causes segfault

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 6.02/01
    • Fix Version/s: 6.04.00, 6.02/02
    • Component/s: Cling
    • Labels:
      None
    • Environment:

      kubuntu 14

      Description

      A typo while calling a function of gROOT causes a segmentation fault at the prompt:

      root [0] gROOT-GetVersionCode()
      ROOT_prompt_1:1:1: error: cannot initialize an array element of type 'void *' with an rvalue of type 'TROOT *(*)()'
      gROOT-GetVersionCode()
      ^~~~~
      buildNinja/include/TROOT.h:325:16: note: expanded from macro 'gROOT'
      #define gROOT (ROOT::GetROOT())
                     ^~~~~~~~~~~~~
       
       *** Break *** segmentation violation

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: