Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault 11 after install on MacOS 13.6.7 #497

Open
andreasnossum opened this issue Aug 21, 2024 · 2 comments
Open

Segmentation fault 11 after install on MacOS 13.6.7 #497

andreasnossum opened this issue Aug 21, 2024 · 2 comments

Comments

@andreasnossum
Copy link

Dear developers,

I have problems installing CRPropa on my system

  • Operating system: MacOS Ventura 13.6.7
  • Laptop
  • Python version: 3.12.5 (conda environment)
  • Swig version: 4.2.1
  • Cmake version: 3.30.2

Did you install CRPropa from git or download a release?
I installed version 3f5d189 from git

Things that I tried before asking for help:
I read and followed the installation instructions at https://crpropa.github.io/CRPropa3/ ; especially the additional instructions for Mac OS (i.e. install LLVM with Homebrew and specify the LLVM and Python paths manually). I also looked through the previous issues regarding installation on Mac OS but could not find a fix that worked.

Problem
All installation steps with cmake run successfully, however, when importing crpropa in python I get the Segmentation fault 11 error and python crashes. Also, five tests fail when running make test.

CMakeCache.txt

  Start  1: testCore

1/20 Test #1: testCore ......................... Passed 1.26 sec
Start 2: testVector3
2/20 Test #2: testVector3 ...................... Passed 0.57 sec
Start 3: testModuleList
3/20 Test #3: testModuleList ................... Passed 0.57 sec
Start 4: testMagneticField
4/20 Test #4: testMagneticField ................ Passed 0.56 sec
Start 5: testTurbulentField
5/20 Test #5: testTurbulentField ............... Passed 0.69 sec
Start 6: testAdvectionField
6/20 Test #6: testAdvectionField ............... Passed 0.61 sec
Start 7: testDensity
7/20 Test #7: testDensity ...................... Passed 0.58 sec
Start 8: testPropagation
8/20 Test #8: testPropagation .................. Passed 0.61 sec
Start 9: testBreakCondition
9/20 Test #9: testBreakCondition ............... Passed 0.57 sec
Start 10: testInteraction
10/20 Test #10: testInteraction ..................***Failed 27.68 sec
Start 11: testSource
11/20 Test #11: testSource ....................... Passed 0.62 sec
Start 12: testOutput
12/20 Test #12: testOutput ....................... Passed 0.52 sec
Start 13: testFunctionalGroups
13/20 Test #13: testFunctionalGroups ............. Passed 0.54 sec
Start 14: testAdiabaticCooling
14/20 Test #14: testAdiabaticCooling ............. Passed 0.62 sec
Start 15: testCandidateSplitting
15/20 Test #15: testCandidateSplitting ........... Passed 0.56 sec
Start 16: testGalacticMagneticLens
16/20 Test #16: testGalacticMagneticLens ......... Passed 0.62 sec
Start 17: testSimulationExecution
17/20 Test #17: testSimulationExecution ..........***Exception: SegFault 0.89 sec
Start 18: testDiffusionSDE
18/20 Test #18: testDiffusionSDE .................***Exception: SegFault 0.48 sec
Start 19: testMomentumDiffusion
19/20 Test #19: testMomentumDiffusion ............***Exception: SegFault 0.35 sec
Start 20: testPythonExtension
20/20 Test #20: testPythonExtension ..............***Exception: SegFault 0.18 sec

75% tests passed, 5 tests failed out of 20

Total Test time (real) = 39.09 sec

The following tests FAILED:
10 - testInteraction (Failed)
17 - testSimulationExecution (SEGFAULT)
18 - testDiffusionSDE (SEGFAULT)
19 - testMomentumDiffusion (SEGFAULT)
20 - testPythonExtension (SEGFAULT)
Errors while running CTest
Output from these tests are in: /Users/andreasnossum/Documents/SourceCodes/crpropa/CRPropa3/build/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
make: *** [test] Error 8

@lukasmerten
Copy link
Member

Can you import python? python -c "from crpropa import *
Test-10 failing is not too problematic. We see that happening from time to time on OSX. The others are all python tests if I remember correctly. So I guess something went wrong with your python linking.

@andreasnossum
Copy link
Author

I tried running the command, but got the same segmentation fault as before:

(crpropa) dhcp-10-22-137-86:build andreasnossum$ python -c "from crpropa import *"
Segmentation fault: 11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
@lukasmerten @andreasnossum and others