Possible bug in inlined string functions of icc Version 11.1 (Build 20090511 Package ID: l_cproc_p_11.1.038)

Brandon Hewitt (Intel)
Total Points:
2,340
Status Points:
1,840
Brown Belt
July 10, 2009 4:20 PM PDT
Rate
 
#1
Hi all,
When I compile the following program:

#include <stdio.h>
#include <string.h>

int main()
{
char x[100];
int len;

strcpy(x, "mumbo jumbo");
len = (int) strlen(x);
printf("%d\n", len);
return 0;
}

with icc 11.1 and optimization level -O2 or higher, valgrind complains about numerous runtime errors, most probably initially triggered triggered
inside strlen(). If, however, I compile it with '-nolib-inline', all error messages are gone.
Besides, compiling with icc 10.1 or 11.0 also gives no errors.

I hope that helps,
greetings,
Andreas




I'll take a look at this.  What command line are you using for valgrind?
--------
Brandon Hewitt
Intel Developer Support

Tools Knowledge Base: http://software.intel.com/en-us/articles/tools
Software Product support info: http://www.intel.com/software/support

* Other names and brands may be claimed as the property of others.


Intel Software Network Forums Statistics

8491 users have contributed to 31629 threads and 100769 posts to date.
In the past 24 hours, we have 28 new thread(s) 129 new posts(s), and 184 new user(s).

In the past 3 days, the most popular thread for everyone has been Implicite multithreading ??? The most posts were made to Crash when loading skeleton The post with the most views is Dear Steve, excuse me for a d

Please welcome our newest member shadowwolf99