- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi there,
We have installed the latest version of Intel C++ Compiler Professional Edition for Mac (11.1.088) on SnowLeopard OS X 10.6.3 (Xcode 3.2.2). Our application is working fine on Leopard OS X 10.4 (Xcode 3.1, Intel C++ Complier 11.1.046). But it is no longer working on SnowLeopard. By analysing our code, we noticed that by simply declaring a boost::posix_time::prime variable can cause an "EXC_BAD_ACCESS" exception. We have even tried both the boost_1_39_0 and boost_1_43_0 headers. I have created a simple application below to demonstration the problem. If the same code is re-compiled with gcc4.2, it is working fine.
#include
#include
using namespace boost::posix_time;
int main (int argc, char * const argv[]) {
ptime Timer; // crashes here !!!!
return 0;
}
Can it be the compiler issue? Please advise.
Best Regards
Simon
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
$ icc -V
Intel C Intel 64 Compiler Professional for applications running on Intel 64, Version 11.1 Build 20100203 Package ID: m_cproc_p_11.1.084
Copyright (C) 1985-2010 Intel Corporation. All rights reserved.
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.6.2
BuildVersion: 10C540
$ icpc -Iboost_1_43_0 bug.cpp
$ ./a.out
$ g++ -Iboost_1_43_0 bug.cpp
$ ./a.out
$
Before I delve too much further into this, can you confirm that this is all I should need to do to reproduce the problem you're seeing? Have you tried any other versions of Snow Leopard (i.e. is it new in Snow Leopard, or new in this version of Snow Leopard)? I presume it works with the latest 11.1.088 on Leopard?
Thanks!
Dale
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Dale
Here are what we found while running the simple application:
#include #include using namespace boost::posix_time; int main (int argc, char * const argv[]) { ptime Timer; // crashes here !!!! return 0; } |
Intel Compiler MacOS X Xcode Result
1.11.084 10.6.3 3.2.2 crashes (Program received signal: EXC_BAD_ACCESS.)
1.11.088 10.6.3 3.2.2 crashes (Program received signal: EXC_BAD_ACCESS.)
1.11.084 10.6 3.2 good
If you upgrade your system to 10.6.3, you should also seeing the problem.
For your information, here are the compile details:
CompileICC build/Simple.build/Release/Simple.build/Objects-normal/x86_64/main.o main.cpp
cd /Users/simon/Projects/Simple
/Developer/usr/local/bin/icc-11.1-base/bin/intel64/icc -x c++ -arch x86_64 -dev-usr-root=/Developer/usr -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -g -O0 -w1 -fno-omit-frame-pointer -std=gnu99 -fvisibility=hidden -fpascal-strings -I/Users/simon/Projects/Simple/build/Simple.build/Release/Simple.build/Simple-txt.hmap -F/Users/simon/Projects/Simple/build/Release -I/Users/simon/Projects/Simple/build/Release/include -I/Users/simon/Projects/Simple/../mpeg4sp-codecs/Code/C/boost_1_39_0 -c /Users/simon/Projects/Simple/main.cpp -o /Users/simon/Projects/Simple/build/Simple.build/Release/Simple.build/Objects-normal/x86_64/main.o
Ld build/Simple.build/Release/Simple.build/Objects-normal/x86_64/Simple normal x86_64
cd /Users/simon/Projects/Simple
setenv MACOSX_DEPLOYMENT_TARGET 10.5
/Developer/usr/local/bin/icc-11.1-base/bin/intel64/icpc -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.5.sdk -L/Users/simon/Projects/Simple/build/Release -F/Users/simon/Projects/Simple/build/Release -filelist /Users/simon/Projects/Simple/build/Simple.build/Release/Simple.build/Objects-normal/x86_64/Simple.LinkFileList -mmacosx-version-min=10.5 -dev-usr-root=/Developer/usr "" "" -o /Users/simon/Projects/Simple/build/Simple.build/Release/Simple.build/Objects-normal/x86_64/Simple
Best Regards
Simon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks!
Dale
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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