Linux problem or not

SOS: What is meant by this error?
I used to run my code in Ubuntu successfully.
Now, it is a different kind of Linux (Scientific Linux 6).
Could this be the problem?

regards,
jaybee

  *******************************************
  *                                         *
  *        W E L C O M E  to  R O O T       *
  *                                         *
  *   Version   5.34/34    2 October 2015   *
  *                                         *
  *  You are welcome to visit our Web site  *
  *          http://root.cern.ch            *
  *                                         *
  *******************************************

ROOT 5.34/34 (v5-34-34@v5-34-34, Oct 02 2015, 16:30:37 on linuxx8664gcc)

CINT/ROOT C/C++ Interpreter version 5.18.00, July 2, 2010
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0] .x DataPointStatNewEPEQDCSProbColorWithMRF.C 
Error: Non-static-const variable in array dimension DataPointStatNewEPEQDCSProbColorWithMRF.C:13:
 (cint allows this only in interactive command and special form macro which
  is special extension. It is not allowed in source code. Please ignore
  subsequent errors.)
*** Interpreter error recovered ***

here is another one…

root [0] .x DataPointStatNewEPEQDCSProbColorWithMRF.C 
Error: Non-static-const variable in array dimension DataPointStatNewEPEQDCSProbColorWithMRF.C:13:
 (cint allows this only in interactive command and special form macro which
  is special extension. It is not allowed in source code. Please ignore
  subsequent errors.)
*** Interpreter error recovered ***
root [1] .x DataPointSample.C 
Warning in <TCanvas::Constructor>: Deleting canvas with same name: c1
Warning in <TROOT::Append>: Replacing existing TH1: avf (Potential memory leak).
Error: Non-static-const variable in array dimension DataPointSample.C:11:
 (cint allows this only in interactive command and special form macro which
  is special extension. It is not allowed in source code. Please ignore
  subsequent errors.)
*** Interpreter error recovered ***
root [2] 

and again

root [1] .x DataPointSample.C 
Warning in <TCanvas::Constructor>: Deleting canvas with same name: c1
Warning in <TROOT::Append>: Replacing existing TH1: avf (Potential memory leak).
Error: Non-static-const variable in array dimension DataPointSample.C:11:
 (cint allows this only in interactive command and special form macro which
  is special extension. It is not allowed in source code. Please ignore
  subsequent errors.)
*** Interpreter error recovered ***
root [2] .x DataPointStatNewEPEQDCSProbColorWithMRF.C 

 *** Break *** segmentation violation



===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0  0x00000034208ac89e in waitpid () from /lib64/libc.so.6
#1  0x000000342083e4e9 in do_system () from /lib64/libc.so.6
#2  0x00007fba9a04d448 in TUnixSystem::StackTrace() () from /usr/local/root/root-5.34.34/lib/libCore.so
#3  0x00007fba9a04c2c3 in TUnixSystem::DispatchSignals(ESignals) () from /usr/local/root/root-5.34.34/lib/libCore.so
#4  <signal handler called>
#5  0x0000003420868b05 in _IO_seekoff_unlocked () from /lib64/libc.so.6
#6  0x00000034208669cd in fgetpos

GLIBC_2.2.5 () from /lib64/libc.so.6
#7  0x00007fba992c199a in G__interpret_func () from /usr/local/root/root-5.34.34/lib/libCint.so
#8  0x00007fba992aeceb in G__getfunction () from /usr/local/root/root-5.34.34/lib/libCint.so
#9  0x00007fba9928c78e in G__getitem () from /usr/local/root/root-5.34.34/lib/libCint.so
#10 0x00007fba99291308 in G__getexpr () from /usr/local/root/root-5.34.34/lib/libCint.so
#11 0x00007fba9929a818 in G__calc_internal () from /usr/local/root/root-5.34.34/lib/libCint.so
#12 0x00007fba9931fec3 in G__process_cmd () from /usr/local/root/root-5.34.34/lib/libCint.so
#13 0x00007fba9a00df66 in TCint::ProcessLine(char const*, TInterpreter::EErrorCode*) () from /usr/local/root/root-5.34.34/lib/libCore.so
#14 0x00007fba9a00b5b3 in TCint::ProcessLineSynch(char const*, TInterpreter::EErrorCode*) () from /usr/local/root/root-5.34.34/lib/libCore.so
#15 0x00007fba99f74828 in TApplication::ExecuteFile(char const*, int*, bool) () from /usr/local/root/root-5.34.34/lib/libCore.so
#16 0x00007fba99f73cb6 in TApplication::ProcessLine(char const*, bool, int*) () from /usr/local/root/root-5.34.34/lib/libCore.so
#17 0x00007fba99bc0fbb in TRint::HandleTermInput() () from /usr/local/root/root-5.34.34/lib/libRint.so
#18 0x00007fba9a04a95e in TUnixSystem::CheckDescriptors() () from /usr/local/root/root-5.34.34/lib/libCore.so
#19 0x00007fba9a04ac43 in TUnixSystem::DispatchOneEvent(bool) () from /usr/local/root/root-5.34.34/lib/libCore.so
#20 0x00007fba99fccca6 in TSystem::InnerLoop() () from /usr/local/root/root-5.34.34/lib/libCore.so
#21 0x00007fba99fce72b in TSystem::Run() () from /usr/local/root/root-5.34.34/lib/libCore.so
#22 0x00007fba99f70a9f in TApplication::Run(bool) () from /usr/local/root/root-5.34.34/lib/libCore.so
#23 0x00007fba99bc2524 in TRint::Run(bool) () from /usr/local/root/root-5.34.34/lib/libRint.so
#24 0x000000000040102c in main ()
===========================================================


The lines below might hint at the cause of the crash.
If they do not help you then please submit a bug 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.
===========================================================
#5  0x0000003420868b05 in _IO_seekoff_unlocked () from /lib64/libc.so.6
#6  0x00000034208669cd in fgetpos

GLIBC_2.2.5 () from /lib64/libc.so.6
===========================================================


Root > Function DataPointStatNewEPEQDCSProbColorWithMRF() busy flag cleared

You probably have something like this:
int length = blah-blah+blah; double table[length];
and it complains about the “table” array’s dimension “length”.
You will need to use:
const int length = blah-blah+blah; double table[length];

If you cannot add “const” there, you will need to use something like this:

int length = blah-blah+blah; // need not to be a "const" variable
double *table = new double[length];
// ...
delete [] table; // when no longer needed

okay will check with this… gracias :slight_smile: