[Trilinos-Users] [trilinos-users] Segmentation fault in stratimikos example
danewallinga at yahoo.com
Sat Jul 12 15:12:39 MDT 2008
Thanks for the suggestions. Evidently some of the stratimikos tests are failing, though I don't know how I missed that when I first compiled everything. It's only the Belos test, however, and even then only a few of them; so I'll look at those more closely and see if I can figure anything out. Regarding the segmentation faults, valgrind would make it seem that Teuchos is trying to delete references to empty memory; I was under the impression that RCP was supposed to handle all of that, but what I really can't figure out is how the state of my program would differ from the given example. The only change in execution is that I'm reading the linear problem from a matrix gallery rather than an external file. But again, thanks for the help; I'm thinking perhaps I should have better familiarized myself with C++ before trying to tackle Trilinos.
----- Original Message ----
From: "Bartlett, Roscoe A" <rabartl at sandia.gov>
To: Dane Wallinga <danewallinga at yahoo.com>; "trilinos-users at software.sandia.gov" <trilinos-users at software.sandia.gov>
Sent: Saturday, July 12, 2008 12:59:37 AM
Subject: RE: [Trilinos-Users] [trilinos-users] Segmentation fault in stratimikos example
I would suggest that you configure with
--enable-teuchos-debug and then compile and run again. This might help
catch the problem. Also, if you are running on Linux, you can run valgrind
to diagnose the error.
One question, when you type 'make runtests-serial', do
all of the stratimikos tests pass?
Dr. Roscoe A.
Member of the Technical Staff
Sandia National Laboratories
Phone: (505) 275-6147
From: trilinos-users-bounces at software.sandia.gov [mailto:trilinos-users-bounces at software.sandia.gov] On Behalf Of Dane Wallinga
Sent: Friday, July 11, 2008 10:44 PM
To: trilinos-users at software.sandia.gov
Subject: [Trilinos-Users] [trilinos-users] Segmentation fault in stratimikos
I'm relatively new to Trilinos, and c++ for that matter, and I've been encountering some problems while working with the simple_stratimikos_example in Stratimikos. Running the compiled .exe, I receive a segmentation fault when I try to specify Belos as the linear solver in the parameters xml. Is there any obvious reason why Belos would cause such an error where Amesos and AztecOO do not? Still more puzzling is the situation that arises when I modify the example to use initialize the linear system from a CrsMatrixGallery rather than a .mtx file; the problems with Belos persist, but now I receive faults with Ameses and AztecOO as well. What's puzzling is that the program does successfully return a solution, only throwing the Segmentation Fault when it comes time to output "_ of the tests checked out" While I'm sure this description is a bit vague, it would help debugging if I at least had some idea of what kind of segmentation fault would
arise that doesn't significantly affect the program output.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Trilinos-Users