| Summary: | Most magnetic field examples crash with a seg fault when compiled in MULTITHREADING | ||
|---|---|---|---|
| Product: | Examples/Basic and Novice | Reporter: | Kevin <likevincw> |
| Component: | B5 | Assignee: | Ivana Hrivnacova <ivana> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | ||
| Priority: | P5 | ||
| Version: | 10.0 | ||
| Hardware: | Apple | ||
| OS: | Mac OS X | ||
Could you, please, check if the fix provided in the bug report #1603: http://bugzilla-geant4.kek.jp/show_bug.cgi?id=1603 helps also in your case? Thank you, Hi Ivana I recompiled GEANT4 with the modification mentioned in the report (#1603) that you mentioned and the problem was solved. As explained, it was due to the fact that the newest version of GEANT4 10.0 p01 has not been compiled with the new clang version 3.4, which comes with Xcode. It is nice to know that this issue has been taken into account for the next release of GEANT. Thank you for the informative help Ivana. Regards Kevin *** This problem has been marked as a duplicate of problem 1603 *** |
Hi GEANT4 experts I am working on mac osx 10.8.5 and I have run into the problem of almost all magnetic field examples crashing when I compile and run in Multithreaded mode. When I run these examples, e.g. B5 or even my own simulation in sequential mode, it works perfectly, however in multithreaded mode it crashes after a few events with a segmentation fault ("Segmentation fault: 11"). In another post related to the crashing of examples in multithreaded mode on mac osx (albeit 10.9), the issue was related to the apparently temperamental USOLIDS build option, but I did not use that in my compilation of multithreaded GEANT4. My command for building GEANT4 is below: cmake -DCMAKE_INSTALL_PREFIX=/Users/kevinchingweili/GEANT4/geant4.10.00.p01-installMTclang/ -DGEANT4_BUILD_MULTITHREADED=ON -DGEANT4_USE_OPENGL_X11=ON /Users/kevinchingweili/GEANT4/geant4.10.00.p01 I also tried a build with -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ which is what the installation guide suggests for 10.7.1 but the result is the same. I would appreciate any help Kind regards Kevin