ROOT crashes upon exiting

Hello,

Recently I needed to use minuit2 so I recompile and installed root from source with the option:
./configure --enable-minuit2. I did this without touching the ROOT install already on my hd. I just went back into the source code folder from which I originally compiled root and recompiled it with minuit2.

After applying “make” I found that while ROOT would execute but you could not do anything, any attempts at launching TBrowser or any library will result in them not found for example:


TBrowser p
Error in TUnixSystem::DynamicPathName: libGpad.so does not exist in /home/euix/Programs/root/lib:.:/home/euix/Programs/root/lib::/home/euix/Programs/root/cint/cint/stl
Error in TCint::AutoLoad: failure loading library libGpad.so for class TPad
Error in TUnixSystem::DynamicPathName: Gpad[.so | .dll | .dylib | .sl | .dl | .a] does not exist in /home/euix/Programs/root/lib:.:/home/euix/Programs/root/lib::/home/euix/Programs/root/cint/cint/stl


and when root is exited it will spill out the following:


root [0] .q
*** glibc detected *** /home/euix/Programs/root/bin/root.exe: double free or corruption (!prev): 0x0000000000b32440 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x7eb96)[0x7fde237c6b96]
/usr/lib/x86_64-linux-gnu/libCint.so.5.34(_ZN4Cint8Internal18G__BufferReservoirD1Ev+0x67)[0x7fde229cabc7]
/lib/x86_64-linux-gnu/libc.so.6(__cxa_finalize+0x9d)[0x7fde23783d1d]
/usr/lib/x86_64-linux-gnu/libCint.so.5.34(+0x38533)[0x7fde229b8533]
======= Memory map: ========
00400000-00402000 r-xp 00000000 08:07 11277191 /home/euix/Programs/root/bin/root.exe
00601000-00602000 r–p 00001000 08:07 11277191 /home/euix/Programs/root/bin/root.exe
00602000-00603000 rw-p 00002000 08:07 11277191 /home/euix/Programs/root/bin/root.exe
00b02000-010ed000 rw-p 00000000 00:00 0 [heap]
7fde217e8000-7fde21a11000 r-xp 00000000 08:07 11277184 /home/euix/Programs/root/lib/libMathCore.so
7fde21a11000-7fde21c10000 —p 00229000 08:07 11277184 /home/euix/Programs/root/lib/libMathCore.so
7fde21c10000-7fde21c19000 r–p 00228000 08:07 11277184 /home/euix/Programs/root/lib/libMathCore.so
7fde21c19000-7fde21c1d000 rw-p 00231000 08:07 11277184 /home/euix/Programs/root/lib/libMathCore.so
7fde21c1d000-7fde21c24000 rw-p 00000000 00:00 0
7fde21c28000-7fde21c34000 r-xp 00000000 08:07 17305097 /lib/x86_64-linux-gnu/libnss_files-2.15.so
7fde21c34000-7fde21e33000 —p 0000c000 08:07 17305097 /lib/x86_64-linux-gnu/libnss_files-2.15.so
7fde21e33000-7fde21e34000 r–p 0000b000 08:07 17305097 /lib/x86_64-linux-gnu/libnss_files-2.15.so
7fde21e34000-7fde21e35000 rw-p 0000c000 08:07 17305097 /lib/x86_64-linux-gnu/libnss_files-2.15.so
7fde21e38000-7fde21e42000 r-xp 00000000 08:07 17305038 /lib/x86_64-linux-gnu/libnss_nis-2.15.so
7fde21e42000-7fde22042000 —p 0000a000 08:07 17305038 /lib/x86_64-linux-gnu/libnss_nis-2.15.so
7fde22042000-7fde22043000 r–p 0000a000 08:07 17305038 /lib/x86_64-linux-gnu/libnss_nis-2.15.so
7fde22043000-7fde22044000 rw-p 0000b000 08:07 17305038 /lib/x86_64-linux-gnu/libnss_nis-2.15.so
7fde22048000-7fde2205f000 r-xp 00000000 08:07 17305891 /lib/x86_64-linux-gnu/libnsl-2.15.so
7fde2205f000-7fde2225e000 —p 00017000 08:07 17305891 /lib/x86_64-linux-gnu/libnsl-2.15.so
7fde2225e000-7fde2225f000 r–p 00016000 08:07 17305891 /lib/x86_64-linux-gnu/libnsl-2.15.so
7fde2225f000-7fde22260000 rw-p 00017000 08:07 17305891 /lib/x86_64-linux-gnu/libnsl-2.15.so
7fde22260000-7fde22262000 rw-p 00000000 00:00 0
7fde22268000-7fde22270000 r-xp 00000000 08:07 17305895 /lib/x86_64-linux-gnu/libnss_compat-2.15.so
7fde22270000-7fde2246f000 —p 00008000 08:07 17305895 /lib/x86_64-linux-gnu/libnss_compat-2.15.so
7fde2246f000-7fde22470000 r–p 00007000 08:07 17305895 /lib/x86_64-linux-gnu/libnss_compat-2.15.so
7fde22470000-7fde22471000 rw-p 00008000 08:07 17305895 /lib/x86_64-linux-gnu/libnss_compat-2.15.so
7fde22478000-7fde22573000 r-xp 00000000 08:07 17305892 /lib/x86_64-linux-gnu/libm-2.15.so
7fde22573000-7fde22772000 —p 000fb000 08:07 17305892 /lib/x86_64-linux-gnu/libm-2.15.so
7fde22772000-7fde22773000 r–p 000fa000 08:07 17305892 /lib/x86_64-linux-gnu/libm-2.15.so
7fde22773000-7fde22774000 rw-p 000fb000 08:07 17305892 /lib/x86_64-linux-gnu/libm-2.15.so
7fde22778000-7fde2277a000 r-xp 00000000 08:07 17305894 /lib/x86_64-linux-gnu/libdl-2.15.so
7fde2277a000-7fde2297a000 —p 00002000 08:07 17305894 /lib/x86_64-linux-gnu/libdl-2.15.so
7fde2297a000-7fde2297b000 r–p 00002000 08:07 17305894 /lib/x86_64-linux-gnu/libdl-2.15.so
7fde2297b000-7fde2297c000 rw-p 00003000 08:07 17305894 /lib/x86_64-linux-gnu/libdl-2.15.so
7fde2297f000-7fde22980000 rw-p 00000000 00:00 0
7fde22980000-7fde22bb4000 r-xp 00000000 08:07 11678312 /usr/lib/x86_64-linux-gnu/root5.34/libCint.so.5.34
7fde22bb4000-7fde22db3000 —p 00234000 08:07 11678312 /usr/lib/x86_64-linux-gnu/root5.34/libCint.so.5.34
7fde22db3000-7fde22db6000 r–p 00233000 08:07 11678312 /usr/lib/x86_64-linux-gnu/root5.34/libCint.so.5.34
7fde22db6000-7fde22db8000 rw-p 00236000 08:07 11678312 /usr/lib/x86_64-linux-gnu/root5.34/libCint.so.5.34
7fde22db8000-7fde232f0000 rw-p 00000000 00:00 0
7fde232f0000-7fde2332c000 r-xp 00000000 08:07 17305125 /lib/x86_64-linux-gnu/libpcre.so.3.13.1
7fde2332c000-7fde2352b000 —p 0003c000 08:07 17305125 /lib/x86_64-linux-gnu/libpcre.so.3.13.1
7fde2352b000-7fde2352c000 r–p 0003b000 08:07 17305125 /lib/x86_64-linux-gnu/libpcre.so.3.13.1
7fde2352c000-7fde2352d000 rw-p 0003c000 08:07 17305125 /lib/x86_64-linux-gnu/libpcre.so.3.13.1
7fde23530000-7fde23546000 r-xp 00000000 08:07 17305172 /lib/x86_64-linux-gnu/libz.so.1.2.7
7fde23546000-7fde23745000 —p 00016000 08:07 17305172 /lib/x86_64-linux-gnu/libz.so.1.2.7
7fde23745000-7fde23746000 r–p 00015000 08:07 17305172 /lib/x86_64-linux-gnu/libz.so.1.2.7
7fde23746000-7fde23747000 rw-p 00016000 08:07 17305172 /lib/x86_64-linux-gnu/libz.so.1.2.7
7fde23748000-7fde238fd000 r-xp 00000000 08:07 17305896 /lib/x86_64-linux-gnu/libc-2.15.so
7fde238fd000-7fde23afd000 —p 001b5000 08:07 17305896 /lib/x86_64-linux-gnu/libc-2.15.so
7fde23afd000-7fde23b01000 r–p 001b5000 08:07 17305896 /lib/x86_64-linux-gnu/libc-2.15.so
7fde23b01000-7fde23b03000 rw-p 001b9000 08:07 17305896 /lib/x86_64-linux-gnu/libc-2.15.so
7fde23b03000-7fde23b08000 rw-p 00000000 00:00 0
7fde23b08000-7fde23b20000 r-xp 00000000 08:07 17305053 /lib/x86_64-linux-gnu/libpthread-2.15.so
7fde23b20000-7fde23d1f000 —p 00018000 08:07 17305053 /lib/x86_64-linux-gnu/libpthread-2.15.so
7fde23d1f000-7fde23d20000 r–p 00017000 08:07 17305053 /lib/x86_64-linux-gnu/libpthread-2.15.so


