Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29280 Discussions

Program seg faults at start up, and debugger also fails

cgp
Beginner
1,031 Views
I'm using Redhat 7.1 and ifort v8.1. I am compiling some Fortran code which links with the HDF5 library (from Carnegie Mellon Univ) - other programs work find with this. But this one seg faults on start up.

I have tried to debug with idb but it also fails:

> idb hexp
Linux Application Debugger for 32-bit applications, Version 8.1-3, Build 20040715
------------------
object file name: hexp
Error: could not start debuggee
Could not start process for hexp
No image loaded ... Recovering ...

I have changed my stack size to unlimited (following suggestions in other threads that this might be a problem) and tried reducing my arrays to trivial sizes (few hundred elements) all to no avail. I've tried simplifying the code but unless I cut out a whole lot it still seg faults, and with only a tiny amount of code left it works fine. I've run out of ideas for the moment.
0 Kudos
4 Replies
Steven_L_Intel1
Employee
1,031 Views
Try raising the datasize limit.
0 Kudos
walburn
Beginner
1,031 Views
I am also having the same problem. How does one increase the datasize ? I have increased the stack size to unlimited.
Thanks.
0 Kudos
walburn
Beginner
1,031 Views
Even after increasing the data segment size and the stack size, I am not able to execute my application or run it through idb. I am running my application on RedHat Linux 7.2 with Intel compilers 8.1
It is a C++ application.

Thanks,
0 Kudos
Steven_L_Intel1
Employee
1,031 Views
It could be that you have static arrays that add up to 2GB or more.
0 Kudos
Reply