Debugging a segmentation fault?
I'm having a problem with at segmentation fault in turbDyMFoam. I'm attempting a rotating mesh and something about moving that mesh is causing the fault, with no error or warning message. I would like to gather more information on the cause of the fault.
I can fire up GDB and get the name of the routines it was in, but that's not very useful. I have 2 questions:
1) Is there an option to turbDyMFoam to give more debugging information?
2) Is there an easy way to compile in debug mode. I have developed unix (solaris) code, but I only used makefiles. These huge trees with wmakes and cmakes are strange to me. Is there a master options list somewhere?
in $FOAM_SRC/../etc/cshrc you find
This adds full debug information to your library and executables which you can use "gdb" OR "valgrind --tool=memcheck" on. I find the latter very useful for finding memory violations.
Here are also a few links that I found quickly after googling "openfoam debugging".
Good luck hunting
Thanks for the reply. I actually found my problem, but I will keep this information for the next one that comes up.
turbDyMFoam segmentation fault
[QUOTE=hansel;221636]Thanks for the reply. I actually found my problem, but I will keep this information for the next one that comes up.
can you please explane me problems about turbDyMFoam you had? I Think I have the same problem. Can you please give me some advice in order to set up ggi in turbDyMFoam cases?
|All times are GMT -4. The time now is 07:00.|