Intel® oneAPI DPC++/C++ Compiler
Talk to fellow users of Intel® oneAPI DPC++/C++ Compiler and companion tools like Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and Intel® Distribution for GDB*
594 Discussions

segmentation fault in clang frontend with -fsanitize=undefined

fvanderhave
Beginner
284 Views

Hello,

 

When I attempt to compile the attached C source file with the 2024.1 version of icx, the compiler itself experiences an error (segfault in clang frontend).

/opt/intel/oneapi/compiler/latest/bin/icx --version
Intel(R) oneAPI DPC++/C++ Compiler 2024.1.0 (2024.1.0.20240308)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/intel/oneapi/compiler/2024.1/bin/compiler
Configuration file: /opt/intel/oneapi/compiler/2024.1/bin/compiler/../icx.cfg

The invocation to reproduce the problem:

/opt/intel/oneapi/compiler/latest/bin/icx -Wall -Wextra -fsanitize=undefined
-o icx_sanitize_problem icx_sanitize_problem.c

 

This compiles and runs without problems when it is compiled with icx without the undefined behavior sanitizer, or when it is compiled with gcc or clang, with or without the sanitizer option.

 

Best regards,
Frans.

0 Kudos
1 Solution
Jie_L_Intel
Employee
177 Views

This bug is planned to be fixed in next release of Base Toolkit.

View solution in original post

0 Kudos
3 Replies
Alex_Y_Intel
Moderator
251 Views

This issue has been escalated to our engineers and we'll work on it internally and come back with update when we reach the conclusion. 

0 Kudos
Jie_L_Intel
Employee
178 Views

This bug is planned to be fixed in next release of Base Toolkit.

0 Kudos
fvanderhave
Beginner
174 Views

Excellent. Thanks.

0 Kudos
Reply