I have tried deleting my ROOT folder and downloading a fresh source code and recompiling it from scratch. However whenever I do this, upon make I receive the error:


graf2d/x11ttf/src/TGX11TTF.o: In function TGX11TTF::DrawText(int, int, float, float, wchar_t const*, TVirtualX::ETextMode)': TGX11TTF.cxx:(.text+0x18a9): undefined reference toTTF::PrepareString(wchar_t const*)'
graf2d/x11ttf/src/TGX11TTF.o:(.data.rel.ro._ZTV8TGX11TTF[_ZTV8TGX11TTF]+0x240): undefined reference to TVirtualX::GetOpenGLScalingFactor()' graf2d/x11ttf/src/TGX11TTF.o:(.data.rel.ro._ZTV8TGX11TTF[_ZTV8TGX11TTF]+0x248): undefined reference toTVirtualX::CreateOpenGLWindow(unsigned long, unsigned int, unsigned int, std::vector<std::pair<unsigned int, int>, std::allocator<std::pair<unsigned int, int> > > const&)'
graf2d/x11ttf/src/TGX11TTF.o:(.data.rel.ro._ZTV8TGX11TTF[_ZTV8TGX11TTF]+0x250): undefined reference to TVirtualX::CreateOpenGLContext(unsigned long, unsigned long)' graf2d/x11ttf/src/TGX11TTF.o:(.data.rel.ro._ZTV8TGX11TTF[_ZTV8TGX11TTF]+0x258): undefined reference toTVirtualX::MakeOpenGLContextCurrent(unsigned long, unsigned long)'
graf2d/x11ttf/src/TGX11TTF.o:(.data.rel.ro._ZTV8TGX11TTF[_ZTV8TGX11TTF]+0x260): undefined reference to TVirtualX::GetCurrentOpenGLContext()' graf2d/x11ttf/src/TGX11TTF.o:(.data.rel.ro._ZTV8TGX11TTF[_ZTV8TGX11TTF]+0x268): undefined reference toTVirtualX::FlushOpenGLBuffer(unsigned long)'
graf2d/x11ttf/src/G__X11TTF.o: In function (anonymous namespace)::DictInit::DictInit()': G__X11TTF.cxx:(.text+0xd): undefined reference toROOT::RegisterModule()'
collect2: error: ld returned 1 exit status
make: *** [lib/libGX11TTF.so] Error 1
make: *** Waiting for unfinished jobs…
==> lib/libMinuit2.so done
==> lib/libGraf3d.so done
==> lib/libRooFitCore.so done
==> lib/libGui.so done

The root make will still finish, so I can still run ROOT after this make, but I find that the same problem upon quiting ROOT occurs. Can anyone help?

I did some googling and saw someone with this problem here:

sft.its.cern.ch/jira/browse/ROOT-5913

but using make distclean didn’t seem to help me.