[ROOT-7094] Double tab completion causes crash Created: 20/Feb/15  Updated: 16/Apr/15  Resolved: 16/Apr/15

Status: Closed
Project: ROOT
Component/s: Core Libraries
Affects Version/s: 6.04.00
Fix Version/s: 6.04.00, 6.02/08

Type: Bug Priority: High
Reporter: Axel Naumann Assignee: Elissavet Sakellari (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Environment:

Linux


Development:

 Description   

TH1F *h = new TH1F("h","h",100,0,10) 
h->GetXaxis()->SetTi

and press tab twice results in

#10 0x0000000000000000 in ?? ()
#11 0x00007febfa91e121 in TIter::TIter (this=0x308fa30, col=0x2f289c0, dir=true) at include/TCollection.h:152
#12 0x00007febfaa7a221 in TViewPubDataMembersIter::Next (this=0x308fa10) at /home/axel/build/root/trunk/src/core/meta/src/TViewPubDataMembers.cxx:427
#13 0x00007febfa91e1f3 in TIter::Next (this=0x7fff84997fa0) at include/TCollection.h:158
#14 0x00007febfa91e165 in TIter::operator() (this=0x7fff84997fa0) at include/TCollection.h:157
#15 0x00007febfa490c07 in TTabCom::MakeClassFromVarName (this=0x2c82f30, varName=0x305da50 "h->GetXaxis()", context=
0x7fff849983a8: TTabCom::kCXX_IndirectMember, iter=1) at /home/axel/build/root/trunk/src/core/rint/src/TTabCom.cxx:2302
#16 0x00007febfa490b34 in TTabCom::MakeClassFromVarName (this=0x2c82f30, varName=0x2e5f400 "h->GetXaxis()->SetTi", context=
0x7fff84999820: TTabCom::kCXX_IndirectMember, iter=0) at /home/axel/build/root/trunk/src/core/rint/src/TTabCom.cxx:2283
#17 0x00007febfa48e0c4 in TTabCom::Hook (this=0x2c82f30, buf=0x2c7ef20 "h->GetXaxis()->SetTi", pLoc=0x7fff84999bcc, out=...) at /home/axel/build/root/trunk/src/core/rint/src/TTabCom.cxx:1775
#18 0x00007febfa482c07 in TRint::TabCompletionHook (this=0x1c4a950, buf=0x2c7ef20 "h->GetXaxis()->SetTi", pLoc=0x7fff84999bcc, out=...) at /home/axel/build/root/trunk/src/core/rint/src/TRint.cxx:749
#19 0x00007febfaabd834 in (anonymous namespace)::ROOTTabCompletion::Complete (this=0x7febfae1f678 <(anonymous namespace)::TextInputHolder::getHolder()::sTIHolder+112>, line=..., cursor=
0x7fff8499a268: 20, r=..., displayCompletions=...) at /home/axel/build/root/trunk/src/core/textinput/src/Getline.cxx:51



 Comments   
Comment by Axel Naumann [ 20/Feb/15 ]

See https://root.cern.ch/phpBB3/viewtopic.php?f=3&t=19313

Comment by Elissavet Sakellari (Inactive) [ 16/Apr/15 ]

Fixed for the master and the v6-02-00-patches.

Comment by Axel Naumann [ 16/Apr/15 ]

Test added.

Generated at Sat Sep 21 07:09:18 CEST 2019 using Jira 7.13.1#713001-sha1:5e06076c2d215a6f699b7e5c90ab2fae7ba5a1ce.