[Bug 236567] lang/spidermonkey170, lang/spidermonkey38: clang 8 crashes during build on armv7 and armv6

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 236567] lang/spidermonkey170, lang/spidermonkey38: clang 8 crashes during build on armv7 and armv6

bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236567

            Bug ID: 236567
           Summary: lang/spidermonkey170, lang/spidermonkey38: clang 8
                    crashes during build on armv7 and armv6
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: needs-qa
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: [hidden email]
          Reporter: [hidden email]
                CC: [hidden email]
            Blocks: 236062
             Flags: maintainer-feedback?([hidden email])
          Assignee: [hidden email]

$ poudriere jail -cj head-armv7 -x -a arm.armv7 -v head -m svn+https
$ poudriere testport -j head-armv7 lang/spidermonkey38
[...]
Unable to predicate BX killed renamable $r0
!
UNREACHABLE executed at
/usr/src/contrib/llvm/lib/CodeGen/IfConversion.cpp:2022!
c++: error: unable to execute command: Abort trap (core dumped)
c++: error: clang frontend command failed due to signal (use -v to see
invocation)
FreeBSD clang version 8.0.0 (branches/release_80 355677) (based on LLVM 8.0.0)
Target: armv7-unknown-freebsd13.0-gnueabihf
Thread model: posix
InstalledDir: /usr/bin

http://www.ipv6proxy.net/go.php?u=http://beefy16.nyi.freebsd.org/data/head-armv7-default/p495093_s344952/logs/errors/spidermonkey170-17.0.0_8.log
http://www.ipv6proxy.net/go.php?u=http://beefy16.nyi.freebsd.org/data/head-armv7-default/p495093_s344952/logs/errors/spidermonkey38-38.8.0_9.log
http://beefy8.nyi.freebsd.org/data/head-armv6-default/p495404_s345044/logs/errors/spidermonkey38-38.8.0_9.log
http://beefy8.nyi.freebsd.org/data/head-armv6-default/p495404_s345044/logs/errors/spidermonkey170-17.0.0_8.log

Also affects some other ports (found only where qemu-user-static didn't hang):

http://www.ipv6proxy.net/go.php?u=http://beefy16.nyi.freebsd.org/data/head-armv7-default/p495093_s344952/logs/errors/palemoon-27.9.4_4.log
http://www.ipv6proxy.net/go.php?u=http://beefy16.nyi.freebsd.org/data/head-armv7-default/p495093_s344952/logs/errors/seamonkey-2.49.4_24.log
http://beefy8.nyi.freebsd.org/data/head-armv6-default/p495404_s345044/logs/errors/erlang-riak-16.b.02.log


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236062
[Bug 236062] [exp-run] Against projects/clang800-import branch
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-gecko
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 236567] lang/spidermonkey170, lang/spidermonkey38: clang 8 crashes during build on armv7 and armv6

bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236567

--- Comment #1 from Jan Beich <[hidden email]> ---
Created attachment 202899
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=202899&action=edit
vm/Interpreter.cpp (compressed, preprocessed)

--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-gecko
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 236567] lang/spidermonkey170, lang/spidermonkey38: clang 8 crashes during build on armv7 and armv6

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236567

--- Comment #2 from Jan Beich <[hidden email]> ---
Created attachment 202900
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=202900&action=edit
command line args (for clang 8)

--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-gecko
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 236567] lang/spidermonkey170, lang/spidermonkey38: clang 8 crashes during build on armv7 and armv6

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236567

Jan Beich <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]
           Assignee|[hidden email]             |[hidden email]

--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-gecko
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 236567] lang/spidermonkey170, lang/spidermonkey38: clang 8 crashes during build on armv7 and armv6

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236567

Jan Beich <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|Any                         |arm

--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-gecko
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 236567] lang/spidermonkey170, lang/spidermonkey38: clang 8 crashes during build on armv7 and armv6

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236567

Dimitry Andric <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]
             Status|New                         |Open

--- Comment #3 from Dimitry Andric <[hidden email]> ---
Reproduced, minimized and submitted upstream here:

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

--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-gecko
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 236567] lang/spidermonkey170, lang/spidermonkey38: clang 8 crashes during build on armv7 and armv6

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236567

--- Comment #4 from [hidden email] ---
A commit references this bug:

Author: dim
Date: Fri Sep  6 16:06:38 UTC 2019
New revision: 351938
URL: https://svnweb.freebsd.org/changeset/base/351938

Log:
  Pull in r371111 from upstream llvm trunk (by Eli Friedman):

    [IfConversion] Fix diamond conversion with unanalyzable branches.

    The code was incorrectly counting the number of identical
    instructions, and therefore tried to predicate an instruction which
    should not have been predicated.  This could have various effects: a
    compiler crash, an assembler failure, a miscompile, or just
    generating an extra, unnecessary instruction.

    Instead of depending on TargetInstrInfo::removeBranch, which only
    works on analyzable branches, just remove all branch instructions.

    Fixes https://bugs.llvm.org/show_bug.cgi?id=43121 and
    https://bugs.llvm.org/show_bug.cgi?id=41121 .

    Differential Revision: https://reviews.llvm.org/D67203

  This should fix "Unable to predicate BX killed renamable $r0" errors
  when building the lang/spidermonkey170 and lang/spidermonkey38 ports for
  armv7 and armv6.

  PR:           236567
  MFC after:    3 days

Changes:
  head/contrib/llvm/lib/CodeGen/IfConversion.cpp

--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-gecko
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 236567] lang/spidermonkey170, lang/spidermonkey38: clang 8 crashes during build on armv7 and armv6

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236567

--- Comment #5 from [hidden email] ---
A commit references this bug:

Author: dim
Date: Mon Sep  9 17:58:27 UTC 2019
New revision: 352089
URL: https://svnweb.freebsd.org/changeset/base/352089

Log:
  MFC r351938:

  Pull in r371111 from upstream llvm trunk (by Eli Friedman):

    [IfConversion] Fix diamond conversion with unanalyzable branches.

    The code was incorrectly counting the number of identical
    instructions, and therefore tried to predicate an instruction which
    should not have been predicated.  This could have various effects: a
    compiler crash, an assembler failure, a miscompile, or just
    generating an extra, unnecessary instruction.

    Instead of depending on TargetInstrInfo::removeBranch, which only
    works on analyzable branches, just remove all branch instructions.

    Fixes https://bugs.llvm.org/show_bug.cgi?id=43121 and
    https://bugs.llvm.org/show_bug.cgi?id=41121 .

    Differential Revision: https://reviews.llvm.org/D67203

  This should fix "Unable to predicate BX killed renamable $r0" errors
  when building the lang/spidermonkey170 and lang/spidermonkey38 ports for
  armv7 and armv6.

  PR:           236567

Changes:
_U  stable/11/
  stable/11/contrib/llvm/lib/CodeGen/IfConversion.cpp
_U  stable/12/
  stable/12/contrib/llvm/lib/CodeGen/IfConversion.cpp

--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-gecko
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 236567] lang/spidermonkey170, lang/spidermonkey38: clang 8 crashes during build on armv7 and armv6

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236567

Dimitry Andric <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Open                        |Closed
         Resolution|---                         |FIXED

--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-gecko
To unsubscribe, send any mail to "[hidden email]"