|Message: Segmentation fault in G4NeutronHPInelastic::~G4NeutronHPInelastic()||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
I was testing Geant4.10.1 with two separate builds, one in sequential mode while another in multithreading mode. When I run the sequential build using basic exampleB1 with Qt enabled, I got segmentation fault (but the same steps have no issue in multithreading mode) similar to this thread :http://hypernews.slac.stanford.edu/HyperNews/geant4/get/installconfig/1700.html. The only change I made in basic example B1 is changing reference physics list to QGSP_BIC_HP.
To be completely clear, this is how I build exampleB1 in sequential mode. Please advise if I am doing it correctly:
$ mkdir B1-build $ ls B1 B1-build $ cd B1-build $ . ~/geant4.10.1-build/share/Geant4-10.1.0/geant4make/geant4make.sh <-- (source geant4make.sh from sequential build) $ cmake ../B1 $ make
When I use sequential build to run exampleB1 in gdb, gui menu first appears. Then I key in "exit" without running beam, and I got segmentation fault:
Starting program: /home/geant4/geant4_workdir/examples/basic/B1-build/exampleB1 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Available UI session types: [ Qt, GAG, tcsh, csh ] [New Thread 0x7fffe5e8d700 (LWP 1102)] [New Thread 0x7fffe568c700 (LWP 1103)] [New Thread 0x7fffe4e8b700 (LWP 1104)] [New Thread 0x7fffd7fff700 (LWP 1105)] [New Thread 0x7fffd70e0700 (LWP 1107)] [New Thread 0x7fffd68df700 (LWP 1108)] Detaching after fork from child process 1109. warning: Corrupted shared library list: 0x1089b30 != 0x9619b0 [Thread 0x7fffe4e8b700 (LWP 1104) exited] [Thread 0x7fffd7fff700 (LWP 1105) exited]
Graphics systems deleted. Visualization Manager deleting... G4 kernel has come to Quit state. UserDetectorConstruction deleted. UserPhysicsList deleted. UserActionInitialization deleted. UserRunAction deleted. UserPrimaryGenerator deleted. RunManager is deleting RunManagerKernel. EventManager deleted. Units table cleared. Total navigation history collections cleaned: 2 ================== Deleting memory pools =================== Number of memory pools allocated: 3; of which, static: 0 Dynamic pools deleted: 3 / Total memory freed: 0.0048 Mb ============================================================ G4Allocator objects are deleted. UImanager deleted. StateManager deleted. RunManagerKernel is deleted. Good bye :)
Program received signal SIGSEGV, Segmentation fault. 0x00007ffff41ef220 in G4NeutronHPInelastic::~G4NeutronHPInelastic() () from /home/geant4/geant4.10.1-build/outputs/library/Linux-g++/libG4processes.so
Here is the stacktrace:
(gdb) bt #0 0x00007ffff41ef220 in G4NeutronHPInelastic::~G4NeutronHPInelastic() () from /home/geant4/geant4.10.1-build/outputs/library/Linux-g++/libG4processes.so #1 0x00007ffff41ef709 in G4NeutronHPInelastic::~G4NeutronHPInelastic() () from /home/geant4/geant4.10.1-build/outputs/library/Linux-g++/libG4processes.so #2 0x00007ffff4193859 in G4HadronicInteractionRegistry::Clean() () from /home/geant4/geant4.10.1-build/outputs/library/Linux-g++/libG4processes.so #3 0x00007ffff3ef5b61 in G4HadronicProcessStore::~G4HadronicProcessStore() () from /home/geant4/geant4.10.1-build/outputs/library/Linux-g++/libG4processes.so #4 0x00007ffff3ef6ef7 in G4ThreadLocalSingleton<G4HadronicProcessStore>::Clear() () from /home/geant4/geant4.10.1-build/outputs/library/Linux-g++/libG4processes.so #5 0x00007ffff3ef6f3f in G4ThreadLocalSingleton<G4HadronicProcessStore>::~G4ThreadLocalSingleton() () from /home/geant4/geant4.10.1-build/outputs/library/Linux-g++/libG4processes.so #6 0x000000322f2390e9 in __run_exit_handlers (status=0, listp=0x322f5b76c8 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true) at exit.c:82 #7 0x000000322f239135 in __GI_exit (status=<optimized out>) at exit.c:104 #8 0x000000322f221d6c in __libc_start_main (main=0x408300 <main>, argc=1, argv=0x7fffffffd898, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffd888) at libc-start.c:319 #9 0x0000000000408239 in _start ()
If the information helps, I am using gcc version 4.8.3 in Fedora 20, geant4 is compiled against c++11.