Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

[toml-f] SegFault of ifx with LTO

foxtran
New Contributor II
1,049 Views

Hello!

I have tried to compile toml-f project with -flto with ifx 2025.1.0.

However, one of files produces SegFault of compiler:

          #0 0x0000000003310581
          #1 0x0000000003375357
          #2 0x0000000003375485
          #3 0x00007f0edb28cb50
          #4 0x0000000003aebe66
          #5 0x0000000003aeba8a
          #6 0x0000000003aeb9ba
          #7 0x0000000003aeb6c1
          #8 0x0000000003ae8f9a
          #9 0x0000000003ae902b
         #10 0x0000000003ae98aa
         #11 0x0000000002364886
         #12 0x000000000236928e
         #13 0x00000000022ebc9b
         #14 0x0000000002463873
         #15 0x0000000002463703
         #16 0x0000000003ce3a1f
         #17 0x000000000234bfe2
         #18 0x00000000023c8283
         #19 0x00000000023c7fb0
         #20 0x00000000023753fe
         #21 0x0000000002373342
         #22 0x0000000002372a61
         #23 0x000000000267ea20
         #24 0x000000000267e5b1
         #25 0x00000000029eb46b
         #26 0x00000000029ea801
         #27 0x00000000024f70ba
         #28 0x0000000002d1c422
         #29 0x0000000002d1c1c1
         #30 0x00000000024f70ba
         #31 0x00000000032ae29a
         #32 0x00000000032abde3
         #33 0x0000000003256111
         #34 0x0000000003433b58
         #35 0x00007f0edb278d85 __libc_start_main + 229
         #36 0x000000000308f0ee

toml-f/src/tomlf/de.f90: error #5633: **Internal compiler error: segmentation violation signal raised** Please report this error along with the circumstances in which it occurred in a Software Problem Report.  Note: File and line given may not be explicit cause of this error.

 

It happens with file https://github.com/toml-f/toml-f/blob/main/src/tomlf/de.f90

The problem has gone once I commented out the following lines:
https://github.com/toml-f/toml-f/blob/056d3620dcc925d2f94d09b80f6b6c29b99eaab6/src/tomlf/de.f90#L66
https://github.com/toml-f/toml-f/blob/056d3620dcc925d2f94d09b80f6b6c29b99eaab6/src/tomlf/de.f90#L80

Commenting only one of them does not help. 

Looks like there is some issues optional complex types passed by name. It happens only with enabled LTO.

Steps to reproduce:

git clone https://github.com/toml-f/toml-f
cd toml-f
cmake -DCMAKE_Fortran_COMPILER=ifx -DCMAKE_Fortran_FLAGS="-flto" -B build
make -j 12 -C build


ifx version:

$ ifx --version
ifx (IFX) 2025.1.0 20250317
Copyright (C) 1985-2025 Intel Corporation. All rights reserved.

 

0 Kudos
4 Replies
foxtran
New Contributor II
962 Views

In the attachment one can find minimized de.f90.

It is interesting that after deletion of ` type(toml_lexer) :: lexer !< do not delete` line ICE does not happen. Hope, it will help to debug this ICE. 

0 Kudos
taehunkim
Employee
859 Views

Hi,

We found an internal compiler error and started triaging it with development team.

Thanks.

foxtran
New Contributor II
783 Views
0 Kudos
taehunkim
Employee
517 Views

Issue is resolved in 2025.2

Thanks.

0 Kudos
Reply