Why do I get this crash?

root [0] TH1F *h = new TH1F("h","h",100,0,10)          
(class TH1F *) 0x2949480                                                                                                                               
root [1] h->FillRandom("gaus")
root [2] h->GetXaxis()->SetTitle("X")
root [3] h->GetXaxis()->SetTi (+Tab)
 *** Break *** segmentation violation



===========================================================
There was a crash (kSigSegmentationViolation).             
This is the entire stack trace of all threads:             
===========================================================
#0  0x0000003691eac61e in waitpid () from /lib64/libc.so.6 
#1  0x0000003691e3e609 in do_system () from /lib64/libc.so.6
#2  0x00007ff088e37a0c in TUnixSystem::Exec (this=0x16dbae0, shellcmd=0x2bcf760 "/opt/root6/etc/gdb-backtrace.sh 16014 1>&2") at /home/pamputt/Downloads/root-6.02.05/core/unix/src/TUnixSystem.cxx:2069                                                                                                
#3  0x00007ff088e3823f in TUnixSystem::StackTrace (this=0x16dbae0) at /home/pamputt/Downloads/root-6.02.05/core/unix/src/TUnixSystem.cxx:2297    
#4  0x00007ff088e3baef in TUnixSystem::DispatchSignals (this=0x16dbae0, sig=kSigSegmentationViolation) at /home/pamputt/Downloads/root-6.02.05/core/unix/src/TUnixSystem.cxx:3533                                                                                                                       
#5  0x00007ff088e3408d in SigHandler (sig=kSigSegmentationViolation) at /home/pamputt/Downloads/root-6.02.05/core/unix/src/TUnixSystem.cxx:395   
#6  0x00007ff088e3ba3e in sighandler (sig=11) at /home/pamputt/Downloads/root-6.02.05/core/unix/src/TUnixSystem.cxx:3510                         
#7  0x00007ff088e77418 in textinput::TerminalConfigUnix::HandleSignal (this=0x7ff0891d27c0, signum=11) at /home/pamputt/Downloads/root-6.02.05/core/textinput/src/textinput/TerminalConfigUnix.cpp:96                                                                                                   
#8  0x00007ff088e77155 in (anonymous namespace)::TerminalConfigUnix__handleSignal (signum=11) at /home/pamputt/Downloads/root-6.02.05/core/textinput/src/textinput/TerminalConfigUnix.cpp:36                                                                                                            
#9  <signal handler called>                                                                                                                            
#10 0x00007ff088e12c3a in TListOfDataMembers::Load (this=0x2b395e0) at /home/pamputt/Downloads/root-6.02.05/core/meta/src/TListOfDataMembers.cxx:391                                                                                                                                                    
#11 0x00007ff088dee070 in TClass::GetListOfDataMembers (this=0x2a40d80, load=true) at /home/pamputt/Downloads/root-6.02.05/core/meta/src/TClass.cxx:3345                                                                                                                                                
#12 0x00007ff088882356 in TTabCom::MakeClassFromVarName (this=0x29214b0, varName=0x29033c0 "h->GetXaxis()", context=                                   
0x7ffffac07d68, iter=1) at /home/pamputt/Downloads/root-6.02.05/core/rint/src/TTabCom.cxx:2296                                                   
#13 0x00007ff08888231c in TTabCom::MakeClassFromVarName (this=0x29214b0, varName=0x2be9ec0 "h->GetXaxis()->SetTi", context=                            
0x7ffffac0843c, iter=0) at /home/pamputt/Downloads/root-6.02.05/core/rint/src/TTabCom.cxx:2279                                                   
#14 0x00007ff08887f986 in TTabCom::Hook (this=0x29214b0, buf=0x290d740 "h->GetXaxis()->SetTi", pLoc=0x7ffffac08e7c, out=...) at /home/pamputt/Downloads/root-6.02.05/core/rint/src/TTabCom.cxx:1771                                                                                                     
#15 0x00007ff0888777db in TRint::TabCompletionHook (this=0x16faff0, buf=0x290d740 "h->GetXaxis()->SetTi", pLoc=0x7ffffac08e7c, out=...) at /home/pamputt/Downloads/root-6.02.05/core/rint/src/TRint.cxx:743                                                                                             
#16 0x00007ff088e6a0e4 in (anonymous namespace)::ROOTTabCompletion::Complete (this=0x7ff0891d26f0, line=..., cursor=                                   
0x7ffffac08fb8, r=..., displayCompletions=std::vector of length 0, capacity 0) at /home/pamputt/Downloads/root-6.02.05/core/textinput/src/Getline.cxx:51                                                                                                                                                
#17 0x00007ff088e6e1ee in textinput::Editor::ProcessCommand (this=0x295dbf0, M=textinput::Editor::kCmdComplete, R=...) at /home/pamputt/Downloads/root-6.02.05/core/textinput/src/textinput/Editor.cpp:453                                                                                              
#18 0x00007ff088e6c567 in textinput::Editor::Process (this=0x295dbf0, cmd=..., R=...) at /home/pamputt/Downloads/root-6.02.05/core/textinput/src/textinput/Editor.cpp:64                                                                                                                                
#19 0x00007ff088e7c4f9 in textinput::TextInput::ProcessNewInput (this=0x7ff0891d2680, in=..., R=...) at /home/pamputt/Downloads/root-6.02.05/core/textinput/src/textinput/TextInput.cpp:164                                                                                                             
#20 0x00007ff088e7c1a4 in textinput::TextInput::ReadInput (this=0x7ff0891d2680) at /home/pamputt/Downloads/root-6.02.05/core/textinput/src/textinput/TextInput.cpp:124                                                                                                                                  
#21 0x00007ff088e6a971 in Getlinem (mode=kOneChar, prompt=0x0) at /home/pamputt/Downloads/root-6.02.05/core/textinput/src/Getline.cxx:228        
#22 0x00007ff088876e62 in TRint::HandleTermInput (this=0x16faff0) at /home/pamputt/Downloads/root-6.02.05/core/rint/src/TRint.cxx:559            
#23 0x00007ff088874dfd in TTermInputHandler::Notify (this=0x25a7e90) at /home/pamputt/Downloads/root-6.02.05/core/rint/src/TRint.cxx:124         
#24 0x00007ff0888788b7 in TTermInputHandler::ReadNotify (this=0x25a7e90) at /home/pamputt/Downloads/root-6.02.05/core/rint/src/TRint.cxx:116     
#25 0x00007ff088e35ffd in TUnixSystem::CheckDescriptors (this=0x16dbae0) at /home/pamputt/Downloads/root-6.02.05/core/unix/src/TUnixSystem.cxx:1297                                                                                                                                                     
#26 0x00007ff088e3545a in TUnixSystem::DispatchOneEvent (this=0x16dbae0, pendingOnly=false) at /home/pamputt/Downloads/root-6.02.05/core/unix/src/TUnixSystem.cxx:1052                                                                                                                                  
#27 0x00007ff088d96f75 in TSystem::InnerLoop (this=0x16dbae0) at /home/pamputt/Downloads/root-6.02.05/core/base/src/TSystem.cxx:409              
#28 0x00007ff088d96d0c in TSystem::Run (this=0x16dbae0) at /home/pamputt/Downloads/root-6.02.05/core/base/src/TSystem.cxx:359                    
#29 0x00007ff088d2b97a in TApplication::Run (this=0x16faff0, retrn=false) at /home/pamputt/Downloads/root-6.02.05/core/base/src/TApplication.cxx:1130                                                                                                                                                   
#30 0x00007ff0888764f8 in TRint::Run (this=0x16faff0, retrn=false) at /home/pamputt/Downloads/root-6.02.05/core/rint/src/TRint.cxx:450           
#31 0x00000000004012a1 in main (argc=1, argv=0x7ffffac0ba38) at /home/pamputt/Downloads/root-6.02.05/main/src/rmain.cxx:29
===========================================================


