| View previous topic :: View next topic |
| Author |
Message |
BenjaminMiller66516
Joined: 08 Sep 2009 Posts: 2
|
Posted: Tue Mar 30, 2010 12:39 pm Post subject: program seg faults unless compiled with -g |
|
|
I've been part of a Fortran95 code conversion for a large molecular dynamics program; the code compiles and completes test cases for both GCC/gfortran and Intel/ifort compilers. With PGI/pgf95 (including 10.3), code compiled without -g (at any optimization level) fails most of the test cases with segmentation violations, which seem to come from routine __hpf_bcopysl
Because the error does not occur when compiled with -g, it has been difficult to track down any further. Suggestions are appreciated, as we'd like to continue to support the PGI compiler with the program installation procedures. |
|
| Back to top |
|
 |
Malcolm Bibby
Joined: 16 Nov 2009 Posts: 28
|
Posted: Tue Mar 30, 2010 1:04 pm Post subject: |
|
|
For what it is worth, I have a similar problem, on a large body of code that I am converting from Intel to PGI. In my case, -gopt, with O0 and O1 seem fine, it is when I use -gopt and O2 that I get the segmentatiion fault.
Strategically placed write statements make the problem disappear, but that is not a practical solution.
Malcolm Bibby |
|
| Back to top |
|
 |
Tuan
Joined: 11 Jun 2009 Posts: 226
|
Posted: Tue Mar 30, 2010 1:14 pm Post subject: |
|
|
| this happened to me once also. |
|
| Back to top |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 5001 Location: The Portland Group Inc.
|
Posted: Tue Mar 30, 2010 3:21 pm Post subject: |
|
|
Hi BenjaminMiller66516,
"__hpf_bcopysl" is a runtime routine that performs strided bcopy. Most likely one or more of the arrays being copied is getting corrupted somehow.
Would it be possible for me to download the code and investigate the error?
Thanks,
Mat |
|
| Back to top |
|
 |
BenjaminMiller66516
Joined: 08 Sep 2009 Posts: 2
|
Posted: Wed Mar 31, 2010 10:28 am Post subject: |
|
|
| Not directly, as there are some license issues and commercial entanglements. We can probably arrange access to the source, likely subject to a formal non-disclosure agreement. We have a PGI subscription; should we file a support request to facilitate this? |
|
| Back to top |
|
 |
|