Forum Jump

Select Group :
Select Forum :
Sorted By :
Sort Order :
From The :
 
Thread Tools  Search this thread 
anandcmlabs.com
Total Points:
30
Registered User
July 6, 2009 8:42 AM PDT
Intel C++ compiler core dumps
Hi,

When compiling a C++ program, the Intel compiler fails. The code compiles fine on gcc 4.4:

*** glibc detected *** /opt/intel/Compiler/11.1/038/bin/intel64/mcpcom: malloc(): memory corruption: 0x000000000428f6b0 ***
======= Backtrace: =========
/lib/libc.so.6[0x2b187b9ae0ff]
/lib/libc.so.6(__libc_malloc+0x98)[0x2b187b9af938]
/opt/intel/Compiler/11.1/038/bin/intel64/mcpcom[0x63f44d]
/opt/intel/Compiler/11.1/038/bin/intel64/mcpcom[0x4c5a0a]
/opt/intel/Compiler/11.1/038/bin/intel64/mcpcom[0x4c8a6f]
/opt/intel/Compiler/11.1/038/bin/intel64/mcpcom[0x735e94]
/opt/intel/Compiler/11.1/038/bin/intel64/mcpcom[0x814064]
/lib/libc.so.6[0x2b187b9660b0]
/opt/intel/Compiler/11.1/038/bin/intel64/mcpcom[0x13fec20]
======= Memory map: ========
00400000-01d04000 r-xp 00000000 08:05 351957                             /opt/intel/Compiler/11.1/038/bin/intel64/mcpcom
01e03000-01f57000 rwxp 01903000 08:05 351957                             /opt/intel/Compiler/11.1/038/bin/intel64/mcpcom
01f57000-026c4000 rwxp 00000000 00:00 0
0395a000-04f5b000 rwxp 00000000 00:00 0                                  [heap]
2b187af95000-2b187afb5000 r-xp 00000000 08:05 38375                      /lib/ld-2.9.so
2b187afb5000-2b187afb8000 rwxp 00000000 00:00 0
2b187afb8000-2b187b003000 r-xp 00000000 08:05 352027                     /opt/intel/Compiler/11.1/038/lib/intel64/locale/en_US/diagsc.cat
2b187b003000-2b187b042000 r-xp 00000000 08:05 5803                       /usr/lib/locale/en_US.utf8/LC_CTYPE
2b187b042000-2b187b049000 r-xs 00000000 08:05 4605                       /usr/lib/gconv/gconv-modules.cache
2b187b049000-2b187b06a000 rwxp 00000000 00:00 0
2b187b1b4000-2b187b1b5000 r-xp 0001f000 08:05 38375                      /lib/ld-2.9.so
2b187b1b5000-2b187b1b6000 rwxp 00020000 08:05 38375                      /lib/ld-2.9.so
2b187b1b6000-2b187b23a000 r-xp 00000000 08:05 39322                      /lib/libm-2.9.so
2b187b23a000-2b187b439000 ---p 00084000 08:05 39322                      /lib/libm-2.9.so
2b187b439000-2b187b43a000 r-xp 00083000 08:05 39322                      /lib/libm-2.9.so
2b187b43a000-2b187b43b000 rwxp 00084000 08:05 39322                      /lib/libm-2.9.so
2b187b43b000-2b187b4fe000 r-xp 00000000 08:05 8331                       /usr/lib/libstdc++.so.5.0.7
2b187b4fe000-2b187b6fd000 ---p 000c3000 08:05 8331                       /usr/lib/libstdc++.so.5.0.7
2b187b6fd000-2b187b705000 rwxp 000c2000 08:05 8331                       /usr/lib/libstdc++.so.5.0.7
2b187b705000-2b187b717000 rwxp 00000000 00:00 0
2b187b717000-2b187b731000 r-xp 00000000 08:05 2654                       /lib/libgcc_s.so.1
2b187b731000-2b187b930000 ---p 0001a000 08:05 2654                       /lib/libgcc_s.so.1
2b187b930000-2b187b931000 r-xp 00019000 08:05 2654                       /lib/libgcc_s.so.1
2b187b931000-2b187b932000 rwxp 0001a000 08:05 2654                       /lib/libgcc_s.so.1
2b187b932000-2b187b933000 rwxp 00000000 00:00 0
2b187b933000-2b187ba9b000 r-xp 00000000 08:05 38902                      /lib/libc-2.9.so
2b187ba9b000-2b187bc9b000 ---p 00168000 08:05 38902                      /lib/libc-2.9.so
2b187bc9b000-2b187bc9f000 r-xp 00168000 08:05 38902                      /lib/libc-2.9.so
2b187bc9f000-2b187bca0000 rwxp 0016c000 08:05 38902                      /lib/libc-2.9.so
2b187bca0000-2b187bca5000 rwxp 00000000 00:00 0
2b187bca5000-2b187bca7000 r-xp 00000000 08:05 39317                      /lib/libdl-2.9.so
2b187bca7000-2b187bea7000 ---p 00002000 08:05 39317                      /lib/libdl-2.9.so
2b187bea7000-2b187bea8000 r-xp 00002000 08:05 39317                      /lib/libdl-2.9.so
2b187bea8000-2b187bea9000 rwxp 00003000 08:05 39317                      /lib/libdl-2.9.so
2b187bea9000-2b187c0ac000 rwxp 00000000 00:00 0
2b187c0ad000-2b18dc0ae000 rwxp 00000000 00:00 0
2b18e0000000-2b18e0021000 rwxp 00000000 00:00 0
2b18e0021000-2b18e4000000 ---p 00000000 00:00 0
7fff42996000-7fff429b8000 rwxp 00000000 00:00 0                          [stack]
7fff429ff000-7fff42a00000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
icpc: error #10105: /opt/intel/Compiler/11.1/038/bin/intel64/mcpcom: core dumped
icpc: error #10106: Fatal error in /opt/intel/Compiler/11.1/038/bin/intel64/mcpcom, terminated by unknown signal(134)
compilation aborted for /home/anand/Work/cmlabs/mbrane/mBrane/module_descriptor.cpp (code 1)
make[2]: *** [mBrane/CMakeFiles/mBrane.dir/module_descriptor.cpp.o] Error 1
make[1]: *** [mBrane/CMakeFiles/mBrane.dir/all] Error 2
make: *** [all] Error 2
anand@saltatrix:~/Work/cmlabs/mbrane$

