-
Notifications
You must be signed in to change notification settings - Fork 68
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
segfault in testOutput #177
Comments
Run it individually like ./testOutput in the build directory and c/p here the output. |
I get the following output: Running main() from gtest_main.cc [----------] 7 tests from TextOutput [----------] 5 tests from ParticleCollector |
Tnx Alex. It seems that there is a memory management issue in the getTrajectory feature. In principle, it will not affect running CRPropa if you don't use ParticleCollector.getTrajectory(). But you can help me debug it if you want...
(instead of After you recompile it, run GNU debugger:
(enter |
I copied the entire ouput: Running main() from gtest_main.cc [----------] 7 tests from TextOutput [----------] 5 tests from ParticleCollector Program received signal SIGBUS, Bus error. |
Can you give details on what hardware and OS you run it? I cannot reproduce the error and I don't see which pointer causes the segfault from this output. |
I assume that this problem has been fixed by now as there has not been an update for three month. Please reopen if this is not the case. |
I tried to install CRPropa locally on our cluster. Up to ccmake .., everything worked fine. Afterwards, when doing "make test", the following error occured:
Running tests...
Test project /lustre/kaeaepae/Software/CRPropa/build
Start 1: testCore
1/14 Test #1: testCore ......................... Passed 0.46 sec
Start 2: testVector3
2/14 Test #2: testVector3 ...................... Passed 0.01 sec
Start 3: testModuleList
3/14 Test #3: testModuleList ................... Passed 0.38 sec
Start 4: testMagneticField
4/14 Test #4: testMagneticField ................ Passed 0.65 sec
Start 5: testAdvectionField
5/14 Test #5: testAdvectionField ............... Passed 0.36 sec
Start 6: testDINT
6/14 Test #6: testDINT ......................... Passed 0.42 sec
Start 7: testPropagation
7/14 Test #7: testPropagation .................. Passed 0.37 sec
Start 8: testBreakCondition
8/14 Test #8: testBreakCondition ............... Passed 0.37 sec
Start 9: testInteraction
9/14 Test #9: testInteraction .................. Passed 22.12 sec
Start 10: testSource
10/14 Test #10: testSource ....................... Passed 0.62 sec
Start 11: testOutput
11/14 Test #11: testOutput .......................***Exception: SegFault 0.39 sec
Start 12: testFunctionalGroups
12/14 Test #12: testFunctionalGroups ............. Passed 0.37 sec
Start 13: testAdiabaticCooling
13/14 Test #13: testAdiabaticCooling ............. Passed 0.37 sec
Start 14: testGalacticMagneticLens
14/14 Test #14: testGalacticMagneticLens ......... Passed 0.50 sec
93% tests passed, 1 tests failed out of 14
Total Test time (real) = 27.45 sec
The following tests FAILED:
11 - testOutput (SEGFAULT)
Errors while running CTest
make: *** [test] Error 8
Does anyone have a hunch what might be wrong with "testOutput"?
The text was updated successfully, but these errors were encountered: