Debugging Geant4

Problem

kschwarz@lxg0503:~/GEANT4/examples/r3b/StableRelease$ /misc/kschwarz/bin/Linux-g++/TPC TPC.mac

*************************************************************
 Geant4 version Name: geant4-08-02-patch-01    (23-February-2007)
                      Copyright : Geant4 Collaboration
                      Reference : NIM A 506 (2003), 250-303
                            WWW : http://cern.ch/geant4
*************************************************************


 *** Break *** segmentation violation
Using host libthread_db library "/lib/libthread_db.so.1".
Attaching to program: /proc/8336/exe, process 8336
`system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols.
done.

  • remark: this error is not to be taken literally. It can be a placeholder for many things

investigation via Debugger

schwarz@lxg0503:~/GEANT4/examples/r3b/StableRelease$ gdb /misc/kschwarz/bin/Linux-g++/TPC
GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) r TPC.mac
Starting program: /misc/kschwarz/bin/Linux-g++/TPC TPC.mac
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 8434)]

*************************************************************
 Geant4 version Name: geant4-08-02-patch-01    (23-February-2007)
                      Copyright : Geant4 Collaboration
                      Reference : NIM A 506 (2003), 250-303
                            WWW : http://cern.ch/geant4
*************************************************************


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 8434)]
0x4359e3ab in G4ProcessManager::AddProcess (this=0x0, aProcess=0x824d610, o
    at src/G4ProcessManager.cc:389
389       if (  !aProcess->IsApplicable(*theParticleType) ) {
(gdb) bt
#0  0x4359e3ab in G4ProcessManager::AddProcess (this=0x0, aProcess=0x824d61
    at src/G4ProcessManager.cc:389
#1  0x420a231c in R3BPhysicsList::ConstructProcess (this=0x82277a8) at src/
#2  0x42fa34e9 in G4VUserPhysicsList::Construct (this=0x82277a8) at G4VUser
#3  0x42fa1daf in G4RunManagerKernel::InitializePhysics (this=0x8207440) at
#4  0x42fa6905 in G4RunManager::InitializePhysics (this=0x82073b8) at src/G
#5  0x42fa67c6 in G4RunManager::Initialize (this=0x82073b8) at src/G4RunMan
#6  0x0804b527 in main (argc=2, argv=0xbfb1bed4) at TPC.cc:97
(gdb)

-- KilianSchwarz - 17 Jan 2008
Topic revision: r1 - 2008-01-17, KilianSchwarz
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding GSI Wiki? Send feedback
Imprint (in German)
Privacy Policy (in German)