Bug 1540329 - out-of-stack.rs testcase is failing in rust-toolset-7-rust-1.23.0-2.el7
Summary: out-of-stack.rs testcase is failing in rust-toolset-7-rust-1.23.0-2.el7
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: DevTools
Classification: Red Hat
Component: rust-toolset-7
Version: rust-toolset-7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 2018.2
Assignee: Josh Stone
QA Contact: Edjunior Barbosa Machado
Vladimír Slávik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-30 19:27 UTC by Edjunior Barbosa Machado
Modified: 2018-05-03 03:58 UTC (History)
8 users (show)

Fixed In Version: rust-toolset-7-rust-1.24.0-1.el7
Doc Type: Bug Fix
Doc Text:
Cause: Updates to glibc changed the location of thread stack guards. Consequence: Rust threads stopped recognizing faults from stack overflow, causing an abort with a raw SIGSEGV. Fix: Rust's runtime now handles stack guards from glibc in either the old or new locations. Result: Stack overflow in Rust threads is again recognized, printing a message on stderr and aborting with SIGABRT.
Clone Of:
Environment:
Last Closed: 2018-05-03 03:57:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
'rpmbuild --rebuild rust-toolset-7-rust-1.23.0-2.el7.src.rpm' output on x86_64 (113.52 KB, application/x-xz)
2018-01-30 19:27 UTC, Edjunior Barbosa Machado
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github rust-lang rust issues 47863 0 None None None 2018-01-30 19:36:09 UTC
Red Hat Product Errata RHEA-2018:1280 0 None None None 2018-05-03 03:58:21 UTC

Description Edjunior Barbosa Machado 2018-01-30 19:27:35 UTC
Created attachment 1388571 [details]
'rpmbuild --rebuild rust-toolset-7-rust-1.23.0-2.el7.src.rpm' output on x86_64

Description of problem:

run-pass/out-of-stack.rs testcase is currently failing in rust-toolset-7-rust-1.23.0-2.el7 in both RHEL-7.5 and RHEL-ALT-7.5 on several archs.

This issue was not reproducible in previous rust-toolset-7-rust-1.22.1-1.el7 (https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=632249).

Version-Release number of selected component (if applicable):

rust-toolset-7-rust-1.23.0-2.el7

Steps to Reproduce:

1. rpmbuild --rebuild rust-toolset-7-rust-1.23.0-2.el7.src.rpm
(logs with backtrace are attached)

Additional info:

Running glibc-2.17-221.el7

Comment 1 Josh Stone 2018-01-30 19:36:09 UTC
(In reply to Edjunior Barbosa Machado from comment #0)
> Running glibc-2.17-221.el7

And this is significant because of the change for bug 1527904.  I think rust-toolset-7-rust-1.22.1 would have failed that test with this glibc too.

I'm already working on this problem upstream on rust#47863.

Comment 2 Edjunior Barbosa Machado 2018-02-01 17:20:39 UTC
(In reply to Josh Stone from comment #1)
> (In reply to Edjunior Barbosa Machado from comment #0)
> > Running glibc-2.17-221.el7
> 
> And this is significant because of the change for bug 1527904.  I think
> rust-toolset-7-rust-1.22.1 would have failed that test with this glibc too.

Actually I was misled by brew build logs :) out-of-stack.rs from rust-toolset-7-rust-1.22.1-1 also failed with the same glibc-2.17-221 (RHEL-7.5-20180125.0 ppc64).

Thanks for pointing this out, Josh.

Comment 3 Josh Stone 2018-02-09 17:29:12 UTC
The issue is fixed upstream, headed for Rust 1.25 which we'll have for rc/GA.  I'll also backport it to 1.24 so we can verify it in the devtools beta.

Comment 5 Edjunior Barbosa Machado 2018-02-28 15:52:37 UTC
Verified that out-of-stack.rs testcase no longer fails on rust-toolset-7-rust-1.24.0-1.el7:

https://beaker.engineering.redhat.com/matrix/?job_ids=2333892%0D%0A2333894

Comment 14 errata-xmlrpc 2018-05-03 03:57:59 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2018:1280


Note You need to log in before you can comment on or make changes to this bug.