hidden text to trigger early load of fonts ПродукцияПродукцияПродукцияПродукция Các sản phẩmCác sản phẩmCác sản phẩmCác sản phẩm المنتجاتالمنتجاتالمنتجاتالمنتجات מוצריםמוצריםמוצריםמוצרים
Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

ifx linking memory issue

cxp484
Beginner
332 Views

Hi,

We are using the latest IFX compiler to compile the Fire Dynamics Simulator (FDS) codebase (https://github.com/firemodels/fds). Occasionally, we encounter the following errors during the linking stage:

-------Error#1--------------------------

free(): corrupted unsorted chunks
73ifx: error #10105: ld: core dumped
74ifx: warning #10102: unknown signal(867702016)
75ifx: error #10106: Fatal error in ld, terminated by unknown
76make: *** [../makefile:242: impi_intel_linux] Error 1
 
-------Error#2--------------------------

 ifx: error #10105: ld: core dumped

74ifx: warning #10102: unknown signal(682815504)
75ifx: error #10106: Fatal error in ld, terminated by unknown
76make: *** [../makefile:242: impi_intel_linux] Error 1
 
 

The issue is sporadic and difficult to reproduce. If we rebuild after encountering the error, the build completes successfully without any modifications. This happens both in our local cluster (RedHat Linux) and GitHub actions (Ubuntu)

We are using a local Linux system with 500 GB of RAM, so it’s unlikely that memory limitations are causing the problem. You can find our build and compilation commands at the following links:

 
 
 

Has anyone encountered similar errors? Could this be a potential bug in the LTO (Link-Time Optimization) stage of the compiler?

 

Best regards,
CP

     

0 Kudos
4 Replies
cxp484
Beginner
216 Views

Additional information: We ran a script which build fds repository (https://github.com/firemodels/fds) 100 times and the failure message comes 11 times with  -ipo -O2 compiling (and linking) option. If we remove -ipo, the build passes 100 times without any error message. So, it probably indicate that the error in my earlier post is related to ipo (-flto) implementation. 

0 Kudos
Ron_Green
Moderator
211 Views

This one is an unusual error.  I see some hits with web searches for this error going back over 10 years for many languages, not just Fortran.  Are you using a VM?  Or what OS distro and version are you using?  and ld version? 

I'll ask our compiler driver team if anyone else has reported this issue.

 

One other question - does the script run the 100 builds serially or in parallel ( how many builds at once ?)

0 Kudos
Kevin_McGrattan
196 Views

I work with cxp484. I have submitted this issue to priority support but have had no response. We use RedHat 9.3 on a linux server. The compilation failure occurs both on our server and on GitHub Actions. We are using ifx  2025.0.4 20241205, but there error occurred with earlier versions of ifx.

 

$ hostnamectl
Static hostname: spark-login
Icon name: computer-server
Chassis: server 🖳
Machine ID: 88943d6e51ae4d928bbbbfec99611388
Boot ID: fd256dfeb68847448807fe1b4263b192
Operating System: Red Hat Enterprise Linux 9.3 (Plow)
CPE OS Name: cpe:/o:redhat:enterprise_linux:9::baseos
Kernel: Linux 5.14.0-503.15.1.el9_5.x86_64
Architecture: x86-64
Hardware Vendor: GIGABYTE
Hardware Model: R182-M80-00
Firmware Version: F25

0 Kudos
cxp484
Beginner
191 Views

In addition to Reply from Kevin: On our Linux server the 'ld -v' command output is 'GNU ld version 2.35.2-42.el9_3.1'. 

 

The 100 build script I mentioned before run one build after another, so sequentially. After each build we clean the obj and mod files and start afresh. 

0 Kudos
Reply