Hi everyone,
I am running with root 5.14.00d, and I have a problem using std::istringstream. The code I use is attached. When I run it using those 2 line :
gROOT->ProcessLine(".L Dummy.C+");
Dummy* du = new Dummy("2000 1500 20 5279 50");
I get this output :
root.exe [1] gROOT->ProcessLine(".L Dummy.C+");
Info in TUnixSystem::ACLiC: creating shared library /lhcb/users/poss/work/analyse/DC06/Bu2JPsiK/./Dummy_C.so
root.exe [2] Dummy* du = new Dummy(“2000 1500 20 5279 50”)
p cut 2000
*** Break *** segmentation violation
(no debugging symbols found)
Using host libthread_db library “/lib/tls/libthread_db.so.1”.
Attaching to program: /proc/28588/exe, process 28588
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
[Thread debugging using libthread_db enabled]
[New Thread -1208608224 (LWP 28588)]
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
(no debugging symbols found)…done.
0x009fd7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1 0x076f47e3 in __waitpid_nocancel () from /lib/tls/libc.so.6
#2 0x0769e649 in do_system () from /lib/tls/libc.so.6
#3 0x059d18bd in system () from /lib/tls/libpthread.so.0
#4 0x00394395 in TUnixSystem::Exec () from /cern/root/root_v5.14.00d//lib/libCore.so
#5 0x003947c5 in TUnixSystem::StackTrace () from /cern/root/root_v5.14.00d//lib/libCore.so
#6 0x003928bb in TUnixSystem::DispatchSignals () from /cern/root/root_v5.14.00d//lib/libCore.so
#7 0x003909b3 in SigHandler () from /cern/root/root_v5.14.00d//lib/libCore.so
#8 0x00396ff7 in sighandler () from /cern/root/root_v5.14.00d//lib/libCore.so
#9
#10 0x0031a7ff in std::basic_stringbuf<char, std::char_traits, std::allocator >::~basic_stringbuf ()
from /cern/root/root_v5.14.00d//lib/libCore.so
#11 0x01a548fb in std::basic_istringstream<char, std::char_traits, std::allocator >::~basic_istringstream ()
from /usr/lib/libstdc++.so.6
#12 0x0626da7b in Dummy::Dummy () from /lhcb/users/poss/work/analyse/DC06/Bu2JPsiK/./Dummy_C.so
#13 0x0626e322 in G__file1MF2Xd_2064_0_1 () from /lhcb/users/poss/work/analyse/DC06/Bu2JPsiK/./Dummy_C.so
#14 0x00a4bdba in Cint::G__ExceptionWrapper () from /cern/root/root_v5.14.00d//lib/libCint.so
#15 0x00ae7004 in G__call_cppfunc () from /cern/root/root_v5.14.00d//lib/libCint.so
#16 0x00ad5dd7 in G__interpret_func () from /cern/root/root_v5.14.00d//lib/libCint.so
#17 0x00ac4bc2 in G__getfunction () from /cern/root/root_v5.14.00d//lib/libCint.so
#18 0x00ae5960 in G__new_operator () from /cern/root/root_v5.14.00d//lib/libCint.so
#19 0x00ab206e in G__getexpr () from /cern/root/root_v5.14.00d//lib/libCint.so
#20 0x00aa6f76 in G__define_var () from /cern/root/root_v5.14.00d//lib/libCint.so
#21 0x00b349ca in G__defined_type () from /cern/root/root_v5.14.00d//lib/libCint.so
#22 0x00b044b4 in G__exec_statement () from /cern/root/root_v5.14.00d//lib/libCint.so
#23 0x00aa1972 in G__exec_tempfile_core () from /cern/root/root_v5.14.00d//lib/libCint.so
#24 0x00aa1b64 in G__exec_tempfile_fp () from /cern/root/root_v5.14.00d//lib/libCint.so
#25 0x00b0d656 in G__process_cmd () from /cern/root/root_v5.14.00d//lib/libCint.so
#26 0x00307967 in TCint::ProcessLine () from /cern/root/root_v5.14.00d//lib/libCore.so
#27 0x00242756 in TApplication::ProcessLine () from /cern/root/root_v5.14.00d//lib/libCore.so
#28 0x009dddab in TRint::HandleTermInput () from /cern/root/root_v5.14.00d//lib/libRint.so
#29 0x009dc7a8 in TTermInputHandler::Notify () from /cern/root/root_v5.14.00d//lib/libRint.so
#30 0x009de660 in TTermInputHandler::ReadNotify () from /cern/root/root_v5.14.00d//lib/libRint.so
#31 0x00392cf0 in TUnixSystem::CheckDescriptors () from /cern/root/root_v5.14.00d//lib/libCore.so
#32 0x00391bdc in TUnixSystem::DispatchOneEvent () from /cern/root/root_v5.14.00d//lib/libCore.so
#33 0x002c22cc in TSystem::InnerLoop () from /cern/root/root_v5.14.00d//lib/libCore.so
#34 0x002c2271 in TSystem::Run () from /cern/root/root_v5.14.00d//lib/libCore.so
#35 0x00243236 in TApplication::Run () from /cern/root/root_v5.14.00d//lib/libCore.so
#36 0x009dd83c in TRint::Run () from /cern/root/root_v5.14.00d//lib/libRint.so
#37 0x080488dd in main ()
Can anyone explain to me what I am doing wrong ? When I do the same thing within Cint, it works fine…
Thanks,
Cheers,