- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The following affects one of our Library builds, built using
Using
Subroutine nag_test_io
Character (*) string
Write
End Subroutine nag_test_io
ifort -O3 -w -auto -fPIC -axAVX,SSE2 -threads -fexceptions -fp-model precise -c nag_test_io.f90 -o nag_test_io.o
ar rvf libnag_test.a nag_test_io.o
icc -w -fPIC -m64 -axAVX,SSE2 -DPOINTER64 -fp-model precise -DLONG_CHARLEN -fexceptions -shared -Wl,-rpath=\$ORIGIN,-z,origin -Wl,-soname,libnag_test.so -o libnag_test.so -Wl,--whole-archive libnag_test.a -Wl,--no-whole-archive -Wl,--no-undefined /opt/intel/composer_xe_2015.0.090/compiler/lib/intel64/libifcoremt_pic.a /opt/intel/composer_xe_2015.0.090/compiler/lib/intel64/libsvml.a /opt/intel/composer_xe_2015.0.090/compiler/lib/intel64/libimf.a /opt/intel/composer_xe_2015.0.090/compiler/lib/intel64/libirc.a -lpthread -lpthread -lm -L/opt/intel/composer_xe_2015.0.090/compiler/lib/intel64 -liomp5
Compile the
Program test_ifort_io_compat
Call nag_test_io
End Program test_ifort_io_compat
ifort -O3 -w -auto -fPIC -axAVX,SSE2 -threads -fexceptions -fp-model precise -c -I/home/nag/linthouse/lawrence/BUILD_linux_ifort_64/modules test_ifort.f90 -o test_ifort.o
Using
ifort -fPIC -threads test_ifort.o /opt/intel/composer_xe_2015.0.2/lib/intel64/libifcore.a libnag_test.so -o test_ifort.exe
/test_ifort.exe
Image PC Routine Line Source
test_ifort.exe 000000000041E7B4 Unknown Unknown Unknown
libnag_test
libnag_test
test_ifort.exe 0000000000406280 Unknown Unknown Unknown
test_ifort.exe 000000000040623E Unknown Unknown Unknown
test_ifort.exe 0000000000406139 Unknown Unknown Unknown
*** Error in `
======= Backtrace: =========
/lib64/
/lib64/
/
/
/lib64/
======= Memory map: ========
00400000-00485000 r-xp 00000000
00684000-00685000 r--p 00084000
00685000-00688000 rw-p 00085000 fd:02 11534875 /home/nag/linthouse/lawrence/test_ifort.exe
00688000-0068f000 rw-p 00000000 00:00 0
019dc000-019fd000 rw-p 00000000 00:00 0 [heap]
38a3000000-38a3021000 r-xp 00000000
38a3221000-38a3222000 r--p 00021000
38a3222000-38a3223000
38a3223000-38a3224000 rw-p 00000000 00:00 0
38a3400000-38a35b4000 r-xp 00000000
38a35b4000-38a37b3000 ---p 001b4000 fd:00 394521 /usr/lib64/libc-2.20.so
38a37b3000-38a37b7000 r--p 001b3000
38a37b7000-38a37b9000 rw-p 001b7000 fd:00 394521 /usr/lib64/libc-2.20.so
38a37b9000-38a37bd000 rw-p 00000000 00:00 0
38a3800000-38a3803000 r-xp 00000000
38a3803000-38a3a02000 ---p 00003000
38a3a02000-38a3a03000 r--p 00002000
38a3a03000-38a3a04000 rw-p 00003000 fd:00 420714 /usr/lib64/libdl-2.20.so
38a3c00000-38a3c17000 r-xp 00000000
38a3c17000-38a3e16000 ---p 00017000
38a3e16000-38a3e17000 r--p 00016000
38a3e17000-38a3e18000 rw-p 00017000 fd:00 399707 /usr/lib64/libpthread-2.20.so
38a3e18000-38a3e1c000 rw-p 00000000 00:00 0
38a4400000-38a4507000 r-xp 00000000
38a4507000-38a4706000 ---p 00107000
38a4706000-38a4707000 r--p 00106000
38a4707000-38a4708000
38a5800000-38a5816000 r-xp 00000000
38a5816000-38a5a15000 ---p 00016000
38a5a15000-38a5a16000 r--p 00015000
38a5a16000-38a5a17000 rw-p 00016000 fd:00 414832 /usr/lib64/libgcc_s-4.9.2-20141101.so.1
7f5867499000-7f586749c000 rw-p 00000000 00:00 0
7f586749c000-7f58674f5000 r-xp 00000000 00:28 20967365 /
7f58674f5000-7f58676f4000 ---p 00059000 00:28 20967365 /fserver/intel/opt/intel/composer_xe_2015.2.164/compiler/lib/intel64/libintlc.so.5
7f58676f4000-7f58676f6000 rw-p 00058000 00:28 20967365 /fserver/intel/opt/intel/composer_xe_2015.2.164/compiler/lib/intel64/libintlc.so.5
7f58676f6000-7f58676f7000 rw-p 00000000 00:00 0
7f58676f7000-7f58676fc000 r-xp 00000000
7f58676fc000-7f58678fc000 ---p 00005000 fd:00 3163927 /opt/NAG/fll6i25dc/rtl/intel64/libirng.so
7f58678fc000-7f58678fe000 rw-p 00005000 fd:00 3163927 /opt/NAG/fll6i25dc/rtl/intel64/libirng.so
7f58678fe000-7f58678ff000 rw-p 00000000 00:00 0
7f58678ff000-7f5868317000 r-xp 00000000
7f5868317000-7f5868517000 ---p 00a18000
7f5868517000-7f586854e000 rw-p 00a18000 fd:00 3163929 /opt/NAG/fll6i25dc/rtl/intel64/libsvml.so
7f586854e000-7f58687c7000 r-xp 00000000
7f58687c7000-7f58689c6000 ---p 00279000 fd:00 3163923 /opt/NAG/fll6i25dc/rtl/intel64/libimf.so
7f58689c6000-7f5868a08000 rw-p 00278000 fd:00 3163923 /opt/NAG/fll6i25dc/rtl/intel64/libimf.so
7f5868a08000-7f5868afc000 r-xp 00000000
7f5868afc000-7f5868cfc000 ---p 000f4000 fd:00 3163924 /opt/NAG/fll6i25dc/rtl/intel64/libiomp5.so
7f5868cfc000-7f5868d07000 rw-p 000f4000 fd:00 3163924 /opt/NAG/fll6i25dc/rtl/intel64/libiomp5.so
7f5868d07000-7f5868d35000 rw-p 00000000 00:00 0
7f5868d6a000-7f5868d6b000 rw-p 00000000 00:00 0
7f5868d6b000-7f5868e00000 r-xp 00000000
7f5868e00000-7f5869000000 ---p 00095000 fd:02 11534883 /home/nag/linthouse/lawrence/libnag_test.so
7f5869000000-7f5869003000 r--p 00095000
7f5869003000-7f5869007000 rw-p 00098000 fd:02 11534883 /home/nag/linthouse/lawrence/libnag_test.so
7f5869007000-7f5869010000 rw-p 00000000 00:00 0
7fff38af6000-7fff38b19000 rw-p 00000000 00:00 0 [stack]
7fff38bb5000-7fff38bb7000 r--p 00000000 00:00 0 [
7fff38bb7000-7fff38bb9000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [
Abort (core dumped)
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks - I'm looking into this now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I can reproduce this, but I am pretty sure that this is due to the incorrect way you are building the .so and the executable so that you end up with two different copies of the ifort library in the application. We fixed bugs related to I/O unit handling between these updates and it's very likely that this creates the problem you observe.
When you build libnag_test.so, you explicitly link in the 15.0.0 static library libifcoremt_pic.a. Then you build the main program linking in the 15.0.2 libifcore.a. This means two different copies of the libifcore library are in memory and they don't share data structures.
The correct way is to always build your shared objects against the shared ifort libraries and require that executables built against your .so are also built against the shared ifort libraries. We have seen similar situations on Windows.

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