Bug 15984 - Segfault when using static __thread function variables with intel compiler
Summary: Segfault when using static __thread function variables with intel compiler
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: gold (show other bugs)
Version: 2.23
: P2 normal
Target Milestone: ---
Assignee: Cary Coutant
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-27 22:27 UTC by Richard Geary
Modified: 2014-05-22 18:42 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
output of icc14 goldcrash.cpp -o goldcrash.o -c -g -O0 (1.02 KB, application/x-object)
2013-09-28 04:07 UTC, Richard Geary
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Geary 2013-09-27 22:27:53 UTC
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
Comment 1 Cary Coutant 2013-09-27 23:27:38 UTC
Can you attach a .o file, please?
Comment 2 Richard Geary 2013-09-28 04:07:00 UTC
Created attachment 7219 [details]
output of icc14 goldcrash.cpp -o goldcrash.o -c -g -O0
Comment 3 Richard Geary 2014-05-22 18:42:46 UTC
Fixed by intel in icc 14.0.3