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).