Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ROOT.CERN 6.00.02 segmentation violation
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
aido
n00b
n00b


Joined: 07 Sep 2014
Posts: 6

PostPosted: Fri Sep 19, 2014 8:40 pm    Post subject: ROOT.CERN 6.00.02 segmentation violation Reply with quote

After loading - unloading -loading script root.cern falls down. How to resolve this error?
Code:

root [7] .L function1.cxx
root [7] .U function1.cxx
root [8] .L function1.cxx
 *** Break *** segmentation violation
===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0  0x00007fed492701bc in waitpid () from /lib64/libc.so.6
#1  0x00007fed491f956b in ?? () from /lib64/libc.so.6
#2  0x00007fed4a1361b3 in TUnixSystem::StackTrace() () from /usr/lib64/root/libCore.so.6.00
#3  0x00007fed4a13887c in TUnixSystem::DispatchSignals(ESignals) () from /usr/lib64/root/libCore.so.6.00
#4  <signal handler called>
#5  0x00007fed4722c970 in llvm::Type::getScalarType() const () from /usr/lib64/root/libCling.so
#6  0x00007fed4722ccf9 in llvm::Type::getPointerAddressSpace() const () from /usr/lib64/root/libCling.so
#7  0x00007fed462a7f9b in ?? () from /usr/lib64/root/libCling.so
#8  0x00007fed462ea579 in clang::CodeGen::CodeGenFunction::InitializeVTablePointer(clang::BaseSubobject, clang::CXXRecordDecl const*, clang::CharUnits, clang::CXXRecordDecl const*) () from /usr/lib64/root/libCling.so
#9  0x00007fed462ed7bd in clang::CodeGen::CodeGenFunction::InitializeVTablePointers(clang::BaseSubobject, clang::CXXRecordDecl const*, clang::CharUnits, bool, clang::CXXRecordDecl const*, llvm::SmallPtrSet<clang::CXXRecordDecl const*, 4u>&) () from /usr/lib64/root/libCling.so
#10 0x00007fed462ed889 in clang::CodeGen::CodeGenFunction::InitializeVTablePointers(clang::CXXRecordDecl const*) () from /usr/lib64/root/libCling.so
#11 0x00007fed462f0ee0 in clang::CodeGen::CodeGenFunction::EmitCtorPrologue(clang::CXXConstructorDecl const*, clang::CXXCtorType, clang::CodeGen::FunctionArgList&) () from /usr/lib64/root/libCling.so
#12 0x00007fed462f157b in clang::CodeGen::CodeGenFunction::EmitConstructorBody(clang::CodeGen::FunctionArgList&) () from /usr/lib64/root/libCling.so
#13 0x00007fed4626f4bb in clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) () from /usr/lib64/root/libCling.so
#14 0x00007fed462d84f5 in clang::CodeGen::CodeGenModule::EmitCXXConstructor(clang::CXXConstructorDecl const*, clang::CXXCtorType) () from /usr/lib64/root/libCling.so
#15 0x00007fed46284971 in clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl, llvm::GlobalValue*) () from /usr/lib64/root/libCling.so
#16 0x00007fed462849f5 in clang::CodeGen::CodeGenModule::EmitDeferred() () from /usr/lib64/root/libCling.so
#17 0x00007fed46284a19 in clang::CodeGen::CodeGenModule::Release() () from /usr/lib64/root/libCling.so
#18 0x00007fed460307aa in cling::IncrementalParser::codeGenTransaction(cling::Transaction*) () from /usr/lib64/root/libCling.so
#19 0x00007fed4603054f in cling::IncrementalParser::commitTransaction(cling::Transaction*) () from /usr/lib64/root/libCling.so
#20 0x00007fed46031214 in cling::IncrementalParser::Compile(llvm::StringRef, cling::CompilationOptions const&) () from /usr/lib64/root/libCling.so
#21 0x00007fed45ffc0e9 in cling::Interpreter::DeclareInternal(std::string const&, cling::CompilationOptions const&, cling::Transaction**) const () from /usr/lib64/root/libCling.so
#22 0x00007fed45ffc218 in cling::Interpreter::declare(std::string const&, cling::Transaction**) () from /usr/lib64/root/libCling.so
#23 0x00007fed45ffce51 in cling::Interpreter::loadFile(std::string const&, bool) () from /usr/lib64/root/libCling.so
#24 0x00007fed46079d26 in cling::MetaSema::actOnLCommand(llvm::StringRef) () from /usr/lib64/root/libCling.so
#25 0x00007fed4608589f in cling::MetaParser::isLCommand(cling::MetaSema::ActionResult&) () from /usr/lib64/root/libCling.so
#26 0x00007fed46086d48 in cling::MetaParser::isCommand(cling::MetaSema::ActionResult&, cling::Value*) () from /usr/lib64/root/libCling.so
#27 0x00007fed46087753 in cling::MetaProcessor::process(char const*, cling::Interpreter::CompilationResult&, cling::Value*) () from /usr/lib64/root/libCling.so
#28 0x00007fed45f86652 in TCling::ProcessLine(char const*, TInterpreter::EErrorCode*) () from /usr/lib64/root/libCling.so
#29 0x00007fed4a0b3699 in TApplication::ProcessLine(char const*, bool, int*) () from /usr/lib64/root/libCore.so.6.00
#30 0x00007fed49cb5bb5 in TRint::ProcessLineNr(char const*, char const*, int*) () from /usr/lib64/root/libRint.so.6.00
#31 0x00007fed49cb5e41 in TRint::HandleTermInput() () from /usr/lib64/root/libRint.so.6.00
#32 0x00007fed4a138085 in TUnixSystem::CheckDescriptors() () from /usr/lib64/root/libCore.so.6.00
#33 0x00007fed4a138b7a in TUnixSystem::DispatchOneEvent(bool) () from /usr/lib64/root/libCore.so.6.00
#34 0x00007fed4a0a3336 in TSystem::InnerLoop() () from /usr/lib64/root/libCore.so.6.00
#35 0x00007fed4a0a3f40 in TSystem::Run() () from /usr/lib64/root/libCore.so.6.00
#36 0x00007fed4a0b195f in TApplication::Run(bool) () from /usr/lib64/root/libCore.so.6.00
#37 0x00007fed49cb738f in TRint::Run(bool) () from /usr/lib64/root/libRint.so.6.00
#38 0x00000000004012dc 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  0x00007fed4722c970 in llvm::Type::getScalarType() const () from /usr/lib64/root/libCling.so
#6  0x00007fed4722ccf9 in llvm::Type::getPointerAddressSpace() const () from /usr/lib64/root/libCling.so
#7  0x00007fed462a7f9b in ?? () from /usr/lib64/root/libCling.so
#8  0x00007fed462ea579 in clang::CodeGen::CodeGenFunction::InitializeVTablePointer(clang::BaseSubobject, clang::CXXRecordDecl const*, clang::CharUnits, clang::CXXRecordDecl const*) () from /usr/lib64/root/libCling.so
#9  0x00007fed462ed7bd in clang::CodeGen::CodeGenFunction::InitializeVTablePointers(clang::BaseSubobject, clang::CXXRecordDecl const*, clang::CharUnits, bool, clang::CXXRecordDecl const*, llvm::SmallPtrSet<clang::CXXRecordDecl const*, 4u>&) () from /usr/lib64/root/libCling.so
#10 0x00007fed462ed889 in clang::CodeGen::CodeGenFunction::InitializeVTablePointers(clang::CXXRecordDecl const*) () from /usr/lib64/root/libCling.so
#11 0x00007fed462f0ee0 in clang::CodeGen::CodeGenFunction::EmitCtorPrologue(clang::CXXConstructorDecl const*, clang::CXXCtorType, clang::CodeGen::FunctionArgList&) () from /usr/lib64/root/libCling.so
#12 0x00007fed462f157b in clang::CodeGen::CodeGenFunction::EmitConstructorBody(clang::CodeGen::FunctionArgList&) () from /usr/lib64/root/libCling.so
#13 0x00007fed4626f4bb in clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) () from /usr/lib64/root/libCling.so
#14 0x00007fed462d84f5 in clang::CodeGen::CodeGenModule::EmitCXXConstructor(clang::CXXConstructorDecl const*, clang::CXXCtorType) () from /usr/lib64/root/libCling.so
#15 0x00007fed46284971 in clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl, llvm::GlobalValue*) () from /usr/lib64/root/libCling.so
#16 0x00007fed462849f5 in clang::CodeGen::CodeGenModule::EmitDeferred() () from /usr/lib64/root/libCling.so
#17 0x00007fed46284a19 in clang::CodeGen::CodeGenModule::Release() () from /usr/lib64/root/libCling.so
#18 0x00007fed460307aa in cling::IncrementalParser::codeGenTransaction(cling::Transaction*) () from /usr/lib64/root/libCling.so
#19 0x00007fed4603054f in cling::IncrementalParser::commitTransaction(cling::Transaction*) () from /usr/lib64/root/libCling.so
#20 0x00007fed46031214 in cling::IncrementalParser::Compile(llvm::StringRef, cling::CompilationOptions const&) () from /usr/lib64/root/libCling.so
#21 0x00007fed45ffc0e9 in cling::Interpreter::DeclareInternal(std::string const&, cling::CompilationOptions const&, cling::Transaction**) const () from /usr/lib64/root/libCling.so
#22 0x00007fed45ffc218 in cling::Interpreter::declare(std::string const&, cling::Transaction**) () from /usr/lib64/root/libCling.so
#23 0x00007fed45ffce51 in cling::Interpreter::loadFile(std::string const&, bool) () from /usr/lib64/root/libCling.so
#24 0x00007fed46079d26 in cling::MetaSema::actOnLCommand(llvm::StringRef) () from /usr/lib64/root/libCling.so
#25 0x00007fed4608589f in cling::MetaParser::isLCommand(cling::MetaSema::ActionResult&) () from /usr/lib64/root/libCling.so
#26 0x00007fed46086d48 in cling::MetaParser::isCommand(cling::MetaSema::ActionResult&, cling::Value*) () from /usr/lib64/root/libCling.so
#27 0x00007fed46087753 in cling::MetaProcessor::process(char const*, cling::Interpreter::CompilationResult&, cling::Value*) () from /usr/lib64/root/libCling.so
===========================================================
Back to top
View user's profile Send private message
aido
n00b
n00b


