[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

kubuntu 14



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 *(*)()'
buildNinja/include/TROOT.h:325:16: note: expanded from macro 'gROOT'
#define gROOT (ROOT::GetROOT())
 *** Break *** segmentation violation

Comment by Axel Naumann [ 16/Oct/14 ]

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

Generated at Mon Feb 24 17:08:30 CET 2020 using Jira 8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b.