Intel® MPI Library
Get help with building, analyzing, optimizing, and scaling high-performance computing (HPC) applications.
2228 Discussions

MemorySanitizer:DEADLYSIGNAL when compiling for runtime debug using mpiifx

Mus
Novice
3,067 Views

Hello All, 

I am using Intel OneAPI 2024, and I noticed when compiling in check using: 

-C -g -check -assume byterecl -check all -gen-interfaces -traceback -assume byterecl -fpe0 -qopenmp $(OPTPRE) -warn nostderrors

(OPTPRE: is some pre-processing command)

with mpiifx I get the following error on runtime, before any output from the program itself: 

MemorySanitizer:DEADLYSIGNAL
==22054==ERROR: MemorySanitizer: SEGV on unknown address 0x000000000413 (pc 0x000000000413 bp 0x7fff50f50a55 sp 0x7fff50f509a8 T22054)
==22054==Hint: pc points to the zero page.
==22054==The signal is caused by a READ memory access.
==22054==Hint: address points to the zero page.
MemorySanitizer:DEADLYSIGNAL
MemorySanitizer: nested bug in the same thread, aborting.

Compiling with mpiifort, does not give rise to this error.

I have noticed this recently just after I updated to Intel OneAPI 2024.

 

I am not trying to debug my code, I am just wondering if this is expected behavior, and if so, how would I interpret this message to fix the error? 

PS: with mpiifort the runtime debug is running normally as before I upgraded. 

 

Thank you and have a lovely day. 

Mus

0 Kudos
1 Solution
TobiasK
Moderator
2,991 Views

@Mus


please add -check all,nouninit for the time being (also please note your compilation line contains -C -check and -check all which is redundant...)


I will have to check with the compiler team how to avoid that.


View solution in original post

0 Kudos
5 Replies
Barbara_P_Intel
Employee
3,043 Views

I'll move this to the HPC Toolkit Forum. That forum is best for MPI issues.

 

TobiasK
Moderator
2,992 Views

@Mus


please add -check all,nouninit for the time being (also please note your compilation line contains -C -check and -check all which is redundant...)


I will have to check with the compiler team how to avoid that.


0 Kudos
Mus
Novice
2,990 Views

@TobiasK  Thank you for the reply. 

Adding the nouninit flag seemed to have solved the issue. I'm gonna go ahead and mark this as solved. 

 

0 Kudos
TobiasK
Moderator
2,968 Views

@Mus


Ron updated his 'Known bug post'

https://community.intel.com/t5/Intel-Fortran-Compiler/Known-bug-with-check-all-or-check-uninit-in-ifx-2024-0-0-for/m-p/1545825


For the time being, -check uninit will not work with either MPI nor MKL. Unfortunately, uninit is part of check all for now.


Mus
Novice
2,961 Views

Thanks for the update @TobiasK , I will inform my team so they update their makefiles. 

 

0 Kudos
Reply