Joined: 07 Sep 2014
Posts: 6

PostPosted: Sat Sep 20, 2014 7:56 am    Post subject: Reply with quote

text of function1.cxx:
Code:

#include "Math/Integrator.h"
#include "Math/IntegratorMultiDim.h"
#include "Math/AllIntegrationTypes.h"
#include "Math/Functor.h"
#include "Math/GaussIntegrator.h"
#include <Math/WrappedParamFunction.h>
#include <cmath>
 
const double ERRORLIMIT = 1E-4;
 
double f2(const double * x,const double *p) {
   return exp(-(p[0]*x[0]*x[0] + p[1]*x[1]*x[1] + p[2]*x[2]*x[2] +
p[3]*x[3]*x[3]));
}
 
int  testIntegrationMultiDim() {
 
   const double RESULT = 1.0;
   int status = 0;
 
//ROOT::Math::ParamFunctor *func=new ROOT::Math::ParamFunctor(&f2);
ROOT::Math::WrappedParamFunction<> *wf=new
ROOT::Math::WrappedParamFunction<> ( &f2, 4,
4);
double p[]={1,2,3,4};
  wf->SetParameters(p);
   double a[4] = {-5,-5,-5,-5};
   double b[4] = {5,5,5,5};
 
   ROOT::Math::IntegratorMultiDim
ig(ROOT::Math::IntegrationMultiDim::kADAPTIVE);
   ig.SetFunction(*wf);
   double val = ig.Integral(a,b);
   std::cout << "integral result is " << val << std::endl;
   status += std::fabs(val-RESULT) > ERRORLIMIT;
 
   ROOT::Math::IntegratorMultiDim
ig2(ROOT::Math::IntegrationMultiDim::kVEGAS);
   ig2.SetFunction(*wf);
   val = ig2.Integral(a,b);
   std::cout << "integral result is " << val << std::endl;
   status += std::fabs(val-RESULT) > ERRORLIMIT;
 
   ROOT::Math::IntegratorMultiDim
ig3(*wf,ROOT::Math::IntegrationMultiDim::kPLAIN);
   val = ig3.Integral(a,b);
   std::cout << "integral result is " << val << std::endl;
   status += std::fabs(val-RESULT) > ERRORLIMIT;
 
   ROOT::Math::IntegratorMultiDim
ig4(*wf,ROOT::Math::IntegrationMultiDim::kMISER);
   val = ig4.Integral(a,b);
   std::cout << "integral result is " << val << std::endl;
   status += std::fabs(val-RESULT) > ERRORLIMIT;
 
   return status;
}
 
int  main() {
   int status = 0;
 
  status += testIntegrationMultiDim();
 
   return status;
}
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum