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

Note Re: Segmentation fault while running example B1 

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

On Fri, 27 Jul 2018 04:59:18 GMT, Aqsa wrote:
> Now when I am trying to run the example B1 I am getting the following
> error.
> 
>         ./exampleB1 
>          Available UI session types: [ Qt, GAG, tcsh, csh ]
>          Segmentation fault (core dumped)
> 
> I am unable to understand what might be wrong with my GEANT4 since this
> error does not contain any information about the cause of core dumped.
> 
> I had used the following commands to build and run example B1
> 
>          cmake -DCMAKE_PREFIX_PATH=/home/aqsa/Downloads/GEANT4/geant4.10.04.p02-build ../B1
> 
>          make
>          ./examplesB1
> 
> I would mention the qmake version, just in case needed,
> 
>          QMake version 2.01a
>          Using Qt version 4.8.7 in /usr/lib64
> 
> OS : CentOS 7, gcc 4.8.5, cmake version 3.12.0
> 
> Kindly Help.
> 

Per your post in a separate thread (and please keep related question in one place), try building in Debug mode first. To get further information on causes of the segmentation fault, the program will need running through, in this case, the GDB debugger. There are many tutorials for this on the web, for here it is probably sufficient to do:

$ gdb exampleB1
... gdb starts up ...
.. in the gdb session, run the program
(gdb) run
.. runs and likely segfaults, it'll print some info if so
... to get more detailed info, run a backtrace
(gdb) backtrace

We'll need to see all the print out of the above.

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

1 None: Re: Segmentation fault while running example B1   (Aqsa - 30 Jul, 2018)
(_ None: Re: Segmentation fault while running example B1   (Aqsa - 06 Aug, 2018)
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 ]