TRInterface instantiation crash


ROOT Version: 6.08/04
Platform: Fedora 25
Compiler: gcc 6.2.1


Hi,
I have installed the ROOT along with R interface. However when I create TRInterface instance by Instance() method and then whenever quit the ROOT session (by doing .q) root doesn’t exit smoothly and rather crashes. So when I run
root [0] ROOT::R::TRInterface &r = ROOT::R::TRInterface::Instance();
root [1] .q
I get the crash which looks like

root [1] .q

 *** Break *** segmentation violation



===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================

Thread 2 (Thread 0x7f48c0e5c700 (LWP 5628)):
#0  0x00007f48d8ae4d63 in select () from /lib64/libc.so.6
#1  0x00007f48d9b3c5b9 in TUnixSystem::Sleep (this=<optimized out>, milliSec=<optimized out>) at /home/mridul/Downloads/root-6.08.04/core/unix/src/TUnixSystem.cxx:1158
#2  0x00007f48cd597de1 in ROOT::R::TRInterface::<lambda(void*)>::operator() (__closure=0x0, args=<optimized out>) at /home/mridul/Downloads/root-6.08.04/bindings/r/src/TRInterface.cxx:205
#3  ROOT::R::TRInterface::<lambda(void*)>::_FUN(void *) () at /home/mridul/Downloads/root-6.08.04/bindings/r/src/TRInterface.cxx:207
#4  0x00007f48d3f507be in TThread::Function (ptr=0xc4b9da0) at /home/mridul/Downloads/root-6.08.04/core/thread/src/TThread.cxx:807
#5  0x00007f48d8db46ca in start_thread () from /lib64/libpthread.so.0
#6  0x00007f48d8aeef6f in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f48da262940 (LWP 5614)):
#0  0x00007f48d8ab367b in waitpid () from /lib64/libc.so.6
#1  0x00007f48d8a2c43b in do_system () from /lib64/libc.so.6
#2  0x00007f48d9b3f892 in TUnixSystem::Exec (shellcmd=<optimized out>, this=0x171b4f0) at /home/mridul/Downloads/root-6.08.04/core/unix/src/TUnixSystem.cxx:2118
#3  TUnixSystem::StackTrace (this=0x171b4f0) at /home/mridul/Downloads/root-6.08.04/core/unix/src/TUnixSystem.cxx:2405
#4  0x00007f48d9b4203c in TUnixSystem::DispatchSignals (this=0x171b4f0, sig=kSigSegmentationViolation) at /home/mridul/Downloads/root-6.08.04/core/unix/src/TUnixSystem.cxx:3663
#5  <signal handler called>
#6  0x00007f48d958c4f3 in std::locale::~locale() () from /lib64/libstdc++.so.6
#7  0x00007f48cd58cc03 in std::basic_streambuf<char, std::char_traits<char> >::~basic_streambuf (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/c++/6.2.1/streambuf:198
#8  Rcpp::Rstreambuf<false>::~Rstreambuf (this=<optimized out>, __in_chrg=<optimized out>) at /usr/local/lib64/R/library/Rcpp/include/Rcpp/iostream/Rstreambuf.h:31
#9  Rcpp::Rostream<false>::~Rostream (this=0x7f48ccf51ac0 <Rcpp::Rcerr>, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/local/lib64/R/library/Rcpp/include/Rcpp/iostream/Rstreambuf.h:44
#10 0x00007f48d8a21420 in __run_exit_handlers () from /lib64/libc.so.6
#11 0x00007f48d8a2147a in exit () from /lib64/libc.so.6
#12 0x00007f48d9b3ca3d in TUnixSystem::Exit (this=<optimized out>, code=0, mode=<optimized out>) at /home/mridul/Downloads/root-6.08.04/core/unix/src/TUnixSystem.cxx:2159
#13 0x00007f48d9a33e7f in TApplication::ProcessLine (this=0x1768b30, line=<optimized out>, sync=<optimized out>, err=0x7ffc206b966c) at /home/mridul/Downloads/root-6.08.04/core/base/src/TApplication.cxx:877
#14 0x00007f48d9e5c4be in TRint::ProcessLineNr (this=this
entry=0x1768b30, filestem=filestem
entry=0x7f48d9e6a982 "ROOT_prompt_", line=0x7ffc206b9729 ".q", error=0x7ffc206b966c, error
entry=0x0) at /home/mridul/Downloads/root-6.08.04/core/rint/src/TRint.cxx:764
#15 0x00007f48d9e5c75f in TRint::HandleTermInput (this=0x1768b30) at /home/mridul/Downloads/root-6.08.04/core/rint/src/TRint.cxx:610
#16 0x00007f48d9b415fd in TUnixSystem::CheckDescriptors (this=this
entry=0x171b4f0) at /home/mridul/Downloads/root-6.08.04/core/unix/src/TUnixSystem.cxx:1321
#17 0x00007f48d9b428cb in TUnixSystem::DispatchOneEvent (this=0x171b4f0, pendingOnly=<optimized out>) at /home/mridul/Downloads/root-6.08.04/core/unix/src/TUnixSystem.cxx:1076
#18 0x00007f48d9a8fa04 in TSystem::InnerLoop (this=0x171b4f0) at /home/mridul/Downloads/root-6.08.04/core/base/src/TSystem.cxx:408
#19 0x00007f48d9a8e61f in TSystem::Run (this=0x171b4f0) at /home/mridul/Downloads/root-6.08.04/core/base/src/TSystem.cxx:358
#20 0x00007f48d9a3163f in TApplication::Run (this=this
entry=0x1768b30, retrn=retrn
entry=false) at /home/mridul/Downloads/root-6.08.04/core/base/src/TApplication.cxx:1153
#21 0x00007f48d9e5dc7e in TRint::Run (this=this
entry=0x1768b30, retrn=retrn
entry=false) at /home/mridul/Downloads/root-6.08.04/core/rint/src/TRint.cxx:463
#22 0x000000000040108c in main (argc=<optimized out>, argv=0x7ffc206bbab8) at /home/mridul/Downloads/root-6.08.04/main/src/rmain.cxx:30
===========================================================


The lines below might hint at the cause of the crash.
You may get help by asking at the ROOT forum http://root.cern.ch/forum.
Only if you are really convinced it is a bug in ROOT then please submit a
report at http://root.cern.ch/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  0x00007f48d958c4f3 in std::locale::~locale() () from /lib64/libstdc++.so.6
#7  0x00007f48cd58cc03 in std::basic_streambuf<char, std::char_traits<char> >::~basic_streambuf (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/c++/6.2.1/streambuf:198
#8  Rcpp::Rstreambuf<false>::~Rstreambuf (this=<optimized out>, __in_chrg=<optimized out>) at /usr/local/lib64/R/library/Rcpp/include/Rcpp/iostream/Rstreambuf.h:31
#9  Rcpp::Rostream<false>::~Rostream (this=0x7f48ccf51ac0 <Rcpp::Rcerr>, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/local/lib64/R/library/Rcpp/include/Rcpp/iostream/Rstreambuf.h:44
#10 0x00007f48d8a21420 in __run_exit_handlers () from /lib64/libc.so.6
#11 0x00007f48d8a2147a in exit () from /lib64/libc.so.6
#12 0x00007f48d9b3ca3d in TUnixSystem::Exit (this=<optimized out>, code=0, mode=<optimized out>) at /home/mridul/Downloads/root-6.08.04/core/unix/src/TUnixSystem.cxx:2159
===========================================================

Can anyone help ? I am new to ROOTR.

@Chinmay, did you try to build latest version of ROOT - 6.16?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.