[llvm-bugs] [Bug 52367] New: Clang segfaults when compiling protobuf for mips

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Oct 30 12:55:31 PDT 2021


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

            Bug ID: 52367
           Summary: Clang segfaults when compiling protobuf for mips
           Product: clang
           Version: 13.0
          Hardware: SGI
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: raj.khem at gmail.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

Created attachment 25407
  --> https://bugs.llvm.org/attachment.cgi?id=25407&action=edit
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 https://bugs.llvm.org/ 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 (https://github.com/llvm/llvm-project
d7b669b3a30345cfcdb2fde2af6f48aa4b94845d)                                      
                 Target: mips-yoe-linux-musl

-- 
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/20211030/c4923aa8/attachment.html>


More information about the llvm-bugs mailing list