CFD Online Logo CFD Online URL
Home > Forums > Main CFD Forum

How to debug .so library in the source code level

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   October 22, 2006, 07:04
Default How to debug .so library in the source code level
Posts: n/a
I compiled a Fortram/c/c++ mixed language program using intel compilers with options: -g, and much dynamic library .so and an executive were generated, but when trying to debug it using PGDBG(from PGI group), the debuger aborted after a moment, and during this short interval, I foung the memory and swap space were used out, and this case, I do not know what is the reason. For the same program, when debug using TotalView, I can not see the source code and of course, I do not know where the program goes, Can anyone help me on this problem. Thanks in advance.

  Reply With Quote

Old   October 23, 2006, 07:43
Default Re: How to debug .so library in the source code le
Posts: n/a
Unless you have the source code for the library your debug options are going to be limited, because the compiler has no way of instrumenting a binary library for debugging. You may be stuck with the tried-and-true method of putting in write statements to determine where the code is dying.
  Reply With Quote

Old   October 23, 2006, 09:29
Default Re: How to debug .so library in the source code le
Posts: n/a
I have all the source code of it, compilered with -g, but it seems that Totalview can not know where to find the source code??
  Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Git or other systems for source code and documentation management olesen OpenFOAM 4 November 12, 2009 11:03
modify the source code of simpleSRFFoam solver Pirlo OpenFOAM Programming & Development 0 October 19, 2009 08:49
Understanding k-omega SST model source code tmhonka OpenFOAM Programming & Development 1 September 8, 2009 07:33
heat equation solution source code john Main CFD Forum 1 May 27, 2004 23:41
Which is better to develop in-house CFD code or to buy a available CFD package. Tareq Al-shaalan Main CFD Forum 10 June 12, 1999 23:27

All times are GMT -4. The time now is 17:26.