Hi
The compiled version of any program with the -lNew crash
the compile command is
g++ -o $1 $1.cpp -std=c++11 `root-config --new --cflags --glibs`
where $1 is the arg to the compile script.
Using rootn.exe file the program don’t crash
The dump is
*** Break *** segmentation violation
===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0 0x00007f37dbad8dbc in waitpid () from /lib64/libc.so.6
#1 0x00007f37dba5bcc2 in do_system () from /lib64/libc.so.6
#2 0x00007f37e0035b7f in TUnixSystem::StackTrace (this=0x1a7d9c8) at /home/daq/Daq/Work/rootsh/root-v6-08/core/unix/src/TUnixSystem.cxx:2412
#3 0x00007f37e00382ac in TUnixSystem::DispatchSignals (this=0x1a7d9c8, sig=kSigSegmentationViolation) at /home/daq/Daq/Work/rootsh/root-v6-08/core/unix/src/TUnixSystem.cxx:3643
#4 <signal handler called>
#5 0x00007f37dbb50f5b in __strstr_sse42 () from /lib64/libc.so.6
#6 0x00007f37d63816fb in strstr (__needle=0x7f37d7fda754 "_ACLiC_dict", __haystack=0x0) at /usr/include/string.h:333
#7 TCling::RegisterModule (this=0x1b00628, modulename=0x0, headers=0x0, includePaths=0x0, payloadCode=0x0, fwdDeclsCode=0x0, triggerFunc=0x0, fwdDeclsArgToSkip=std::vector of length 0, capacity 0, classesHeaders=0x0, lateRegistration=true, hasCxxModule=false) at /home/daq/Daq/Work/rootsh/root-v6-08/core/metacling/src/TCling.cxx:1689
#8 0x00007f37dfea3512 in TROOT::InitInterpreter (this=0x7f37e0364f80 <ROOT::Internal::GetROOT1()::alloc>) at /home/daq/Daq/Work/rootsh/root-v6-08/core/base/src/TROOT.cxx:2075
#9 0x00007f37dfea38c6 in ROOT::Internal::GetROOT2 () at /home/daq/Daq/Work/rootsh/root-v6-08/core/base/src/TROOT.cxx:388
#10 0x00007f37df7892c2 in TMapFile::WhichMapFile (addr=addr
entry=0x1abba70) at /home/daq/Daq/Work/rootsh/root-v6-08/io/io/src/TMapFile.cxx:1229
#11 0x00007f37df78941e in (anonymous namespace)::FreeIfTMapFile (ptr=0x1abba70) at /home/daq/Daq/Work/rootsh/root-v6-08/io/io/src/TMapFile.cxx:135
#12 0x00007f37dc81c125 in operator delete (ptr=0x1abba78) at /home/daq/Daq/Work/rootsh/root-v6-08/core/newdelete/src/NewDelete.cxx:283
#13 0x00007f37dfea8404 in deallocate (this=0x7f37e0364e90 <(anonymous namespace)::GetModuleHeaderInfoBuffer()::moduleHeaderInfoBuffer>, __p=<optimized out>) at /usr/include/c++/4.8.2/ext/new_allocator.h:110
#14 _M_deallocate (this=0x7f37e0364e90 <(anonymous namespace)::GetModuleHeaderInfoBuffer()::moduleHeaderInfoBuffer>, __n=<optimized out>, __p=<optimized out>) at /usr/include/c++/4.8.2/bits/stl_vector.h:174
#15 _M_emplace_back_aux<(anonymous namespace)::ModuleHeaderInfo_t> (this=0x7f37e0364e90 <(anonymous namespace)::GetModuleHeaderInfoBuffer()::moduleHeaderInfoBuffer>) at /usr/include/c++/4.8.2/bits/vector.tcc:430
#16 emplace_back<(anonymous namespace)::ModuleHeaderInfo_t> (this=0x7f37e0364e90 <(anonymous namespace)::GetModuleHeaderInfoBuffer()::moduleHeaderInfoBuffer>) at /usr/include/c++/4.8.2/bits/vector.tcc:101
#17 push_back (__x=<unknown type in /home/daq/root6/lib/libCore.so, CU 0x0, DIE 0x1adca>, this=0x7f37e0364e90 <(anonymous namespace)::GetModuleHeaderInfoBuffer()::moduleHeaderInfoBuffer>) at /usr/include/c++/4.8.2/bits/stl_vector.h:920
#18 TROOT::RegisterModule (modulename=modulename
entry=0x7f37df41a79a "libNet", headers=headers
entry=0x7f37df645400 <(anonymous namespace)::TriggerDictionaryInitialization_libNet_Impl()::headers>, includePaths=includePaths
entry=0x7f37df6453e0 <(anonymous namespace)::TriggerDictionaryInitialization_libNet_Impl()::includePaths>, payloadCode=payloadCode
entry=0x7f37df41a7d0 "\n#line 1 \"libNet dictionary payload\"\n\n#ifndef G__VECTOR_HAS_CLASS_ITERATOR\n #define G__VECTOR_HAS_CLASS_ITERATOR 1\n#endif\n#ifndef R__SSL\n #define R__SSL 1\n#endif\n\n#define _BACKWARD_BACKWARD_WARNING_"..., fwdDeclCode=fwdDeclCode
entry=0x0, triggerFunc=triggerFunc
entry=0x7f37df3df940 <(anonymous namespace)::TriggerDictionaryInitialization_libNet_Impl()>, fwdDeclsArgToSkip=std::vector of length 0, capacity 0, classesHeaders=classesHeaders
entry=0x7f37df645800 <(anonymous namespace)::TriggerDictionaryInitialization_libNet_Impl()::classesHeaders>, hasCxxModule=hasCxxModule
entry=false) at /home/daq/Daq/Work/rootsh/root-v6-08/core/base/src/TROOT.cxx:2552
#19 0x00007f37df3df9bd in (anonymous namespace)::TriggerDictionaryInitialization_libNet_Impl () at /home/daq/Daq/Work/rootsh/root-v6-08/build/net/net/G__Net.cxx:3708
#20 0x00007f37e09da4c3 in _dl_init_internal () from /lib64/ld-linux-x86-64.so.2
#21 0x00007f37e09cc1aa in _dl_start_user () from /lib64/ld-linux-x86-64.so.2
#22 0x0000000000000001 in ?? ()
#23 0x00007ffec4b40f5e in ?? ()
#24 0x0000000000000000 in ?? ()
===========================================================
The lines below might hint at the cause of the crash.
You may get help by asking at the ROOT forum http://root.cern.ch/forum.
Only if you are really convinced it is a bug in ROOT then please submit a
report at http://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.
===========================================================
#5 0x00007f37dbb50f5b in __strstr_sse42 () from /lib64/libc.so.6
#6 0x00007f37d63816fb in strstr (__needle=0x7f37d7fda754 "_ACLiC_dict", __haystack=0x0) at /usr/include/string.h:333
#7 TCling::RegisterModule (this=0x1b00628, modulename=0x0, headers=0x0, includePaths=0x0, payloadCode=0x0, fwdDeclsCode=0x0, triggerFunc=0x0, fwdDeclsArgToSkip=std::vector of length 0, capacity 0, classesHeaders=0x0, lateRegistration=true, hasCxxModule=false) at /home/daq/Daq/Work/rootsh/root-v6-08/core/metacling/src/TCling.cxx:1689
#8 0x00007f37dfea3512 in TROOT::InitInterpreter (this=0x7f37e0364f80 <ROOT::Internal::GetROOT1()::alloc>) at /home/daq/Daq/Work/rootsh/root-v6-08/core/base/src/TROOT.cxx:2075
#9 0x00007f37dfea38c6 in ROOT::Internal::GetROOT2 () at /home/daq/Daq/Work/rootsh/root-v6-08/core/base/src/TROOT.cxx:388
#10 0x00007f37df7892c2 in TMapFile::WhichMapFile (addr=addr
entry=0x1abba70) at /home/daq/Daq/Work/rootsh/root-v6-08/io/io/src/TMapFile.cxx:1229
#11 0x00007f37df78941e in (anonymous namespace)::FreeIfTMapFile (ptr=0x1abba70) at /home/daq/Daq/Work/rootsh/root-v6-08/io/io/src/TMapFile.cxx:135
#12 0x00007f37dc81c125 in operator delete (ptr=0x1abba78) at /home/daq/Daq/Work/rootsh/root-v6-08/core/newdelete/src/NewDelete.cxx:283
#13 0x00007f37dfea8404 in deallocate (this=0x7f37e0364e90 <(anonymous namespace)::GetModuleHeaderInfoBuffer()::moduleHeaderInfoBuffer>, __p=<optimized out>) at /usr/include/c++/4.8.2/ext/new_allocator.h:110
#14 _M_deallocate (this=0x7f37e0364e90 <(anonymous namespace)::GetModuleHeaderInfoBuffer()::moduleHeaderInfoBuffer>, __n=<optimized out>, __p=<optimized out>) at /usr/include/c++/4.8.2/bits/stl_vector.h:174
#15 _M_emplace_back_aux<(anonymous namespace)::ModuleHeaderInfo_t> (this=0x7f37e0364e90 <(anonymous namespace)::GetModuleHeaderInfoBuffer()::moduleHeaderInfoBuffer>) at /usr/include/c++/4.8.2/bits/vector.tcc:430
#16 emplace_back<(anonymous namespace)::ModuleHeaderInfo_t> (this=0x7f37e0364e90 <(anonymous namespace)::GetModuleHeaderInfoBuffer()::moduleHeaderInfoBuffer>) at /usr/include/c++/4.8.2/bits/vector.tcc:101
#17 push_back (__x=<unknown type in /home/daq/root6/lib/libCore.so, CU 0x0, DIE 0x1adca>, this=0x7f37e0364e90 <(anonymous namespace)::GetModuleHeaderInfoBuffer()::moduleHeaderInfoBuffer>) at /usr/include/c++/4.8.2/bits/stl_vector.h:920
#18 TROOT::RegisterModule (modulename=modulename
entry=0x7f37df41a79a "libNet", headers=headers
entry=0x7f37df645400 <(anonymous namespace)::TriggerDictionaryInitialization_libNet_Impl()::headers>, includePaths=includePaths
entry=0x7f37df6453e0 <(anonymous namespace)::TriggerDictionaryInitialization_libNet_Impl()::includePaths>, payloadCode=payloadCode
entry=0x7f37df41a7d0 "n#line 1 "libNet dictionary payload"nn#ifndef G__VECTOR_HAS_CLASS_ITERATORn #define G__VECTOR_HAS_CLASS_ITERATOR 1n#endifn#ifndef R__SSLn #define R__SSL 1n#endifnn#define _BACKWARD_BACKWARD_WARNING_"..., fwdDeclCode=fwdDeclCode
entry=0x0, triggerFunc=triggerFunc
entry=0x7f37df3df940 <(anonymous namespace)::TriggerDictionaryInitialization_libNet_Impl()>, fwdDeclsArgToSkip=std::vector of length 0, capacity 0, classesHeaders=classesHeaders
entry=0x7f37df645800 <(anonymous namespace)::TriggerDictionaryInitialization_libNet_Impl()::classesHeaders>, hasCxxModule=hasCxxModule
entry=false) at /home/daq/Daq/Work/rootsh/root-v6-08/core/base/src/TROOT.cxx:2552
#19 0x00007f37df3df9bd in (anonymous namespace)::TriggerDictionaryInitialization_libNet_Impl () at /home/daq/Daq/Work/rootsh/root-v6-08/build/net/net/G__Net.cxx:3708
#20 0x00007f37e09da4c3 in _dl_init_internal () from /lib64/ld-linux-x86-64.so.2
#21 0x00007f37e09cc1aa in _dl_start_user () from /lib64/ld-linux-x86-64.so.2
#22 0x0000000000000001 in ?? ()
#23 0x00007ffec4b40f5e in ?? ()
#24 0x0000000000000000 in ?? ()
===========================================================
Fatal in <operator delete>: storage area overwritten
aborting
Aborted (core dumped)
I have tested with different 6.0x x>= 6.08 patched and not installation of root without success
Any idea?
Thanks
Federico