Message: Geant4.10.02 successful compile, immediate seg-fault Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Geant4.10.02 successful compile, immediate seg-fault 

Forum: Installation and Configuration
Date: 13 Jan, 2016
From: Anthony Villano <Anthony Villano>

Hello,

I've just installed Geant4.10.02 onto my EL6 machine. The 'uname' line is:

Linux vegemite.spa.umn.edu 2.6.32-573.12.1.el6.x86_64 #1 SMP Tue Dec 15 08:24:23 CST 2015 x86_64 x86_64 x86_64 GNU/Linux

I had to upgrade gcc, which I did via my administrator's pre-prepared "module" to gcc v4.9.2.

I also had to upgrade cmake to > 3.3, which I did from sources to version 3.4.1. The following commands verify these things:

vegemite:B2a villaa$cmake --version cmake version 3.4.1

CMake suite maintained and supported by Kitware (kitware.com/cmake).

vegemite:B2a villaa$gcc --version gcc (GCC) 4.9.2 20150212 (Red Hat 4.9.2-6) Copyright (C) 2014 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I installed Geant4, specifying X11 graphics with the following configuration:

cmake -DCMAKE_INSTALL_PREFIX=/path/to/geant4.10.02-install -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_SYSTEM_EXPAT=OFF -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ /path/to/geant4.10.02

I then made separate build directories for examples B1 and B2 and did:

cd /build/dir/B2-build

cmake -DGeant4_DIR=/path/to/geant4.10.02-install/lib64/Geant4-10.2.0 /path/to/geant4.10.02-install/share/Geant4-10.2.0/examples/basic/B2

The binaries appear to compile fine but run like:

vegemite:B2a villaa$./exampleB2a

Segmentation fault

There is very little information for me to go on here. The compilation succeeded, so I think I can be confident that the gcc/g++ versions were compatible with the code. Also, during the build I saw the correct version numbers going by.

The only thing I can think of right now is to build again with verbosity on. Is there any other obvious thing I can do? Or, is there a typical problem that would cause this symptom?

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

1 More: Re: Geant4.10.02 successful compile, immediate seg-fault   (Anthony Villano - 13 Jan, 2016)
(_ None: Re: Geant4.10.02 successful compile, immediate seg-fault   (Anthony Villano - 14 Jan, 2016)
(_ None: Re: Geant4.10.02 successful compile, immediate seg-fault   (Ben Morgan - 15 Jan, 2016)
(_ None: Re: Geant4.10.02 successful compile, immediate seg-fault   (Anthony Villano - 16 Jan, 2016)
 Add Message Add Message
to: "Geant4.10.02 successful compile, immediate seg-fault"

 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 ]