LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 25802 - Assertion `Hi->getOffset() >= Lo->getOffset() && "Expected Hi to be greater than Lo"' failed
Summary: Assertion `Hi->getOffset() >= Lo->getOffset() && "Expected Hi to be greater t...
Status: RESOLVED FIXED
Alias: None
Product: libraries
Classification: Unclassified
Component: MC (show other bugs)
Version: trunk
Hardware: PC Linux
: P normal
Assignee: Rafael Ávila de Espíndola
URL:
Keywords:
Depends on:
Blocks: 25780 26059
  Show dependency tree
 
Reported: 2015-12-10 15:13 PST by Jörg Sonnenberger
Modified: 2016-01-11 17:22 PST (History)
5 users (show)

See Also:
Fixed By Commit(s):


Attachments
Reduced test case (1.19 KB, text/x-c++src)
2015-12-10 15:13 PST, Jörg Sonnenberger
Details
this crashes llc (4.87 KB, application/octet-stream)
2016-01-11 16:40 PST, Rafael Ávila de Espíndola
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jörg Sonnenberger 2015-12-10 15:13:11 PST
Created attachment 15430 [details]
Reduced test case

Initial reduction of the test case is attached, build with:

--target powerpc--netbsd -O2

Bisect points to r239552.
Comment 1 Mark Millard 2015-12-10 17:01:55 PST
Another Platform: Macintosh (PowerMac G5) 11.0-CURRENT FreeBSD. Block's "buildworld".

I had submitted a clang crash report in to FreeBSD for its system clang (3.7) in 11.0-CURRENT on powerpc64 (an old PowerMac G5 is my example), where it crashed during the attempt to "buildworld". (See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205183 .) Roman Divacky reports that my submittal is an example of this 25802 issue.

On 2015-Dec-10, at 2:19 PM, Roman Divacky <rdivacky@vlakno.cz> wrote:

This is https://llvm.org/bugs/show_bug.cgi?id=25802

That was in response to:

On Thu, Dec 10, 2015 at 11:56:55AM -0800, Mark Millard wrote:
I have submitted bug 205183 for powerpc64's 11.0-CURRENT r291745 system clang 3.7 crashing when compiling contrib/atf/atf-sh/atf-check.cpp during buildworld. The backtrace and a .zip of the atf-check-a96a93.cpp and atf-check-a96a93.sh provided were submitted.

The "Affects Only Me" status might need to change if others also see the crash. In my context it is reproducible.
Comment 2 Rafael Ávila de Espíndola 2016-01-11 16:40:40 PST
Created attachment 15606 [details]
this crashes llc
Comment 3 Rafael Ávila de Espíndola 2016-01-11 16:58:16 PST
 think the assert is just bogus. The assembly has

 .long   .Ltmp8-.Ltmp13          #   Call between .Ltmp13 and .Ltmp8

And Ltmp8 is befor Ltmp13, which is fine.

I will try to reduce the testcase a bit more.
Comment 4 Rafael Ávila de Espíndola 2016-01-11 17:22:55 PST
Fixed in r257412.