[ROOT-6824] Typo at prompt causes segfault Created: 16/Oct/14  Updated: 16/Oct/14  Resolved: 16/Oct/14

Status: Closed
Project: ROOT
Component/s: Cling
Affects Version/s: 6.02/01
Fix Version/s: 6.04.00, 6.02/02

Type: Bug Priority: High
Reporter: Danilo Piparo Assignee: Axel Naumann
Resolution: Fixed Votes: 0
Labels: None
Environment:

kubuntu 14


Development:

 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



 Comments   
Comment by Axel Naumann [ 16/Oct/14 ]

Thanks! Fixed in master and v6-02-00-patches.

Generated at Sat Sep 21 06:55:56 CEST 2019 using Jira 7.13.1#713001-sha1:5e06076c2d215a6f699b7e5c90ab2fae7ba5a1ce.