static __thread function variables cause Segfault at runtime when compiled with the intel compiler. Build command : icc14 goldcrash.cpp -o goldcrash -B <path to gold ld> && ./goldcrash (replace <path to gold ld> with the installation of binutils 2.23.2 goldcrash.cpp : int main(int argc, const char **argv) { static __thread int lastID = -1; lastId = 0; return 0; } Also reported to intel: http://software.intel.com/en-us/forums/topic/475114
Can you attach a .o file, please?
Created attachment 7219 [details] output of icc14 goldcrash.cpp -o goldcrash.o -c -g -O0
Fixed by intel in icc 14.0.3