# Trouble using -check uninit

**URL:** <https://community.intel.com/t/trouble-using-check-uninit/136162>\
**Category:** Intel® Fortran Compiler\
**Created:** [December 12, 2025, 7:11pm UTC](https://community.intel.com/t/trouble-using-check-uninit/136162 "2025-12-12T19:11:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![vanderwb](https://avatars.discourse-cdn.com/v4/letter/v/0046C8/32.png) [@vanderwb](https://community.intel.com/u/vanderwb)\
**Post date:** [December 12, 2025, 7:11pm UTC](https://community.intel.com/t/trouble-using-check-uninit/136162/1 "2025-12-12T19:11:43Z")

</div>

We’re trying to use the&nbsp; **-check uninit** feature in ifx and running into what appear to be very basic false positives with glibc. Here is a test program:

```auto
program test<br> implicit none<br> integer :: i = 4<br>end program test

```

This is then compiled using:

```auto
$ ifx -check uninit -g -O0 test.f90

```

and then when it is run, we get:

```auto
$ ./a.out<br>==34877==WARNING: MemorySanitizer: use-of-uninitialized-value<br>#0 0x00000040d2d2 in _GLOBAL __sub_I_fast_mem_ops.c fast_mem_ops.c<br>#1 0x7fabb902b43e in__ libc_start_main@GLIBC_2.2.5 (/lib64/libc.so.6+0x2b43e) (BuildId: 8523b213e7586a93ab00f6dd476418b1e521e62c)<br>#2 0x00000040d344 in _start /home/abuild/rpmbuild/BUILD/glibc-2.42-build/glibc-2.42/csu/../sysdeps/x86_64/start.S:115<br><br>Uninitialized value was created by an allocation of 'a.i.i' in the stack frame<br>#0 0x00000040c741 in _GLOBAL __sub_I_fast_mem_ops.c fast_mem_ops.c<br><br>SUMMARY: MemorySanitizer: use-of-uninitialized-value fast_mem_ops.c in _GLOBAL__ sub_I_fast_mem_ops.c<br>Exiting

```

We’re using Intel OneAPI Compilers 2025.2.1, but have tried multiple versions through 2025.3. This is on SLES 15.6.

---

<div class="post-metadata">

**Author:** ![Mark\_Lewy](https://avatars.discourse-cdn.com/v4/letter/m/0046C8/32.png) [@Mark\_Lewy](https://community.intel.com/u/Mark_Lewy)\
**Post date:** [December 15, 2025, 10:34am UTC](https://community.intel.com/t/trouble-using-check-uninit/136162/2 "2025-12-15T10:34:14Z")

</div>

I’ve just tried this with ifx 2025.3 and Ubuntu 22.04.5 LTS on WSL and had no issues.

While “SuSE LINUX Enterprise Server\*&nbsp;15 SP4, SP5, SP6” are on the list of supported releases in the [Intel® Fortran Compiler System Requirements](https://www.intel.com/content/www/us/en/developer/articles/system-requirements/fortran-compiler/2025.html), they are deprecated. SP7 is the recommended version.&nbsp; If you can, see if upgrading to that helps.

---

<div class="post-metadata">

**Author:** ![MarcGrodent](https://avatars.discourse-cdn.com/v4/letter/m/00C7FD/32.png) [@MarcGrodent](https://community.intel.com/u/MarcGrodent)\
**Post date:** [December 15, 2025, 1:39pm UTC](https://community.intel.com/t/trouble-using-check-uninit/136162/3 "2025-12-15T13:39:43Z")

</div>

This is strange. I have exactly the same configuration as you (Ubuntu 22.04.5 LTS on WSL; IFX 2025.3.0), but I get the same warning message as&nbsp; @vanderwb &nbsp; at runtime as soon as the flag “ **-check uninit** ” is activated (both in debug and release modes).

---

<div class="post-metadata">

**Author:** ![vanderwb](https://avatars.discourse-cdn.com/v4/letter/v/0046C8/32.png) [@vanderwb](https://community.intel.com/u/vanderwb)\
**Post date:** [December 15, 2025, 4:19pm UTC](https://community.intel.com/t/trouble-using-check-uninit/136162/4 "2025-12-15T16:19:26Z")

</div>

Thanks, Mark. This being an HPC cluster, upgrading to SP7 isn’t something we are able to do in the short term. That said, I run OpenSUSE Tumbleweed - up to date with upgrades - and see the same problem at home.

I could try testing this in an OpenSUSE 15.7 container image, but given Marc’s comment that he can reproduce in Ubuntu, perhaps that is not necessary. I wonder if some system packages need to be installed for this to work properly?

---

<div class="post-metadata">

**Author:** ![Mark\_Lewy](https://avatars.discourse-cdn.com/v4/letter/m/0046C8/32.png) [@Mark\_Lewy](https://community.intel.com/u/Mark_Lewy)\
**Post date:** [December 16, 2025, 9:29am UTC](https://community.intel.com/t/trouble-using-check-uninit/136162/5 "2025-12-16T09:29:13Z")

</div>

Yes, that might be the problem. I wonder if the two different versions of glibc reported by the memory sanitizer are significant?

```auto
#1 0x7fabb902b43e in __libc_start_main@GLIBC_2.2.5 (/lib64/libc.so.6+0x2b43e) (BuildId: 8523b213e7586a93ab00f6dd476418b1e521e62c)<br>#2 0x00000040d344 in _start /home/abuild/rpmbuild/BUILD/glibc-2.42-build/glibc-2.42/csu/../sysdeps/x86_64/start.S:115

```

FYI,

“getconf GNU\_LIBC\_VERSION” returns “glibc 2.35” on my instance.

“ldd a.out” returns

linux-vdso.so.1 (0x00007ffef53db000)  
libm.so.6 =\> /lib/x86\_64-linux-gnu/libm.so.6 (0x000074d02dc4f000)  
libc.so.6 =\> /lib/x86\_64-linux-gnu/libc.so.6 (0x000074d02da00000)  
libgcc\_s.so.1 =\> /lib/x86\_64-linux-gnu/libgcc\_s.so.1 (0x000074d02dc2b000)  
/lib64/ld-linux-x86-64.so.2 (0x000074d02dd41000)

(I expect this is going to be somewhat different for you, because your distro is different)

---

<div class="post-metadata">

**Author:** ![vanderwb](https://avatars.discourse-cdn.com/v4/letter/v/0046C8/32.png) [@vanderwb](https://community.intel.com/u/vanderwb)\
**Post date:** [December 22, 2025, 9:45pm UTC](https://community.intel.com/t/trouble-using-check-uninit/136162/6 "2025-12-22T21:45:38Z")

</div>

Hi Mark,

Thanks again for the reply. I don’t think the glibc ecosystem is a problem - or at least the versions. Our glibc version on our system is 2.38, as indicated by getconf. Our system libc does support some symbols versioned back to 2.2.5, but this should be fine. I haven’t read anything in the LLVM memory sanitizer documentation suggesting otherwise, at least.

I’ll play around in an Ubuntu container image to see if I can determine anything else, but right now I don’t have any leads.

Regards,  
Brian

---

<div class="post-metadata">

**Author:** ![MarcGrodent](https://avatars.discourse-cdn.com/v4/letter/m/00C7FD/32.png) [@MarcGrodent](https://community.intel.com/u/MarcGrodent)\
**Post date:** [November 18, 2026, 1:49pm UTC](https://community.intel.com/t/trouble-using-check-uninit/136162/7 "2026-11-18T13:49:29Z")

</div>

The same problem is still there with the latest ifx version (2026.2.0). I’ve just tested with Ubuntu 26.04.1 LTS on WSL (3.0.5.0). Adding the “-check uninit” option leads to the following message at runtime:

```auto
#0 0x00000043a414 in _GLOBAL__sub_I_fast_mem_ops.c fast_mem_ops.c
#1 0x7bc27c62a793 in __libc_start_main (/usr/lib/x86_64-linux-gnu/libc.so.6+0x2a793) (BuildId: 9851d79b1f32e900a27f8d0a68e29d750303f0c6)
#2 0x00000043a484 in _start (/home/grodent/test/a.out+0x43a484) (BuildId: 54a5a32fae383a098052f92ce6b50062f2fd420f)

```

Uninitialized value was created by an allocation of ‘a.i.i’ in the stack frame  
#0 0x00000043989a in \_GLOBAL\_\_sub\_I\_fast\_mem\_ops.c fast\_mem\_ops.c

SUMMARY: MemorySanitizer: use-of-uninitialized-value fast\_mem\_ops.c in \_GLOBAL\_\_sub\_I\_fast\_mem\_ops.c  
Exiting
