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

free(): invalid pointer: 0x000000013137f150

tliam
Beginner
1,574 Views

Hi, I am running a fortran program compiled with intel fortran and encouter this error. Could you advise me what this error means and how to solve it. Thanks!

0 Kudos
3 Replies
Arjen_Markus
Honored Contributor I
1,564 Views

Without any source code or aeven any information about your program we can only make wild guesses, but judging from the form of the error message you quote, I'd say this happens in a C or C++ routine, not in your Fortran code.

Is there any traceback other than this mere message? What platform/OS are you using?

0 Kudos
tliam
Beginner
1,555 Views

The program was run in linux. The following backtrace came along the error message. 

Thank you!

======= Backtrace: =========
/lib64/libc.so.6(+0x81299)[0x7fcd3c7c3299]
/opt/intel/compilers_and_libraries_2020.2.254/linux/compiler/lib/intel64_lin/libifcoremt.so.5(for__free_vm+0x2f)[0x7fcd3f4790bf]
/opt/intel/compilers_and_libraries_2020.2.254/linux/compiler/lib/intel64_lin/libifcoremt.so.5(for__rm_from_lf_table+0xc8)[0x7fcd3f446ac8]
/opt/intel/compilers_and_libraries_2020.2.254/linux/compiler/lib/intel64_lin/libifcoremt.so.5(for__close_proc+0x151)[0x7fcd3f411071]
/opt/intel/compilers_and_libraries_2020.2.254/linux/compiler/lib/intel64_lin/libifcoremt.so.5(for_close+0x210)[0x7fcd3f4109b0]
[program file path][0x1397a24]
[program file path][0x1d0f36d]
[program file path][0x402dc2]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x7fcd3c764555]
[program file path][0x402cc9]
======= Memory map: ========
00400000-02807000 r-xp 00000000 c3f:e6020 144116146474442013 [program file path]
02a06000-02a07000 r--p 02406000 c3f:e6020 144116146474442013 [program file path]
02a07000-040f7000 rw-p 02407000 c3f:e6020 144116146474442013 [program file path]
040f7000-130800000 rw-p 00000000 00:00 0
131344000-132398000 rw-p 00000000 00:00 0 [heap]
7fcd0c000000-7fcd0c021000 rw-p 00000000 00:00 0
7fcd0c021000-7fcd10000000 ---p 00000000 00:00 0
7fcd13e78000-7fcd3c328000 rw-p 00000000 00:00 0
7fcd3c328000-7fcd3c32a000 r-xp 00000000 fd:00 16726 /usr/lib64/libdl-2.17.so
7fcd3c32a000-7fcd3c52a000 ---p 00002000 fd:00 16726 /usr/lib64/libdl-2.17.so
7fcd3c52a000-7fcd3c52b000 r--p 00002000 fd:00 16726 /usr/lib64/libdl-2.17.so
7fcd3c52b000-7fcd3c52c000 rw-p 00003000 fd:00 16726 /usr/lib64/libdl-2.17.so
7fcd3c52c000-7fcd3c541000 r-xp 00000000 fd:00 116 /usr/lib64/libgcc_s-4.8.5-20150702.so.1
7fcd3c541000-7fcd3c740000 ---p 00015000 fd:00 116 /usr/lib64/libgcc_s-4.8.5-20150702.so.1
7fcd3c740000-7fcd3c741000 r--p 00014000 fd:00 116 /usr/lib64/libgcc_s-4.8.5-20150702.so.1
7fcd3c741000-7fcd3c742000 rw-p 00015000 fd:00 116 /usr/lib64/libgcc_s-4.8.5-20150702.so.1
7fcd3c742000-7fcd3c905000 r-xp 00000000 fd:00 16720 /usr/lib64/libc-2.17.so
7fcd3c905000-7fcd3cb05000 ---p 001c3000 fd:00 16720 /usr/lib64/libc-2.17.so
7fcd3cb05000-7fcd3cb09000 r--p 001c3000 fd:00 16720 /usr/lib64/libc-2.17.so
7fcd3cb09000-7fcd3cb0b000 rw-p 001c7000 fd:00 16720 /usr/lib64/libc-2.17.so
7fcd3cb0b000-7fcd3cb10000 rw-p 00000000 00:00 0
7fcd3cb10000-7fcd3cb27000 r-xp 00000000 fd:00 16746 /usr/lib64/libpthread-2.17.so
7fcd3cb27000-7fcd3cd26000 ---p 00017000 fd:00 16746 /usr/lib64/libpthread-2.17.so
7fcd3cd26000-7fcd3cd27000 r--p 00016000 fd:00 16746 /usr/lib64/libpthread-2.17.so
7fcd3cd27000-7fcd3cd28000 rw-p 00017000 fd:00 16746 /usr/lib64/libpthread-2.17.so
7fcd3cd28000-7fcd3cd2c000 rw-p 00000000 00:00 0
7fcd3cd2c000-7fcd3cda0000 r-xp 00000000 fd:00 552632836 /opt/intel/compilers_and_libraries_2020.2.254/linux/compiler/lib/intel64_lin/libintlc.so.5
7fcd3cda0000-7fcd3cfa0000 ---p 00074000 fd:00 552632836 /opt/intel/compilers_and_libraries_2020.2.254/linux/compiler/lib/intel64_lin/libintlc.so.5
7fcd3cfa0000-7fcd3cfa1000 r--p 00074000 fd:00 552632836 /opt/intel/compilers_and_libraries_2020.2.254/linux/compiler/lib/intel64_lin/libintlc.so.5
7fcd3cfa1000-7fcd3cfa2000 rw-p 00075000 fd:00 552632836 /opt/intel/compilers_and_libraries_2020.2.254/linux/compiler/lib/intel64_lin/libintlc.so.5
7fcd3cfa2000-7fcd3cfa4000 rw-p 00000000 00:00 0
7fcd3cfa4000-7fcd3d0a5000 r-xp 00000000 fd:00 16728 /usr/lib64/libm-2.17.so
7fcd3d0a5000-7fcd3d2a4000 ---p 00101000 fd:00 16728 /usr/lib64/libm-2.17.so
7fcd3d2a4000-7fcd3d2a5000 r--p 00100000 fd:00 16728 /usr/lib64/libm-2.17.so
7fcd3d2a5000-7fcd3d2a6000 rw-p 00101000 fd:00 16728 /usr/lib64/libm-2.17.so
7fcd3d2a6000-7fcd3ead3000 r-xp 00000000 fd:00 552632851 /opt/intel/compilers_and_libraries_2020.2.254/linux/compiler/lib/intel64_lin/libsvml.so
7fcd3ead3000-7fcd3ecd3000 ---p 0182d000 fd:00 552632851 /opt/intel/compilers_and_libraries_2020.2.254/linux/compiler/lib/intel64_lin/libsvml.so
7fcd3ecd3000-7fcd3ed24000 r--p 0182d000 fd:00 552632851 /opt/intel/compilers_and_libraries_2020.2.254/linux/compiler/lib/intel64_lin/libsvml.so
7fcd3ed24000-7fcd3ed58000 rw-p 0187e000 fd:00 552632851 /opt/intel/compilers_and_libraries_2020.2.254/linux/compiler/lib/intel64_lin/libsvml.so
7fcd3ed58000-7fcd3f161000 r-xp 00000000 fd:00 552632833 /opt/intel/compilers_and_libraries_2020.2.254/linux/compiler/lib/intel64_lin/libimf.so
7fcd3f161000-7fcd3f361000 ---p 00409000 fd:00 552632833 /opt/intel/compilers_and_libraries_2020.2.254/linux/compiler/lib/intel64_lin/libimf.so
7fcd3f361000-7fcd3f367000 r--p 00409000 fd:00 552632833 /opt/intel/compilers_and_libraries_2020.2.254/linux/compiler/lib/intel64_lin/libimf.so
7fcd3f367000-7fcd3f3db000 rw-p 0040f000 fd:00 552632833 /opt/intel/compilers_and_libraries_2020.2.254/linux/compiler/lib/intel64_lin/libimf.so
7fcd3f3db000-7fcd3f520000 r-xp 00000000 fd:00 552640156 /opt/intel/compilers_and_libraries_2020.2.254/linux/compiler/lib/intel64_lin/libifcoremt.so.5
7fcd3f520000-7fcd3f71f000 ---p 00145000 fd:00 552640156 /opt/intel/compilers_and_libraries_2020.2.254/linux/compiler/lib/intel64_lin/libifcoremt.so.5
7fcd3f71f000-7fcd3f722000 r--p 00144000 fd:00 552640156 /opt/intel/compilers_and_libraries_2020.2.254/linux/compiler/lib/intel64_lin/libifcoremt.so.5
7fcd3f722000-7fcd3f725000 rw-p 00147000 fd:00 552640156 /opt/intel/compilers_and_libraries_2020.2.254/linux/compiler/lib/intel64_lin/libifcoremt.so.5
7fcd3f725000-7fcd3f777000 rw-p 00000000 00:00 0
7fcd3f777000-7fcd3f7a0000 r-xp 00000000 fd:00 552640318 /opt/intel/compilers_and_libraries_2020.2.254/linux/compiler/lib/intel64_lin/libifport.so.5
7fcd3f7a0000-7fcd3f99f000 ---p 00029000 fd:00 552640318 /opt/intel/compilers_and_libraries_2020.2.254/linux/compiler/lib/intel64_lin/libifport.so.5
7fcd3f99f000-7fcd3f9a0000 r--p 00028000 fd:00 552640318 /opt/intel/compilers_and_libraries_2020.2.254/linux/compiler/lib/intel64_lin/libifport.so.5
7fcd3f9a0000-7fcd3f9a2000 rw-p 00029000 fd:00 552640318 /opt/intel/compilers_and_libraries_2020.2.254/linux/compiler/lib/intel64_lin/libifport.so.5
7fcd3f9a2000-7fcd3f9a5000 rw-p 00000000 00:00 0
7fcd3f9a5000-7fcd3f9c7000 r-xp 00000000 fd:00 16713 /usr/lib64/ld-2.17.so
7fcd3fb49000-7fcd3fbc6000 rw-p 00000000 00:00 0
7fcd3fbc6000-7fcd3fbc7000 r--p 00021000 fd:00 16713 /usr/lib64/ld-2.17.so
7fcd3fbc7000-7fcd3fbc8000 rw-p 00022000 fd:00 16713 /usr/lib64/ld-2.17.so
7fcd3fbc8000-7fcd3fbc9000 rw-p 00000000 00:00 0
7ffc75fd5000-7ffc75ff8000 rw-p 00000000 00:00 0 [stack]
7ffc75ffc000-7ffc75ffe000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]

0 Kudos
Arjen_Markus
Honored Contributor I
1,548 Views

Try compiling and building your program with the option -traceback. This should enable the program to indicate where in the source code it happened.

The message is coming from the underlying runtime libraries, but the cause is quite likely to be something in your program. Memory corruption of sorts is the most probable cause but the root cause may be hard to hunt down.

There should be more compile options that you can use to check array bounds and so on.

 

0 Kudos
Reply