[llvm-bugs] [Bug 51416] New: clang musttail crash on arm32

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Aug 9 09:39:06 PDT 2021


            Bug ID: 51416
           Summary: clang musttail crash on arm32
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: manojgupta at google.com
                CC: htmldeveloper at gmail.com, llozano at chromium.org,
                    llvm-bugs at lists.llvm.org, manojgupta at google.com,
                    neeilans at live.com, richard-llvm at metafoo.co.uk

A new feture in clang [[msuttail]] is causing clang to cash on our internal

Reduced test case:

typedef long a;
typedef short b;
typedef long long c;
class d;
class e;
struct f {};
struct g;
class h {
  enum i { j };
template <unsigned> struct k : h {
  static char *l(d *, const char *, e *, const g *, c, f);
  template <typename, typename, i>
  static const char *m(d *, const char *, e *, const g *, c, f);
template <unsigned n>
template <typename, typename, h::i>
const char *k<n>::m(d *o, const char *p, e *p3, const g *q, c r, f s) {
  [[clang::musttail]] return l(o, p, p3, q, r, s);
template const char *k<1>::m<a, b, h::j>(d *, const char *, e *, const g *, c,
clang++ -target armv7a-linux-gnueabihf -mfpu=neon tctable_lite.cpp -c

fatal error: error in backend: failed to perform tail call elimination on a
call site marked musttail
PLEASE submit a bug report to https://crbug.com and run
tools/clang/scripts/process_crashreports.py (only works inside Google) which
will upload a report and include the crash backtrace, preprocessed source, and
associated run script.
Stack dump:
0.      Program arguments:
-target armv7a-linux-gnueabihf -mfpu=neon
generated_message_tctable_lite-b3fd7e.cpp -c
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module
4.      Running pass 'ARM Instruction Selection' on function
#0 0x00000000033130b8 

clang: error: clang frontend command failed with exit code 70 (use -v to see
clang version 14.0.0 (https://github.com/llvm/llvm-project/
Target: armv7a-unknown-linux-gnueabihf

Still repros on ToT.

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/20210809/0c023224/attachment.html>

More information about the llvm-bugs mailing list