- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I've encountered a problem with the -check uninit option to ifx; a simple example is shown below. The memory error does not always show up when the program is run; hence I run the program repeatedly until it does occur. One can also encounter the issue by running with valgrind. I was wondering if you have any idea what the problem could be?
Thanks very much,
Neil.
pyb075000011:~> ifx --version
ifx (IFX) 2024.2.1 20240711
Copyright (C) 1985-2024 Intel Corporation. All rights reserved.
pyb075000011:~> cat s.f90
program prob
implicit none
integer :: x(2)
x=(/2,3/)
end program prob
pyb075000011:~> ifx -O0 -check uninit s.f90
pyb075000011:~> for ((i=0;i<1000;i++)) ; do ./a.out || break ; done
FATAL: Memory range 0x700000000000 - 0x73ffffffffff is not available.
FATAL: MemorySanitizer can not mmap the shadow memory.
FATAL: Make sure to compile with -fPIE and to link with -pie.
FATAL: Disabling ASLR is known to cause this error.
FATAL: If running under GDB, try 'set disable-randomization off'.
==2843062==Process memory map follows:
0x000000400000-0x00000040a000 /home/ndd21/a.out
0x00000040a000-0x0000005e0000 /home/ndd21/a.out
0x0000005e0000-0x00000062e000 /home/ndd21/a.out
0x00000062e000-0x000000630000 /home/ndd21/a.out
0x000000630000-0x000000633000 /home/ndd21/a.out
0x000000633000-0x000001fda000
0x010000000000-0x100000000000
0x100000000000-0x110000000000
0x110000000000-0x400000000000
0x400000000000-0x500000000000
0x500000000000-0x510000000000
0x600000000000-0x610000000000
0x610000000000-0x700000000000
0x70eeb8c00000-0x70eeb8d00000
0x70eeb8e00000-0x70eeb8f00000
0x70eeb9000000-0x70eeb9100000
0x70eeb9200000-0x70eeb9300000
0x70eeb9400000-0x70eeb978e000
0x70eeb9800000-0x70eeb9828000 /usr/lib/x86_64-linux-gnu/libc.so.6
0x70eeb9828000-0x70eeb99b0000 /usr/lib/x86_64-linux-gnu/libc.so.6
0x70eeb99b0000-0x70eeb99ff000 /usr/lib/x86_64-linux-gnu/libc.so.6
0x70eeb99ff000-0x70eeb9a03000 /usr/lib/x86_64-linux-gnu/libc.so.6
0x70eeb9a03000-0x70eeb9a05000 /usr/lib/x86_64-linux-gnu/libc.so.6
0x70eeb9a05000-0x70eeb9a12000
0x70eeb9ace000-0x70eeb9adc000
0x70eeb9adc000-0x70eeb9ae0000 /usr/lib/x86_64-linux-gnu/libgcc_s.so.1
0x70eeb9ae0000-0x70eeb9b03000 /usr/lib/x86_64-linux-gnu/libgcc_s.so.1
0x70eeb9b03000-0x70eeb9b07000 /usr/lib/x86_64-linux-gnu/libgcc_s.so.1
0x70eeb9b07000-0x70eeb9b08000 /usr/lib/x86_64-linux-gnu/libgcc_s.so.1
0x70eeb9b08000-0x70eeb9b09000 /usr/lib/x86_64-linux-gnu/libgcc_s.so.1
0x70eeb9b09000-0x70eeb9b19000 /usr/lib/x86_64-linux-gnu/libm.so.6
0x70eeb9b19000-0x70eeb9b98000 /usr/lib/x86_64-linux-gnu/libm.so.6
0x70eeb9b98000-0x70eeb9bf0000 /usr/lib/x86_64-linux-gnu/libm.so.6
0x70eeb9bf0000-0x70eeb9bf1000 /usr/lib/x86_64-linux-gnu/libm.so.6
0x70eeb9bf1000-0x70eeb9bf2000 /usr/lib/x86_64-linux-gnu/libm.so.6
0x70eeb9bf5000-0x70eeb9c0d000
0x70eeb9c0d000-0x70eeb9c0e000 /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
0x70eeb9c0e000-0x70eeb9c39000 /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
0x70eeb9c39000-0x70eeb9c43000 /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
0x70eeb9c43000-0x70eeb9c45000 /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
0x70eeb9c45000-0x70eeb9c47000 /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
0x7fff52a4d000-0x7fff52a6f000 [stack]
0x7fff52b96000-0x7fff52b9a000 [vvar]
0x7fff52b9a000-0x7fff52b9c000 [vdso]
0xffffffffff600000-0xffffffffff601000 [vsyscall]
==2843062==End of process memory map.
Link Copied

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page