The lines below might hint at the cause of the crash.
If they do not help you then please submit a bug report at
http://root.cern.ch/bugs. Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
===========================================================
#10 0x00007ff088e12c3a in TListOfDataMembers::Load (this=0x2b395e0) at /home/pamputt/Downloads/root-6.02.05/core/meta/src/TListOfDataMembers.cxx:391
#11 0x00007ff088dee070 in TClass::GetListOfDataMembers (this=0x2a40d80, load=true) at /home/pamputt/Downloads/root-6.02.05/core/meta/src/TClass.cxx:3345
#12 0x00007ff088882356 in TTabCom::MakeClassFromVarName (this=0x29214b0, varName=0x29033c0 "h->GetXaxis()", context=
0x7ffffac07d68, iter=1) at /home/pamputt/Downloads/root-6.02.05/core/rint/src/TTabCom.cxx:2296
#13 0x00007ff08888231c in TTabCom::MakeClassFromVarName (this=0x29214b0, varName=0x2be9ec0 "h->GetXaxis()->SetTi", context=
0x7ffffac0843c, iter=0) at /home/pamputt/Downloads/root-6.02.05/core/rint/src/TTabCom.cxx:2279
#14 0x00007ff08887f986 in TTabCom::Hook (this=0x29214b0, buf=0x290d740 "h->GetXaxis()->SetTi", pLoc=0x7ffffac08e7c, out=...) at /home/pamputt/Downloads/root-6.02.05/core/rint/src/TTabCom.cxx:1771
#15 0x00007ff0888777db in TRint::TabCompletionHook (this=0x16faff0, buf=0x290d740 "h->GetXaxis()->SetTi", pLoc=0x7ffffac08e7c, out=...) at /home/pamputt/Downloads/root-6.02.05/core/rint/src/TRint.cxx:743
#16 0x00007ff088e6a0e4 in (anonymous namespace)::ROOTTabCompletion::Complete (this=0x7ff0891d26f0, line=..., cursor=
0x7ffffac08fb8, r=..., displayCompletions=std::vector of length 0, capacity 0) at /home/pamputt/Downloads/root-6.02.05/core/textinput/src/Getline.cxx:51
#17 0x00007ff088e6e1ee in textinput::Editor::ProcessCommand (this=0x295dbf0, M=textinput::Editor::kCmdComplete, R=...) at /home/pamputt/Downloads/root-6.02.05/core/textinput/src/textinput/Editor.cpp:453
#18 0x00007ff088e6c567 in textinput::Editor::Process (this=0x295dbf0, cmd=..., R=...) at /home/pamputt/Downloads/root-6.02.05/core/textinput/src/textinput/Editor.cpp:64
#19 0x00007ff088e7c4f9 in textinput::TextInput::ProcessNewInput (this=0x7ff0891d2680, in=..., R=...) at /home/pamputt/Downloads/root-6.02.05/core/textinput/src/textinput/TextInput.cpp:164
#20 0x00007ff088e7c1a4 in textinput::TextInput::ReadInput (this=0x7ff0891d2680) at /home/pamputt/Downloads/root-6.02.05/core/textinput/src/textinput/TextInput.cpp:124
#21 0x00007ff088e6a971 in Getlinem (mode=kOneChar, prompt=0x0) at /home/pamputt/Downloads/root-6.02.05/core/textinput/src/Getline.cxx:228
===========================================================

With ROOT 6 head I get:

root [0] TH1F *h = new TH1F("h","h",100,0,10) 
(class TH1F *) 0x7fb75bfcc1a0
root [1] h->FillRandom("gaus")
root [2] h->GetXaxis()->SetTitle("X")
root [3]  h->GetXaxis()->SetTi +TAB

SetTickLength
SetTickSize
SetTicks
SetTimeDisplay
SetTimeFormat
SetTimeOffset
SetTitle
SetTitleColor
SetTitleFont
SetTitleOffset
SetTitleSize
root [3]  h->GetXaxis()->SetTi

I use ROOT 6 (6.02/05) (I cannot easily install the head version). Did you try to press several time the Tab button?

Oh, yes you are right … you need to press the TAB key twice to get the crash… even with ROOT head.
I’ll tell our expert in that area to look at this.

Hi,

Yep, a bug. Thanks for your report! I have put it here sft.its.cern.ch/jira/browse/ROOT-7094 so I don’t forget…

Cheers, Axel.

Hi,

Does this bug has been corrected in the last version of root6 or is it still in progress ?

Cheers

Jérémie

This bug is solved in the latest ROOT version (6.06/04)