You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to use TMapFile I link the application with "-lNew"
For example if test.cpp is the root program to compile I will use
g++ -o test test.cpp `root-config --new --cflags --glibs`
The program work without any issue with rootn.exe.
Using the compiled program, Immediately it breaks:
*** Break *** segmentation violation
===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0 0x00007f9ece411e8a in waitpid () from /lib64/libc.so.6
#1 0x00007f9ece38d757 in do_system () from /lib64/libc.so.6
#2 0x00007f9ed00a44f5 in TUnixSystem::StackTrace() () from /home/root-6.26.04/builddir/lib/libCore.so
#3 0x00007f9ed00a1cc5 in TUnixSystem::DispatchSignals(ESignals) () from /home/root-6.26.04/builddir/lib/libCore.so
#4 <signal handler called>
#5 0x00007f9ec9b38d5b in TClingCallFunc::SetArg(long) () from /home/root-6.26.04/builddir/lib/libCling.so
#6 0x00007f9ecff6d683 in TApplication::LoadGraphicsLibs() () from /home/root-6.26.04/builddir/lib/libCore.so
#7 0x00007f9ecff6ca2a in TApplication::InitializeGraphics() () from /home/root-6.26.04/builddir/lib/libCore.so
#8 0x00007f9ecff70d89 in TApplication::TApplication(char const*, int*, char**, void*, int) () from /home/root-6.26.04/builddir/lib/libCore.so
#9 0x00000000004011fc in main ()
===========================================================
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.
===========================================================
#5 0x00007f9ec9b38d5b in TClingCallFunc::SetArg(long) () from /home/root-6.26.04/builddir/lib/libCling.so
#6 0x00007f9ecff6d683 in TApplication::LoadGraphicsLibs() () from /home/root-6.26.04/builddir/lib/libCore.so
#7 0x00007f9ecff6ca2a in TApplication::InitializeGraphics() () from /home/root-6.26.04/builddir/lib/libCore.so
#8 0x00007f9ecff70d89 in TApplication::TApplication(char const*, int*, char**, void*, int) () from /home/root-6.26.04/builddir/lib/libCore.so
#9 0x00000000004011fc in main ()
===========================================================
Can you try with a more recent ROOT version? I do not get a crash there.
The problem however persists, even if linking with lNew, it raises an error:
Error in <TMapFile::TMapFile>: no memory mapped file capability available
Use rootn.exe or link application against "-lNew"
Memory mapped file: hsimple.map
Title: Memory Mapped Hist
Option: file closed
Description of the bug
In order to use TMapFile I link the application with "-lNew"
For example if test.cpp is the root program to compile I will use
The program work without any issue with rootn.exe.
Using the compiled program, Immediately it breaks:
Expected behavior
The output messages should be:
To Reproduce:
The source code test.cpp I am using follows:
To run mu code: ./test
My setup
The text was updated successfully, but these errors were encountered: