Bug 1417590
Summary: | Ruby compiled with GCC 7.x+ segfaults | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Vít Ondruch <vondruch> |
Component: | ruby | Assignee: | Vít Ondruch <vondruch> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | cben, davejohansen, jakub, jwakely, law, mmorsi, mpolacek, mtasaka, s, strzibny, vanmeeuwen+fedora, vondruch |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | ruby-2.4.0-76.fc26 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-02-03 15:38:40 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1412274 |
Description
Vít Ondruch
2017-01-30 11:21:49 UTC
Yes, we saw that in the test mass rebuild. But it was quite random failure, valgrind reported tons of unitialized memory uses in miniruby (and jump conditionalized on uninitialized memory uses), and also reports approximately same huge amount of those when miniruby is built with gcc 6. Therefore, we assume ruby it is ruby that is buggy (until proven otherwise). True, it is some marshaling code, so it might be more sensitive to compiler changes. I'll report this upstream and will see. Thx for the feedback. Note that when all of miniruby is built with -O0, then it doesn't crash, but trying to mix -O0 and -O2 objects the results are quite randomish, it isn't a single problematic *.o file or some small set of them that matter. So this really needs analysis from those who know the ruby source. It is possible it is a GCC bug, but we'd need far more details on what to look for (ideally reduced runtime testcase with details what is wrong). Looks like applying https://github.com/ruby/ruby/commit/7c1b30a602ab109d8d5388d7dfb3c5b180ba24e1 makes ruby compile on rawhide: https://koji.fedoraproject.org/koji/taskinfo?taskID=17563070 ref: https://bugs.ruby-lang.org/issues/13150 scratch build of 2.4.0-75.fc26 fails (again) https://koji.fedoraproject.org/koji/taskinfo?taskID=17564297 (In reply to Mamoru TASAKA from comment #4) Thx for pointing this out. I applied the patch and Ruby is building again. |