My ROOT program works well in VSCODE (wsl extension).
But when I run it in the terminal, it breaks
*** Break *** segmentation violation
===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0 0x00007f23efacfc3a in __GI___wait4 (pid=10473, stat_loc=stat_loc
entry=0x7ffd5c0001e8, options=options
entry=0, usage=usage
entry=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:27
#1 0x00007f23efacfbfb in __GI___waitpid (pid=<optimized out>, stat_loc=stat_loc
entry=0x7ffd5c0001e8, options=options
entry=0) at waitpid.c:38
#2 0x00007f23efa3ef67 in do_system (line=<optimized out>) at ../sysdeps/posix/system.c:172
#3 0x00007f23f00ec6de in TUnixSystem::StackTrace() () from /home/llm/software/root/lib/libCore.so.6.26
#4 0x00007f23f00e9565 in TUnixSystem::DispatchSignals(ESignals) () from /home/llm/software/root/lib/libCore.so.6.26
#5 <signal handler called>
#6 0x00007f23ef5309f0 in TBufferFile::ReadUInt(unsigned int&) () from /home/llm/software/root/lib/libRIO.so
#7 0x00007f23da065f35 in TBranchElement::ReadLeavesCustomStreamer(TBuffer&) () from /home/llm/software/root/lib/libTree.so.6.26.10
#8 0x00007f23da05f420 in TBranch::GetEntry(long long, int) () from /home/llm/software/root/lib/libTree.so.6.26.10
#9 0x00007f23da079ec0 in TBranchElement::GetEntry(long long, int) () from /home/llm/software/root/lib/libTree.so.6.26.10
#10 0x00007f23da0d8197 in TTree::GetEntry(long long, int) () from /home/llm/software/root/lib/libTree.so.6.26.10
#11 0x00007f23e9cf5c66 in ?? ()
#12 0x000055c54993f8c0 in ?? ()
#13 0x000055c549aa3100 in ?? ()
#14 0x00007f23eb7606a0 in ?? () from /home/llm/software/root/lib/libCling.so
#15 0x00007f23e9cf8000 in ?? ()
#16 0x000055c54a6a2b10 in ?? ()
#17 0x00007f23ec9bfe5a in llvm::RuntimeDyldImpl::resolveLocalRelocations() () from /home/llm/software/root/lib/libCling.so
#18 0x000055c547d784d0 in ?? ()
#19 0x00007f23ec9bc290 in ?? () from /home/llm/software/root/lib/libCling.so
#20 0x0000000000000003 in ?? ()
#21 0x000055c549744210 in ?? ()
#22 0x000055c547d5ea00 in ?? ()
#23 0x4014000000000000 in ?? ()
#24 0x408f400000000000 in ?? ()
#25 0x0000000000000000 in ?? ()
===========================================================
The lines below might hint at the cause of the crash.
You may get help by asking at the ROOT forum https://root.cern/forum
Only if you are really convinced it is a bug in ROOT then please submit a
report at https://root.cern/bugs Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
===========================================================
#6 0x00007f23ef5309f0 in TBufferFile::ReadUInt(unsigned int&) () from /home/llm/software/root/lib/libRIO.so
#7 0x00007f23da065f35 in TBranchElement::ReadLeavesCustomStreamer(TBuffer&) () from /home/llm/software/root/lib/libTree.so.6.26.10
#8 0x00007f23da05f420 in TBranch::GetEntry(long long, int) () from /home/llm/software/root/lib/libTree.so.6.26.10
#9 0x00007f23da079ec0 in TBranchElement::GetEntry(long long, int) () from /home/llm/software/root/lib/libTree.so.6.26.10
#10 0x00007f23da0d8197 in TTree::GetEntry(long long, int) () from /home/llm/software/root/lib/libTree.so.6.26.10
#11 0x00007f23e9cf5c66 in ?? ()
#12 0x000055c54993f8c0 in ?? ()
#13 0x000055c549aa3100 in ?? ()
#14 0x00007f23eb7606a0 in ?? () from /home/llm/software/root/lib/libCling.so
#15 0x00007f23e9cf8000 in ?? ()
#16 0x000055c54a6a2b10 in ?? ()
#17 0x00007f23ec9bfe5a in llvm::RuntimeDyldImpl::resolveLocalRelocations() () from /home/llm/software/root/lib/libCling.so
#18 0x000055c547d784d0 in ?? ()
#19 0x00007f23ec9bc290 in ?? () from /home/llm/software/root/lib/libCling.so
#20 0x0000000000000003 in ?? ()
#21 0x000055c549744210 in ?? ()
#22 0x000055c547d5ea00 in ?? ()
#23 0x4014000000000000 in ?? ()
#24 0x408f400000000000 in ?? ()
#25 0x0000000000000000 in ?? ()
===========================================================
Root > %
Could anyone tell me what happened?
_ROOT Version: 6.26/10
_Platform: WSL2
_Compiler: linuxx8664gcc