when running my compiled code I always get this message:
*** Break *** segmentation violation
Generating stack trace…
how can i find where the stack trace is? I’d like to understande the line that crushes everything.
Please read tips for efficient and successful posting and posting code
ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided
You do not have anything more displayed ?
You can try to run your code with
Hi @Leonardo_Di_Bari ,
and welcome to the ROOT forum!
If you are running your code through the ROOT interpreter (e.g. with
root [-l -b -q] macro.C) the stacktrace should get printed at most a few seconds later that message is printed.
If not, as Olivier mentioned the best way to go is probably to convert your macro to a full C++ program (adding a
main function and all necessary
#includes), compile the program (e.g. with
g++ -o main main.cpp $(root-config --libs --cflags)) and then run it within a debugger, e.g.
gdb (see e.g. this tutorial).
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.