- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I'm compiling a program underMac OS X 10.7.2, with Xcode 4.2.1 and Intel Composer XE 2011 sp1.8.269.
I am linking to tbb_debug in the Debug configuration, and tbb in the Release configuration.
When trying to run the program compiled with the Debug configuration, it crashes with the following error:
Run-Time Check Failure: The variable '_j' is being used without being initialized
Using gdb, I could find that the variable j is used in linux_intel64.h, in this function:
static inline int64_t __TBB_machine_lg( uint64_t x ) {
int64_t j;
__asm__ ("bsr %1,%0" : "=r"(j) : "r"(x));
return j;
}
The execution stops at line 281 of partitioner.h:
if(my_divisor) src.my_max_depth += static_cast
(__TBB_Log2(src.my_divisor/my_divisor));
When I run the program compiled using the Release configuration, everything seems to run fine.
Could somebody give me some suggestions on how to fix this problem?
Thanks!
Link Copied
0 Replies
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page