Thread 2 (Thread 0x7f8f84b3c700 (LWP 11587)): #0 pthread_cond_wait GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 #1 0x00007f8f954ab939 in TThread::XARequest(char const*, int, void**, int*) () from /home/matteo/Downloads/root-6.08.06//lib/libThread.so #2 0x00007f8f9575301f in TCanvas::Destructor() () from /home/matteo/Downloads/root-6.08.06//lib/libGpad.so #3 0x00007f8f95756600 in TCanvas::~TCanvas() () from /home/matteo/Downloads/root-6.08.06//lib/libGpad.so #4 0x00007f8f95756689 in TCanvas::~TCanvas() () from /home/matteo/Downloads/root-6.08.06//lib/libGpad.so #5 0x00007f8f9616530d in TList::Delete(char const*) () from /home/matteo/Downloads/root-6.08.06//lib/libCore.so #6 0x00007f8f96105f64 in TROOT::EndOfProcessCleanups() () from /home/matteo/Downloads/root-6.08.06//lib/libCore.so #7 0x00007f8f9421d270 in __run_exit_handlers (status=0, listp=0x7f8f945a45d8 <__exit_funcs>, run_list_atexit=run_list_atexit entry=true, run_dtors=run_dtors entry=true) at exit.c:83 #8 0x00007f8f9421d2ca in __GI_exit (status=) at exit.c:105 #9 0x00007f8f95268f83 in glutMainLoopEvent () from /usr/lib/x86_64-linux-gnu/libglut.so.3 #10 0x00007f8f95268ff5 in glutMainLoop () from /usr/lib/x86_64-linux-gnu/libglut.so.3 #11 0x000055c19703627c in GLT_thread(void*) () #12 0x00007f8f954ab3f5 in TThread::Function(void*) () from /home/matteo/Downloads/root-6.08.06//lib/libThread.so #13 0x00007f8f945b16da in start_thread (arg=0x7f8f84b3c700) at pthread_create.c:456 #14 0x00007f8f942eb17f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105 Thread 1 (Thread 0x7f8f96724ac0 (LWP 11564)): #0 0x00007f8f942af4aa in __GI___waitpid (pid=11600, stat_loc=stat_loc entry=0x7fff3b797d20, options=options entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:29 #1 0x00007f8f942282cb in do_system (line=) at ../sysdeps/posix/system.c:148 #2 0x00007f8f961c0999 in TUnixSystem::StackTrace() () from /home/matteo/Downloads/root-6.08.06//lib/libCore.so #3 0x00007f8f8cf1d3a5 in cling::MultiplexInterpreterCallbacks::PrintStackTrace() () from /home/matteo/Downloads/root-6.08.06//lib/libCling.so #4 0x00007f8f8cf640e7 in cling_runtime_internal_throwIfInvalidPointer () from /home/matteo/Downloads/root-6.08.06//lib/libCling.so #5 0x00007f8f843240be in ?? () #6 0x000055c198a99270 in ?? () #7 0x000055c199b87bb0 in ?? () #8 0x000055c199770340 in ?? () #9 0x00007f8f8cf64050 in ?? () from /home/matteo/Downloads/root-6.08.06//lib/libCling.so #10 0x000055c198aebf90 in ?? () #11 0x000000003b79a180 in ?? () #12 0x00007f8f8cf62b70 in ?? () from /home/matteo/Downloads/root-6.08.06//lib/libCling.so #13 0x00007fff3b79a4b0 in ?? () #14 0x00007fff3b79a150 in ?? () #15 0x00007f8f8cf179c3 in cling::Interpreter::RunFunction(clang::FunctionDecl const*, cling::Value*) () from /home/matteo/Downloads/root-6.08.06//lib/libCling.so #16 0x00007f8f8cf1958d in cling::Interpreter::EvaluateInternal(std::__cxx11::basic_string, std::allocator > const&, cling::CompilationOptions, cling::Value*, cling::Transaction**, unsigned long) () from /home/matteo/Downloads/root-6.08.06//lib/libCling.so #17 0x00007f8f8cf19854 in cling::Interpreter::process(std::__cxx11::basic_string, std::allocator > const&, cling::Value*, cling::Transaction**) () from /home/matteo/Downloads/root-6.08.06//lib/libCling.so #18 0x00007f8f8cfd51be in cling::MetaProcessor::process(char const*, cling::Interpreter::CompilationResult&, cling::Value*) () from /home/matteo/Downloads/root-6.08.06//lib/libCling.so #19 0x00007f8f8ce7e206 in HandleInterpreterException(cling::MetaProcessor*, char const*, cling::Interpreter::CompilationResult&, cling::Value*) () from /home/matteo/Downloads/root-6.08.06//lib/libCling.so #20 0x00007f8f8ce8f00d in TCling::ProcessLine(char const*, TInterpreter::EErrorCode*) () from /home/matteo/Downloads/root-6.08.06//lib/libCling.so #21 0x00007f8f961578a8 in TApplication::ProcessLine(char const*, bool, int*) () from /home/matteo/Downloads/root-6.08.06//lib/libCore.so #22 0x00007f8f9610815d in TROOT::ProcessLine(char const*, int*) () from /home/matteo/Downloads/root-6.08.06//lib/libCore.so #23 0x00007f8f954ab1d1 in TThread::XAction() () from /home/matteo/Downloads/root-6.08.06//lib/libThread.so #24 0x00007f8f954ab368 in TThreadTimer::Notify() () from /home/matteo/Downloads/root-6.08.06//lib/libThread.so #25 0x00007f8f9615b061 in TTimer::CheckTimer(TTime const&) () from /home/matteo/Downloads/root-6.08.06//lib/libCore.so #26 0x00007f8f961c2f99 in TUnixSystem::DispatchTimers(bool) () from /home/matteo/Downloads/root-6.08.06//lib/libCore.so #27 0x00007f8f961c3a93 in TUnixSystem::DispatchOneEvent(bool) () from /home/matteo/Downloads/root-6.08.06//lib/libCore.so #28 0x00007f8f960ed724 in TSystem::InnerLoop() () from /home/matteo/Downloads/root-6.08.06//lib/libCore.so #29 0x00007f8f960ec27f in TSystem::Run() () from /home/matteo/Downloads/root-6.08.06//lib/libCore.so #30 0x00007f8f96154d2f in TApplication::Run(bool) () from /home/matteo/Downloads/root-6.08.06//lib/libCore.so #31 0x000055c197034a80 in main () Error in : Trying to access a pointer that points to an invalid memory address.. Execution of your code was aborted. input_line_36:2:2: warning: invalid memory pointer passed to a callee: ((TCanvas *)0x55c199770340)->Destructor();