Message: Re: Segmentation fault while running example B1 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Segmentation fault while running example B1 

Forum: Installation and Configuration
Re: None Segmentation fault while running example B1 (Aqsa)
Re: Note Re: Segmentation fault while running example B1 (Ben Morgan)
Re: None Re: Segmentation fault while running example B1 (Aqsa)
Date: 06 Aug, 2018
From: Aqsa <Aqsa>

I am getting the same error while running example B5 as well. everything works fine till I do make command.

After doing $ ./exampleB5 I get the following error

  Available UI session types: [ Qt, GAG, tcsh, csh ]
  Segmentation fault (core dumped)

Running in Debug mode I get the following information

  Starting program: /home/aqsa/Downloads/GEANT4/geant4.10.04.p02/examples/basic/B5-build/exampleB5 
  [Thread debugging using libthread_db enabled]
  Using host libthread_db library "/usr/lib64/libthread_db.so.1".
  Available UI session types: [ Qt, GAG, tcsh, csh ]
  [New Thread 0x7fffde25f700 (LWP 5865)]
  [New Thread 0x7fffd4690700 (LWP 5866)]
  [New Thread 0x7fffd3e8f700 (LWP 5867)]
  [New Thread 0x7fffd368e700 (LWP 5868)]
  [New Thread 0x7fffd0e86700 (LWP 5869)]

  Program received signal SIGSEGV, Segmentation fault.
  0x00007ffff2e1ad40 in G4ExceptionHandler::DumpTrackInfo() () from /home/aqsa/Downloads/GEANT4/geant4.10.04.p02-build/BuildProducts/lib64/libG4run.so
Missing separate debuginfos, use: debuginfo-install GConf2-3.2.6-8.el7.x86_64 PackageKit-gtk3-module-1.1.5-2.el7.centos.x86_64 adwaita-qt5-1.0-1.el7.x86_64 at-spi2-atk-2.22.0-2.el7.x86_64 at-spi2-core-2.22.0-1.el7.x86_64 atk-2.22.0-3.el7.x86_64 bzip2-libs-1.0.6-13.el7.x86_64 cairo-1.14.8-2.el7.x86_64 .... (lots of libraries like this)

After backtracing I get following info

  #0  0x00007ffff2e1ad40 in G4ExceptionHandler::DumpTrackInfo() () at /home/aqsa/Downloads/GEANT4/geant4.10.04.p02-build/BuildProducts/lib64/libG4run.so
  #1  0x00007ffff2e1bf55 in G4ExceptionHandler::Notify(char const*, char const*, G4ExceptionSeverity, char const*) () at /home/aqsa/Downloads/GEANT4/geant4.10.04.p02-build/BuildProducts/lib64/libG4run.so
  #2  0x00007fffeee4f501 in G4Exception(char const*, char const*, G4ExceptionSeverity, char const*) () at /home/aqsa/Downloads/GEANT4/geant4.10.04.p02-build/BuildProducts/lib64/libG4global.so
  #3  0x00007fffefd34504 in G4NuclideTable::GenerateNuclide() () at /home/aqsa/Downloads/GEANT4/geant4.10.04.p02-build/BuildProducts/lib64/libG4particles.so
  #4  0x00007fffefd34f6e in G4NuclideTable::G4NuclideTable() () at /home/aqsa/Downloads/GEANT4/geant4.10.04.p02-build/BuildProducts/lib64/libG4particles.so
  #5  0x00007fffefd35054 in G4NuclideTable::GetInstance() () at /home/aqsa/Downloads/GEANT4/geant4.10.04.p02-build/BuildProducts/lib64/libG4particles.so
  #6  0x00007fffefd2199e in G4IonTable::PrepareNuclideTable() () at /home/aqsa/Downloads/GEANT4/geant4.10.04.p02-build/BuildProducts/lib64/libG4particles.so
  #7  0x00007fffefd22459 in G4IonTable::G4IonTable() () at /home/aqsa/Downloads/GEANT4/geant4.10.04.p02-build/BuildProducts/lib64/libG4particles.so
  #8  0x00007fffefd3df7d in G4ParticleTable::G4ParticleTable() () at /home/aqsa/Downloads/GEANT4/geant4.10.04.p02-build/BuildProducts/lib64/libG4particles.so
  #9  0x00007fffefd3ee5c in G4ParticleTable::GetParticleTable() () at /home/aqsa/Downloads/GEANT4/geant4.10.04.p02-build/BuildProducts/lib64/libG4particles.so
  #10 0x00007ffff2e3cefa in G4RunManagerKernel::G4RunManagerKernel() () at /home/aqsa/Downloads/GEANT4/geant4.10.04.p02-build/BuildProducts/lib64/libG4run.so
  #11 0x00007ffff2e2ebc1 in G4RunManager::G4RunManager() () at /home/aqsa/Downloads/GEANT4/geant4.10.04.p02-build/BuildProducts/lib64/libG4run.so
  #12 0x00000000004113ac in main ()

