Bug 485153
Summary: | static build with gcc-4.4 crash and kernel note the error | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Havard Rue <hrue> | ||||||||
Component: | gcc4 | Assignee: | Jakub Jelinek <jakub> | ||||||||
Status: | CLOSED NOTABUG | QA Contact: | |||||||||
Severity: | urgent | Docs Contact: | |||||||||
Priority: | low | ||||||||||
Version: | rawhide | ||||||||||
Target Milestone: | --- | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | x86_64 | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2009-02-12 17:23:59 UTC | Type: | --- | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Attachments: |
|
Description
Havard Rue
2009-02-11 21:46:10 UTC
Please provide the source you are compiling and the options used, binary is unsufficient. Created attachment 331696 [details]
The script to run the testcase
The script to run the test case, like:
localhost[tmp]$ sh ./makeme
This is a() with i = 0
DYNAMIC OK:: FLAGS = -g
This is a() with i = 0
STATIC OK:: FLAGS = -g
This is a() with i = 0
DYNAMIC OK:: FLAGS = -g -fopenmp
This is a() with i = 0
./makeme: line 3: 32317 Segmentation fault (core dumped) ./a.out $arg
STATIC FAIL:: FLAGS = -g -fopenmp
Created attachment 331697 [details]
The C-file for the test-case
Created attachment 331698 [details]
The fortranfile for the test-case
The test-case above seems to fail in the same way and produce for me similar line the /var/log/messages Feb 12 16:07:45 localhost kernel: a.out[32675]: segfault at 0 ip (null) sp 00007fffe0c4f208 error 14 in a.out[400000+ca000] Ah, -static with OpenMP or generally with threaded programs, don't do that or force linking whole -lpthread: -Wl,--whole-archive -lpthread -Wl,--no-whole-archive Does that fix it? Yes, that fix it ;-) |