Odd TBrowser crashes in rootcint

Hello,

I installed ROOT 5.34/20 on a virtualbox system running ubuntu 14.04 LTS
(the same way I always do on regular systems without any problem).
Everything installs fine and as far as I can tell compiled programs
using ROOT work just fine. However, when I try to open TBrowser
from the command line, it crashes, generating the the stack
trace attached below.

The really odd thing is that if I run ROOT using sudo I can open a
TBrowser without having it crash. So I thought that the problem
has to do with file permissions that got messed up during the
install, but as far as I can tell, nothing went wrong (I compared
the permissions with those I have on another system where ROOT
runs the the way it should and they are the same).

I am pretty sure that this is not a problem with ROOT itself, but
with something that went wrong during the install. I am wondering
if anyone else had encountered this before and found a fix.

Note that I repeated the install three times and always get the same
problem. I have also set all my paths the way I always do …

Thanks for the help.

Michael

The stack trace:

root [0] TBrowser b;

*** Break *** segmentation violation

===========================================================
There was a crash (kSigSegmentationViolation).
This is the entire stack trace of all threads:

#0 0xb77ba424 in __kernel_vsyscall ()
#1 0xb6e5bf63 in __waitpid_nocancel () at …/sysdeps/unix/syscall-template.S:81
#2 0xb6de60dd in do_system (line=0x9c5b9c0 “/usr/local/root/etc/gdb-backtrace.sh 2462 1>&2”) at …/sysdeps/posix/system.c:148
#3 0xb756ea5b in TUnixSystem::Exec (this=0x94a0a98, shellcmd=0x9c5b9c0 “/usr/local/root/etc/gdb-backtrace.sh 2462 1>&2”) at /home/mgericke/Downloads/root/core/unix/src/TUnixSystem.cxx:2172
#4 0xb7572702 in TUnixSystem::StackTrace (this=0x94a0a98) at /home/mgericke/Downloads/root/core/unix/src/TUnixSystem.cxx:2419
#5 0xb75747c7 in TUnixSystem::DispatchSignals (this=0x94a0a98, sig=sig
entry=kSigSegmentationViolation) at /home/mgericke/Downloads/root/core/unix/src/TUnixSystem.cxx:1294
#6 0xb75748fb in SigHandler (sig=kSigSegmentationViolation) at /home/mgericke/Downloads/root/core/unix/src/TUnixSystem.cxx:440
#7 0xb756d932 in sighandler (sig=11) at /home/mgericke/Downloads/root/core/unix/src/TUnixSystem.cxx:3738
#8 0xb7525885 in textinput::TerminalConfigUnix::HandleSignal (this=0xb779a980 textinput::TerminalConfigUnix::Get()::s, signum=signum
entry=11) at /home/mgericke/Downloads/root/core/textinput/src/textinput/TerminalConfigUnix.cpp:96
#9 0xb75258d4 in (anonymous namespace)::TerminalConfigUnix__handleSignal (signum=11) at /home/mgericke/Downloads/root/core/textinput/src/textinput/TerminalConfigUnix.cpp:36
#10
#11 __GI___libc_free (mem=0xc5be00) at malloc.c:2929
#12 0xb6fbb9df in operator delete(void*) () from /usr/lib/i386-linux-gnu/libstdc++.so.6
#13 0xb6fbba2b in operator delete () from /usr/lib/i386-linux-gnu/libstdc++.so.6
#14 0xb75c4b2f in UnLink (this=0xbfe91b1c) at /home/mgericke/Downloads/root/core/base/inc/TString.h:239
#15 TString::~TString (this=0xbfe91b1c, __in_chrg=) at /home/mgericke/Downloads/root/core/base/src/TString.cxx:209
#16 0xb4e5de07 in TGCommandPlugin::TGCommandPlugin (this=0x9c56b40, p=0x9a34c48, w=700, h=300) at /home/mgericke/Downloads/root/gui/gui/src/TGCommandPlugin.cxx:76
#17 0xb4b8e84f in G__G__Gui3_417_0_1 (result7=result7
entry=0xbfe928a4, funcname=funcname
entry=0x970e360 “”, libp=libp
entry=0xbfe928cc, hash=hash
entry=0) at /home/mgericke/rootwrk/gui/gui/G__Gui3.cxx:19520
#18 0xb68e3ea3 in Cint::G__ExceptionWrapper (funcp=funcp
entry=0xb4b8e710 <G__G__Gui3_417_0_1(G__value*, char const*, G__param*, int)>, result7=result7
entry=0xbfe928a4, funcname=funcname
entry=0x970e360 “”, libp=libp
entry=0xbfe928cc, hash=hash
entry=0) at /home/mgericke/Downloads/root/cint/cint/src/Api.cxx:393
#19 0xb687928f in G__execute_call (result7=result7
entry=0xbfe928a4, libp=libp
entry=0xbfe928cc, ifunc=ifunc
entry=0x970e360, ifn=ifn
entry=0) at /home/mgericke/Downloads/root/cint/cint/src/newlink.cxx:2408
#20 0xb687965e in G__call_cppfunc (result7=0xbfe928a4, libp=0xbfe928cc, ifunc=0x970e360, ifn=0) at /home/mgericke/Downloads/root/cint/cint/src/newlink.cxx:2612
#21 0xb67a6433 in G__interpret_func (result7=0xbfe928a4, funcname=0x94c5610 “TGCommandPlugin”, libp=0xbfe928cc, hash=1481, p_ifunc=0x970e360, funcmatch=1, memfunc_flag=3) at /home/mgericke/Downloads/root/cint/cint/src/ifunc.cxx:5791
#22 0xb68faffa in G__getfunction (item=0x95517e8 “TGCommandPlugin(gClient->GetRoot(),700,300)”, known3=0xbfe9cfd8, memfunc_flag=) at /home/mgericke/Downloads/root/cint/cint/src/func.cxx:2660
#23 0xb6872724 in G__new_operator (expression=0x9550fe0 “TGCommandPlugin”) at /home/mgericke/Downloads/root/cint/cint/src/new.cxx:417
#24 0xb680d6e9 in G__exec_statement (mparen=0xbfe9d9fc) at /home/mgericke/Downloads/root/cint/cint/src/parse.cxx:5783
#25 0xb6796eef in G__exec_tempfile_core (file=file
entry=0x0, fp=fp
entry=0x9c15990) at /home/mgericke/Downloads/root/cint/cint/src/debug.cxx:266
#26 0xb67985e8 in G__exec_tempfile_fp (fp=0x9c15990) at /home/mgericke/Downloads/root/cint/cint/src/debug.cxx:807
#27 0xb676a4b4 in G__process_cmd (line=0x9c06260 “new TGCommandPlugin(gClient->GetRoot(), 700, 300);”, prompt=0x94a4874 “”, more=0x94a486c, err=, rslt=0xbfe9ea38) at /home/mgericke/Downloads/root/cint/cint/src/pause.cxx:3343
#28 0xb7545875 in TCint::ProcessLine (this=0x94a4840, line=0x9c06260 “new TGCommandPlugin(gClient->GetRoot(), 700, 300);”, error=0x0) at /home/mgericke/Downloads/root/core/meta/src/TCint.cxx:545
#29 0xb75eab58 in TApplication::ProcessLine (this=0x95720f0, line=, sync=false, err=0x0) at /home/mgericke/Downloads/root/core/base/src/TApplication.cxx:970
#30 0xb758fed4 in TROOT::ProcessLine (this=0xb77a1720 ROOT::GetROOT()::root, line=0x9c14dc8 “new TGCommandPlugin(gClient->GetRoot(), 700, 300);”, error=error
entry=0x0) at /home/mgericke/Downloads/root/core/base/src/TROOT.cxx:1726
#31 0xb4f02081 in TRootBrowser::ExecPlugin (this=0x9a305c8, name=0xb4f59647 “Command”, fname=0x0, cmd=0x9c563d0 “new TGCommandPlugin(gClient->GetRoot(), 700, 300);”, pos=2, subpos=-1) at /home/mgericke/Downloads/root/gui/gui/src/TRootBrowser.cxx:527
#32 0xb4f03248 in TRootBrowser::InitPlugins (this=this
entry=0x9a305c8, opt=opt
entry=0xbfe9ef31 “FCEI”) at /home/mgericke/Downloads/root/gui/gui/src/TRootBrowser.cxx:861
#33 0xb4f0349c in TRootBrowser::TRootBrowser (this=0x9a305c8, b=0x98130d8, name=0xb763161f “ROOT Object Browser”, width=800, height=500, opt=0xbfe9ef31 “FCEI”, initshow=true) at /home/mgericke/Downloads/root/gui/gui/src/TRootBrowser.cxx:121
#34 0xb4f039a7 in TRootBrowser::NewBrowser (b=0x98130d8, title=0xb763161f “ROOT Object Browser”, width=800, height=500, opt=0xbfe9ef31 “FCEI”) at /home/mgericke/Downloads/root/gui/gui/src/TRootBrowser.cxx:1216
#35 0xb4b8875d in G__G__Gui3_418_0_46 (result7=0x9a25c5c, funcname=0x0, libp=0x9a25cb8, hash=0) at /home/mgericke/rootwrk/gui/gui/G__Gui3.cxx:20102
#36 0xb691788d in Cint::G__CallFunc::Execute (this=this
entry=0x9a25c58, pobject=pobject
entry=0x0) at /home/mgericke/Downloads/root/cint/cint/src/CallFunc.cxx:440
#37 0xb753ffbb in ExecInt (pobject=0x0, this=0x9a25c58) at /home/mgericke/Downloads/root/cint/cint/inc/CallFunc.h:101
#38 TCint::CallFunc_ExecInt (this=0x94a4840, func=0x9a25c58, address=0x0) at /home/mgericke/Downloads/root/core/meta/src/TCint.cxx:2602
#39 0xb756aaf8 in TMethodCall::Execute (this=0x9a25c00, object=object
entry=0x0, retLong=
0xbfe9eea8: -1216843776) at /home/mgericke/Downloads/root/core/meta/src/TMethodCall.cxx:377
#40 0xb75cf7a3 in Execute (retLong=
0xbfe9eea8: -1216843776, this=) at /home/mgericke/Downloads/root/core/meta/inc/TMethodCall.h:112
#41 TPluginHandler::ExecPlugin (this=this
entry=0x9a0caf8, nargs=nargs
entry=5) at /home/mgericke/Downloads/root/core/base/src/TPluginManager.cxx:330
#42 0xb4e98cd1 in TRootGuiFactory::CreateBrowserImp (this=0x9958140, b=0x98130d8, title=0xb763161f “ROOT Object Browser”, width=800, height=500, opt=0xb765cdb1 “”) at /home/mgericke/Downloads/root/gui/gui/src/TRootGuiFactory.cxx:90
#43 0xb75ad851 in TBrowser::TBrowser (this=0x98130d8, name=0xb76338c8 “Browser”, title=0xb763161f “ROOT Object Browser”, extimp=0x0, opt=0xb765cdb1 “”) at /home/mgericke/Downloads/root/core/base/src/TBrowser.cxx:104
#44 0xb7399c75 in G__G__Base1_85_0_3 (result7=result7
entry=0xbfe9fc04, funcname=funcname
entry=0x980d760 “”, libp=libp
entry=0xbfe9fc2c, hash=hash
entry=0) at /home/mgericke/rootwrk/core/base/G__Base1.cxx:8139
#45 0xb68e3ea3 in Cint::G__ExceptionWrapper (funcp=funcp
entry=0xb73994b0 <G__G__Base1_85_0_3(G__value*, char const*, G__param*, int)>, result7=result7
entry=0xbfe9fc04, funcname=funcname
entry=0x980d760 “”, libp=libp
entry=0xbfe9fc2c, hash=hash
entry=0) at /home/mgericke/Downloads/root/cint/cint/src/Api.cxx:393
#46 0xb687928f in G__execute_call (result7=result7
entry=0xbfe9fc04, libp=libp
entry=0xbfe9fc2c, ifunc=ifunc
entry=0x980d760, ifn=ifn
entry=0) at /home/mgericke/Downloads/root/cint/cint/src/newlink.cxx:2408
#47 0xb687965e in G__call_cppfunc (result7=0xbfe9fc04, libp=0xbfe9fc2c, ifunc=0x980d760, ifn=0) at /home/mgericke/Downloads/root/cint/cint/src/newlink.cxx:2612
#48 0xb67a6433 in G__interpret_func (result7=0xbfe9fc04, funcname=0x94af4b8 “TBrowser”, libp=0xbfe9fc2c, hash=824, p_ifunc=0x980d760, funcmatch=1, memfunc_flag=4) at /home/mgericke/Downloads/root/cint/cint/src/ifunc.cxx:5791
#49 0xb68faffa in G__getfunction (item=0x94cea08 “TBrowser()”, known3=0xbfeaa39c, memfunc_flag=) at /home/mgericke/Downloads/root/cint/cint/src/func.cxx:2660
#50 0xb67ded11 in G__define_var (tagnum=167, typenum=-1) at /home/mgericke/Downloads/root/cint/cint/src/decl.cxx:2897
#51 0xb6807e35 in G__defined_type (len=, type_name=…) at /home/mgericke/Downloads/root/cint/cint/src/parse.cxx:4652
#52 G__exec_statement (mparen=0xbfeab19c) at /home/mgericke/Downloads/root/cint/cint/src/parse.cxx:6672
#53 0xb6796eef in G__exec_tempfile_core (file=file
entry=0x0, fp=fp
entry=0x98064d0) at /home/mgericke/Downloads/root/cint/cint/src/debug.cxx:266
#54 0xb67985e8 in G__exec_tempfile_fp (fp=0x98064d0) at /home/mgericke/Downloads/root/cint/cint/src/debug.cxx:807
#55 0xb676a4b4 in G__process_cmd (line=0x9806340 “TBrowser b;”, prompt=0x94a4874 “”, more=0x94a486c, err=, rslt=0xbfeac1d8) at /home/mgericke/Downloads/root/cint/cint/src/pause.cxx:3343
#56 0xb7545875 in TCint::ProcessLine (this=0x94a4840, line=0x9806340 “TBrowser b;”, error=0x0) at /home/mgericke/Downloads/root/core/meta/src/TCint.cxx:545
#57 0xb75eab58 in TApplication::ProcessLine (this=0x95720f0, line=, sync=false, err=0x0) at /home/mgericke/Downloads/root/core/base/src/TApplication.cxx:970
#58 0xb709e6ae in TRint::HandleTermInput (this=0x95720f0) at /home/mgericke/Downloads/root/core/rint/src/TRint.cxx:584
#59 0xb709dd82 in TTermInputHandler::Notify (this=0x97ede58) at /home/mgericke/Downloads/root/core/rint/src/TRint.cxx:125
#60 0xb70a0142 in TTermInputHandler::ReadNotify (this=0x97ede58) at /home/mgericke/Downloads/root/core/rint/src/TRint.cxx:117
#61 0xb7573e3b in TUnixSystem::CheckDescriptors (this=this
entry=0x94a0a98) at /home/mgericke/Downloads/root/core/unix/src/TUnixSystem.cxx:1396
#62 0xb7574ad1 in TUnixSystem::DispatchOneEvent (this=0x94a0a98, pendingOnly=false) at /home/mgericke/Downloads/root/core/unix/src/TUnixSystem.cxx:1103
#63 0xb7595552 in TSystem::InnerLoop (this=0x94a0a98) at /home/mgericke/Downloads/root/core/base/src/TSystem.cxx:410
#64 0xb75963f0 in TSystem::Run (this=0x94a0a98) at /home/mgericke/Downloads/root/core/base/src/TSystem.cxx:360
#65 0xb75e8de2 in TApplication::Run (this=this
entry=0x95720f0, retrn=retrn
entry=false) at /home/mgericke/Downloads/root/core/base/src/TApplication.cxx:1118
#66 0xb709fb91 in TRint::Run (this=0x95720f0, retrn=false) at /home/mgericke/Downloads/root/core/rint/src/TRint.cxx:455
#67 0x08048ce0 in main (argc=1, argv=0xbfeae694) at /home/mgericke/Downloads/root/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
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.

