CINT std::vector<long> error


Using ROOT 5.34/12 (CINT 5.18.00) if I try to fill a std::vector with values, my macro crashes. If I use vectors of other types (int, double) there is no problem.

This error can be seen using CINT:

root [0] std::vector<int> a
root [1] a.push_back(1)
root [2] a[0]
(vector<int,allocator<int> >::reference)1
root [3] std::vector<double> b
root [4] b.push_back(1)
root [5] b[0]
(vector<double,allocator<double> >::reference)1.00000000000000000e+00
root [6] std::vector<long> c
root [7] c.push_back(1)
Error: non class,struct,union object c used with . or -> (tmpfile):1:
*** Interpreter error recovered ***
root [8] .q
Error: Symbol null is not defined in current scope  :0:

 *** Break *** segmentation violation

There was a crash.
This is the entire stack trace of all threads:
#0  0x00007f513d8b3c8e in waitpid () from /lib/x86_64-linux-gnu/
#1  0x00007f513d83929e in ?? () from /lib/x86_64-linux-gnu/
#2  0x00007f513e77ae87 in TUnixSystem::StackTrace() () from /home/whanlon/root/lib/
#3  0x00007f513e77d773 in TUnixSystem::DispatchSignals(ESignals) () from /home/whanlon/root/lib/
#4  <signal handler called>
#5  0x00007f513cdc5140 in G__destroy_upto () from /home/whanlon/root/lib/
#6  0x00007f513cdc5c9f in G__scratch_globals_upto () from /home/whanlon/root/lib/
#7  0x00007f513e73b818 in TCint::ResetGlobals() () from /home/whanlon/root/lib/
#8  0x00007f513e6e43e5 in TROOT::EndOfProcessCleanups() () from /home/whanlon/root/lib/
#9  0x00007f513d82f901 in ?? () from /lib/x86_64-linux-gnu/
#10 0x00007f513d82f985 in exit () from /lib/x86_64-linux-gnu/
#11 0x00007f513e776c12 in TUnixSystem::Exit(int, bool) () from /home/whanlon/root/lib/
#12 0x00007f513e6a5859 in TApplication::ProcessLine(char const*, bool, int*) () from /home/whanlon/root/lib/
#13 0x00007f513e2f8ba9 in TRint::HandleTermInput() () from /home/whanlon/root/lib/
#14 0x00007f513e77c73c in TUnixSystem::CheckDescriptors() () from /home/whanlon/root/lib/
#15 0x00007f513e77dee6 in TUnixSystem::DispatchOneEvent(bool) () from /home/whanlon/root/lib/
#16 0x00007f513e6fe816 in TSystem::InnerLoop() () from /home/whanlon/root/lib/
#17 0x00007f513e7004f4 in TSystem::Run() () from /home/whanlon/root/lib/
#18 0x00007f513e6a3c6f in TApplication::Run(bool) () from /home/whanlon/root/lib/
#19 0x00007f513e2f95dc in TRint::Run(bool) () from /home/whanlon/root/lib/
#20 0x0000000000400f8c in main ()

The crash is most likely caused by a problem in your script.
Try to compile it (.L myscript.C+g) and fix any errors.
If that does not help then please submit a bug report at Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.

pure virtual method called
terminate called without an active exception

On another machine I use ROOT 5.34/09 (same version of CINT) and I can use std::vector without a problem. Is this a bug or is something else going on?