CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 (https://www.cfd-online.com/Forums/su2/)
-   -   SU2 debug mode. (https://www.cfd-online.com/Forums/su2/134445-su2-debug-mode.html)

neetin April 29, 2014 17:29

SU2 debug mode.
 
Is there an (debug) option to get more information when SU2 quits with an error, say segmentation fault?

aniketaranake May 15, 2014 15:31

Quote:

Originally Posted by neetin (Post 489006)
Is there an (debug) option to get more information when SU2 quits with an error, say segmentation fault?

What I have done in this past is to set the environment variable CXXFLAGS to use gcc's debug flags, i.e.
Code:

$ export CXXFLAGS=-g
$ ./configure

This way, the debug symbols will be compiled into the binaries. You can then run the code inside a debugging environment such as gdb.

Several IDEs such as Xcode and Eclipse also include features to help debug.

I hope this helps,
Aniket

neetin May 16, 2014 14:30

Thanks, Aniket. That helps.

aylalisa June 3, 2014 12:56

Hello Aniket,

could you explain me how I can recompile gcc? I work with OpenSuse 13.1.

Aylalisa

rktchip June 5, 2014 14:48

Aylalisa,
Check out this guide in case it helps -
http://adl-public.stanford.edu/docs/...on+from+Source


All times are GMT -4. The time now is 21:02.