| Thread Tools | Search this thread |
|---|
wolfgang-svrcek-seiler
| July 10, 2009 3:57 AM PDT Possible bug in inlined string functions of icc Version 11.1 (Build 20090511 Package ID: l_cproc_p_11.1.038) | ||||
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 | |||||
|
|||||||||||||
|
|||||||||||||
|
|||||||||||||
| 8286 users have contributed to 31232 threads and 99107 posts to date. |
|---|
| In the past 24 hours, we have 7 new thread(s) 25 new posts(s), and 31 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 titanius.anglesmith |