Bug 676659
Summary: | [gold] Segmentation fault (core dumped) ../generated/adfiles/adlc | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Michal Nowak <mnowak> | ||||
Component: | java-1.6.0-openjdk | Assignee: | Omair Majid <omajid> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | rawhide | CC: | ahughes, dbhole, jvanek, langel, lkundrak, mjw, mmatejov, ohudlick, omajid | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2011-04-01 21:37:45 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
Michal Nowak
2011-02-10 16:03:45 UTC
I think -export-dynamic should be --export-dynamic. After some digging, this seems to be a regression in gcc. The -export-dynamic flag is broken in gcc 4.6 [1]. gcc now treats xport-dynamic as the entry point. The standard bfd-based linker prints a warning: /usr/bin/ld: warning: cannot find entry symbol xport-dynamic; defaulting to 00000000004013a0 Apparently this address is fine. gold, I assume does something different which causes the executable to be invalid. The man page for gcc claims -rdynamic should be used to pass -export-dynamic, but that's a recent addition [2] and not usable when we need to work with older versions of gcc too. What works for me is using -Wl,-export-dynamic instead of -export-dynamic. [1] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47390 [2] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37454 Created attachment 478327 [details]
make hotspot use -Wl,-export-dynamic instead of -export-dynamic
I have tested this on gcc 4.6.0 + gold and gcc 4.6.0 + ld as well as gcc 4.4.5 + ld.
Omair, this patch just seems to remove -export-dynamic not replace it. It's ok, saw the full version on the list. Looks fine, I'll include it in the upcoming releases. Thanks for the patch Omair. (In reply to comment #4) > Omair, this patch just seems to remove -export-dynamic not replace it. Hm.. the bugzilla viewer has some issues with nested patches. The path shows up fine using "View" (https://bugzilla.redhat.com/attachment.cgi?id=478327) but looks broken everywhere else. In new releases: http://blog.fuseyism.com/index.php/2011/02/15/security-icedtea6-1710-187-and-197-released/ Should hit Fedora RPMs soon. This fix is present in 1.10 which was built for F15: http://koji.fedoraproject.org/koji/buildinfo?buildID=235771 |