<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Clang segfaults when compiling protobuf for mips"
   href="https://bugs.llvm.org/show_bug.cgi?id=52367">52367</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Clang segfaults when compiling protobuf for mips
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>13.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>SGI
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>release blocker
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>C++
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>raj.khem@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>blitzrakete@gmail.com, dgregor@apple.com, erik.pilkington@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=25407" name="attach_25407" title="test case">attachment 25407</a> <a href="attachment.cgi?id=25407&action=edit" title="test case">[details]</a></span>
test case

attached testcase causes clang to sigsegv

fatal error: error in backend: failed to perform tail call elimination on a
call site marked musttail                                                       
PLEASE submit a bug report to <a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash
backtrace, preprocessed source, and associated run script.                      
Stack dump:                                                                     
0.      Program arguments: mips-yoe-linux-musl-clang++ -target
mips-yoe-linux-musl -mabi=32 -mhard-float -march=mips32r2 -mbig-endian
-Qunused-arguments -fs
tack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
-Werror=format-security
--sysroot=/mnt/b/yoe/master/build/tmp/work/mips32r2-yoe-lin
ux-musl/protobuf/3.19.0-r0/recipe-sysroot -DHAVE_CONFIG_H -I. -I.. -pthread
-DHAVE_PTHREAD=1 -DHAVE_ZLIB=1 -Wall -Wno-sign-compare -O2 -pipe -g
-feliminate-
unused-debug-types
-fmacro-prefix-map=/mnt/b/yoe/master/build/tmp/work/mips32r2-yoe-linux-musl/protobuf/3.19.0-r0=/usr/src/debug/protobuf/3.19.0-r0
-fdebug-
prefix-map=/mnt/b/yoe/master/build/tmp/work/mips32r2-yoe-linux-musl/protobuf/3.19.0-r0=/usr/src/debug/protobuf/3.19.0-r0
-fdebug-prefix-map=/mnt/b/yoe/maste
r/build/tmp/work/mips32r2-yoe-linux-musl/protobuf/3.19.0-r0/recipe-sysroot=
-fdebug-prefix-map=/mnt/b/yoe/master/build/tmp/work/mips32r2-yoe-linux-musl/prot
obuf/3.19.0-r0/recipe-sysroot-native= -fvisibility-inlines-hidden -c
google/protobuf/generated_message_tctable_lite.cc -fPIC -DPIC -o
google/protobuf/.libs/
generated_message_tctable_lite.o                                                
1.      <eof> parser at end of file                                             
2.      Code generation                                                         
3.      Running pass 'Function Pass Manager' on module
'google/protobuf/generated_message_tctable_lite.cc'.                            
4.      Running pass 'MIPS DAG->DAG Pattern Instruction Selection' on function
'@_ZN6google8protobuf8internal8TcParser13SingularFixedIyhEEPKcPNS0_11MessageL
iteES5_PNS1_12ParseContextEPKNS1_16TcParseTableBaseEyNS1_11TcFieldDataE'        
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH
or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):            
clang-13: error: clang frontend command failed with exit code 70 (use -v to see
invocation)                                                                
clang version 13.0.0 (<a href="https://github.com/llvm/llvm-project">https://github.com/llvm/llvm-project</a>
d7b669b3a30345cfcdb2fde2af6f48aa4b94845d)                                      
                 Target: mips-yoe-linux-musl</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>