Kindly help.

I used the following cmake command to configure geant4.

  $ cmake -DCMAKE_INSTALL_PREFIX=/home/aqsa/Downloads/GEANT4/geant4.10.04.p02-build -DGEANT4_INSTALL_DATA=OFF -DGEANT4_INSTALL_DATADIR=/home/aqsa/Downloads/GEANT4_DATA_FILES/G4ENSDFSTATE2.2 -DGEANT4_INSTALL_DATADIR=/home/aqsa/Downloads/GEANT4_DATA_FILES/G4ABLA3.1 -DGEANT4_INSTALL_DATADIR=/home/aqsa/Downloads/GEANT4_DATA_FILES/G4NDL4.5 -DGEANT4_INSTALL_DATADIR=/home/aqsa/Downloads/GEANT4_DATA_FILES/G4NEUTRONXS1.4 -DGEANT4_INSTALL_DATADIR=/home/aqsa/Downloads/GEANT4_DATA_FILES/G4EMLOW7.3 -DGEANT4_INSTALL_DATADIR=/home/aqsa/Downloads/GEANT4_DATA_FILES/G4PII1.3 -DGEANT4_INSTALL_DATADIR=/home/aqsa/Downloads/GEANT4_DATA_FILES/G4SAIDDATA1.1 -DGEANT4_INSTALL_DATADIR=/home/aqsa/Downloads/GEANT4_DATA_FILES/G4TENDL1.3.2 -DGEANT4_INSTALL_DATADIR=/home/aqsa/Downloads/GEANT4_DATA_FILES/PhotonEvaporation5.2 -DGEANT4_INSTALL_DATADIR=/home/aqsa/Downloads/GEANT4_DATA_FILES/RadioactiveDecay5.2 -DGEANT4_INSTALL_DATADIR=/home/aqsa/Downloads/GEANT4_DATA_FILES/RealSurface2.1.1 -DGEANT4_USE_QT=ON -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_RAYTRACER_X11=ON -DGEANT4_USE_GDML=ON -DGEANT4_USE_SYSTEM_CLHEP=OFF -DGEANT4_USE_SYSTEM_EXPAT=OFF -DGEANT4_BUILD_MULTITHREADED= ON -DGEANT4_USE_G3TOG4=ON -DGEANT4_INSTALL_DATA_TIMEOUT=3600 /home/aqsa/Downloads/GEANT4/geant4.10.04.p02

Should I be configuring GEANT4 all over again? I am stuck here from past 4-5 days.

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Feedback: Re: Segmentation fault while running example B1   (Ben Morgan - 07 Aug, 2018)
1 Ok: Re: Segmentation fault while running example B1   (Aqsa - 08 Aug, 2018)
2 None: Re: Segmentation fault while running example B1   (Ferran - 22 Oct, 2018)
1 None: Re: Segmentation fault while running example B1   (Aqsa - 23 Oct, 2018)
 Add Message Add Message
to: "Re: Segmentation fault while running example B1"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]