The code is available at http://svn.assembla.com/svn/mbrane/ in the branch 'anand-linux'.

For reference:

anand@saltatrix:~/Work/cmlabs/mbrane$ lsb_release -rd
Description:    Ubuntu karmic (development branch)
Release:    9.10
anand@saltatrix:~/Work/cmlabs/mbrane$ dpkg -l | grep libc6
ii  libc6                                      2.9-9ubuntu2                             GNU C Library: Shared libraries
ii  libc6-dbg                                  2.9-9ubuntu2                             GNU C Library: detached debugging symbols
ii  libc6-dev                                  2.9-9ubuntu2                             GNU C Library: Development Libraries and Header Files
ii  libc6-i386                                 2.9-9ubuntu2                             GNU C Library: 32bit shared libraries for AMD64

Regards,
Anand
Dale Schouten (Intel)
Total Points:
1,940
Status Points:
1,440
Brown Belt
July 6, 2009 12:45 PM PDT
Rate
 
#1


The code is available at http://svn.assembla.com/svn/mbrane/ in the branch 'anand-linux'.


Any chance you could give a little more information as to how to reproduce the problem?  If there is a single file that it dumps on, then generating a .i file (-E or -P) would be most helpful.  If it's more complicated (dumping at link time) then some detailed instructions as to how to reproduce the problem would be helpful.

Thanks!

Dale



anandcmlabs.com
Total Points:
30
Registered User
July 6, 2009 8:28 PM PDT
Rate
 
#2 Reply to #1
Any chance you could give a little more information as to how to reproduce the problem?  If there is a single file that it dumps on, then generating a .i file (-E or -P) would be most helpful.  If it's more complicated (dumping at link time) then some detailed instructions as to how to reproduce the problem would be helpful.

Thanks!

Dale


Hi Dale,

If I turn off glib's heap corruption checking, it fails at the linking stage -- but with it on, it fails on one file.

But the failure at linking stage could be for a number of other reasons, so I guess starting with the first problem is the simpelst.

I've attached the .i file that is generated with compiling with '-E'.

The full command was:

/opt/intel/Compiler/11.1/038/bin/intel64/icpc   -E  -o CMakeFiles/mBrane.dir/module_descriptor.cpp.i.e -c /home/anand/Work/cmlabs/mbrane/mBrane/module_descriptor.cpp

If you want to grab the source code, you will need to have www.cmake.org installed, setup your compilation environment and then run:

CC=icc CXX=icpc cmake -G "Unix Makefiles"

My script to do this is:

export LANG="en_US.UTF-8"
source /opt/intel/Compiler/11.1/038/bin/iccvars.sh intel64
export CC=icc
export CXX=icpc
cmake -G "Unix Makefiles"

Thanks,
Anand


 Attachments 
Steve Cousins
Total Points:
300
Status Points:
250
Green Belt
July 21, 2009 5:45 PM PDT
Rate
 
#3 Reply to #2
Any progress on this? I got the same thing when compiling NAMD on a SGI Altix. Same version of the compiler.


Dale Schouten (Intel)
Total Points:
1,940
Status Points:
1,440
Brown Belt
September 1, 2009 1:49 AM PDT
Rate
 
#4 Reply to #3
Quoting - Steve Cousins
Any progress on this? I got the same thing when compiling NAMD on a SGI Altix. Same version of the compiler.

My apologies for the long delay.  I'm having a bit of trouble downloading the SVN branch.  Would it be possible to post a compressed .i file here?

Thanks!

Dale





Intel Software Network Forums Statistics

8285 users have contributed to 31229 threads and 99107 posts to date.
In the past 24 hours, we have 7 new thread(s) 35 new posts(s), and 47 new user(s).

In the past 3 days, the most popular thread for everyone has been comparison cilk++, openmp, pthreads first results The most posts were made to comparison cilk++, openmp, pthreads first results The post with the most views is Very amusing...  Escalated as

Please welcome our newest member tvinni