[llvm-bugs] [Bug 36073] New: Regression: ARM segfault when upgrading to 6.0.0

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jan 23 19:02:48 PST 2018


https://bugs.llvm.org/show_bug.cgi?id=36073

            Bug ID: 36073
           Summary: Regression: ARM segfault when upgrading to 6.0.0
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: ARM
          Assignee: unassignedbugs at nondot.org
          Reporter: alex at crichton.co
                CC: efriedma at codeaurora.org, eugeni.stepanov at gmail.com,
                    llvm-bugs at lists.llvm.org

When upgrading rust-lang/rust to LLVM 6.0.0 we've noticed that there are some
failing tests of ours on ARM. I was unfortunately unable to make heads or tails
of the segfault (it was a load from the zero address) but I was able to bisect
it to a specific change from 5.0.0 to 6.0.0.

I was wondering if cc'd folks could help debug this? (y'all were listed on the
change https://reviews.llvm.org/D39871) I unfortunately don't have a minimal
test case for LLVM but what I do have is that this Rust source code reproduces
the issue with optimizations enabled [1] as well as some IR that may be
contextually helpful. The IR in question [2] is generated for the Rust codegen
unit here, and the IR isn't suspect I believe but rather the object file
generated (using LLVM 5 with that IR produces a working program, but LLVM 6
produces a segfaulting program with the same IR).

The Rust program here is notably using `panic!` which translates roughly to an
exception in C++ (using `invoke` instructions in Rust as well as catching the
exception at some point). The segfault appeared to happene near a destructor in
the main function (after the exception should have been caught) but I'm not
100% sure about this.

I'd definitely love to help give any more information necessary as well! I'm
hoping y'all will be able to look at this and know what's up, but if there's
any questions please don't hesistate to ask me!

[1]:
https://gist.github.com/alexcrichton/715515a1967ccc0bc1d47e285aa372e3#file-panic-macro-fmt-rs
[2]:
https://gist.github.com/alexcrichton/715515a1967ccc0bc1d47e285aa372e3#file-panic-macro-fmt-panic_macro_fmt0-rcgu-ll

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180124/f27ff431/attachment.html>


More information about the llvm-bugs mailing list