#11 __GI___libc_free (mem=0xc5be00) at malloc.c:2929
#12 0xb6fbb9df in operator delete(void*) () from /usr/lib/i386-linux-gnu/libstdc++.so.6
#13 0xb6fbba2b in operator delete () from /usr/lib/i386-linux-gnu/libstdc++.so.6
#14 0xb75c4b2f in UnLink (this=0xbfe91b1c) at /home/mgericke/Downloads/root/core/base/inc/TString.h:239
#15 TString::~TString (this=0xbfe91b1c, __in_chrg=) at /home/mgericke/Downloads/root/core/base/src/TString.cxx:209
#16 0xb4e5de07 in TGCommandPlugin::TGCommandPlugin (this=0x9c56b40, p=0x9a34c48, w=700, h=300) at /home/mgericke/Downloads/root/gui/gui/src/TGCommandPlugin.cxx:76

Root >

Can it be that you have two ROOT versions mixed?
One in “/usr/local/root/” and another one in “/home/mgericke/Downloads/root/”?
(How did you build your ROOT, e.g. what “./configure” flags exactly did you use?)

Thanks for the response.

I used cmake from a separate build directory:

cmake …/Downloads/root -DCMAKE_INSTALL_PREFIX=/usr/local/root

Followed by:

“make” and “sudo make install” …

So “~/Downloads/root” was my source directory which I removed after the install, but
when I run root the stack trace still refers to the ~/Downloads/root directory, even
though it no longer exists.

I would assume that as long as I call the correct thisroot.sh I can have as many versions
of root installed as I want (I don’t have more than one, but in principle this should not
interfere … correct ? )

Thanks,

Michael

This looks fine to me.
Just before you call “cmake” (or “./configure”) and “make”, remember to remove any references to any already installed ROOT versions from your current session’s environment variables (e.g. “undef ROOTSYS”, check “${PATH}”, “${LD_LIBRARY_PATH}”, “${PYTHONPATH}”, …).
Make also sure that each installed ROOT version has its own distinctive “etc directory”:
root-config --etcdir

BTW. I use Ubuntu 14.04.1 LTS / x86_64 and I do not see the problem that you reported with ROOT v5-34-20. Do you get the same error if you try:
TBrowser *b = new TBrowser();