[llvm-bugs] [Bug 34476] New: trunk: lvm::MachineFunctionPass::runOnFunction segfault

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Sep 5 03:52:58 PDT 2017


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

            Bug ID: 34476
           Summary: trunk: lvm::MachineFunctionPass::runOnFunction
                    segfault
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: sylvestre at debian.org
                CC: llvm-bugs at lists.llvm.org

Created attachment 19101
  --> https://bugs.llvm.org/attachment.cgi?id=19101&action=edit
testcase

Building firefox with clang trunk:
#0 0x00007ffa90cfa87a llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/lib/x86_64-linux-gnu/libLLVM-6.0.so.1+0x92487a)
#1 0x00007ffa90cf8c2e llvm::sys::RunSignalHandlers()
(/usr/lib/x86_64-linux-gnu/libLLVM-6.0.so.1+0x922c2e)
#2 0x00007ffa90cf8d6a (/usr/lib/x86_64-linux-gnu/libLLVM-6.0.so.1+0x922d6a)
#3 0x00007ffa93b67890 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0xf890)
#4 0x00007ffa90f30547 (/usr/lib/x86_64-linux-gnu/libLLVM-6.0.so.1+0xb5a547)
#5 0x00007ffa90f330fb (/usr/lib/x86_64-linux-gnu/libLLVM-6.0.so.1+0xb5d0fb)
#6 0x00007ffa90f34ddb (/usr/lib/x86_64-linux-gnu/libLLVM-6.0.so.1+0xb5eddb)
#7 0x00007ffa90f53029 llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/usr/lib/x86_64-linux-gnu/libLLVM-6.0.so.1+0xb7d029)
#8 0x00007ffa90dc0ee2 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/usr/lib/x86_64-linux-gnu/libLLVM-6.0.so.1+0x9eaee2)
#9 0x00007ffa90dc0f73 llvm::FPPassManager::runOnModule(llvm::Module&)
(/usr/lib/x86_64-linux-gnu/libLLVM-6.0.so.1+0x9eaf73)
#10 0x00007ffa90dc1894 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/usr/lib/x86_64-linux-gnu/libLLVM-6.0.so.1+0x9eb894)
#11 0x0000000000875cd8 (/usr/lib/llvm-6.0/bin/clang+0x875cd8)
#12 0x000000000087785a clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::HeaderSearchOptions const&, clang::CodeGenOptions const&,
clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout
const&, llvm::Module*, clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >)
(/usr/lib/llvm-6.0/bin/clang+0x87785a)
#13 0x0000000000d5a93d (/usr/lib/llvm-6.0/bin/clang+0xd5a93d)
#14 0x0000000000e980bc clang::ParseAST(clang::Sema&, bool, bool)
(/usr/lib/llvm-6.0/bin/clang+0xe980bc)
#15 0x0000000000d5a004 clang::CodeGenAction::ExecuteAction()
(/usr/lib/llvm-6.0/bin/clang+0xd5a004)
#16 0x0000000000bdd93e clang::FrontendAction::Execute()
(/usr/lib/llvm-6.0/bin/clang+0xbdd93e)
#17 0x0000000000bb2556
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/lib/llvm-6.0/bin/clang+0xbb2556)
#18 0x0000000000c6bd33
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/lib/llvm-6.0/bin/clang+0xc6bd33)
#19 0x0000000000834878 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/usr/lib/llvm-6.0/bin/clang+0x834878)
#20 0x0000000000821f95 main (/usr/lib/llvm-6.0/bin/clang+0x821f95)
#21 0x00007ffa8f5e5b45 __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21b45)
#22 0x00000000008323b3 _start (/usr/lib/llvm-6.0/bin/clang+0x8323b3)
Stack dump:
0.      Program arguments: /usr/lib/llvm-6.0/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -S -disable-free -disable-llvm-verifier
-discard-value-names -main-file-name mp_comba.c -mrelocation-model pic
-pic-level 2 -mthread-model posix -mdisable-fp-elim -relaxed-aliasing
-masm-verbose -no-integrated-as -mconstructor-aliases -munwind-tables
-fuse-init-array -target-cpu x86-64 -target-feature +pclmul -target-feature
+aes -momit-leaf-frame-pointer -dwarf-column-info -debug-info-kind=limited
-dwarf-version=4 -debugger-tuning=gdb -coverage-notes-file
/data/jenkins/workspace/firefox-clang-lld-last/obj-x86_64-pc-linux-gnu/security/nss/lib/freebl/freebl_freeblpriv3/mp_comba.gcno
-resource-dir /usr/lib/llvm-6.0/lib/clang/6.0.0 -dependency-file
.deps/mp_comba.o.pp -MT mp_comba.o -sys-header-deps -MP -include
/data/jenkins/workspace/firefox-clang-lld-last/obj-x86_64-pc-linux-gnu/mozilla-config.h
-D DEBUG -D SHLIB_SUFFIX="so" -D SHLIB_PREFIX="lib" -D SHLIB_VERSION="3" -D
SOFTOKEN_SHLIB_VERSION="3" -D RIJNDAEL_INCLUDE_TABLES -D MP_API_COMPATIBLE -D
HAVE_INT128_SUPPORT -D FREEBL_LOWHASH -D FREEBL_NO_DEPEND -D
MP_IS_LITTLE_ENDIAN -D NSS_BEVAND_ARCFOUR -D MPI_AMD64 -D MP_ASSEMBLY_MULTIPLY
-D NSS_USE_COMBA -D USE_HW_AES -D INTEL_GCM -D NSS_FIPS_DISABLED -D
NSS_X86_OR_X64 -D NSS_X64 -D NSS_USE_64 -D SEED_ONLY_DEV_URANDOM -D
NSS_NO_INIT_SUPPORT -D USE_UTIL_DIRECTLY -D NO_NSPR_10_SUPPORT -D
SSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES -D LINUX2_1 -D LINUX -D linux -D
HAVE_STRERROR -D XP_UNIX -D _REENTRANT -D NSS_DISABLE_LIBPKIX -I
/data/jenkins/workspace/firefox-clang-lld-last/security/nss/lib/freebl -I
/data/jenkins/workspace/firefox-clang-lld-last/obj-x86_64-pc-linux-gnu/security/nss/lib/freebl/freebl_freeblpriv3
-I /data/jenkins/workspace/firefox-clang-lld-last/security/nss/lib/freebl/mpi
-I /data/jenkins/workspace/firefox-clang-lld-last/security/nss/lib/freebl/ecl
-I
/data/jenkins/workspace/firefox-clang-lld-last/security/nss/lib/freebl/verified
-I
/data/jenkins/workspace/firefox-clang-lld-last/obj-x86_64-pc-linux-gnu/dist/include/nspr
-I
/data/jenkins/workspace/firefox-clang-lld-last/obj-x86_64-pc-linux-gnu/dist/include/private/nss
-I
/data/jenkins/workspace/firefox-clang-lld-last/obj-x86_64-pc-linux-gnu/dist/include/nss
-I
/data/jenkins/workspace/firefox-clang-lld-last/obj-x86_64-pc-linux-gnu/dist/include
-D MOZILLA_CLIENT -internal-isystem /usr/local/include -internal-isystem
/usr/lib/llvm-6.0/lib/clang/6.0.0/include -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem /include
-internal-externc-isystem /usr/include -Os -Wall -Wempty-body
-Wignored-qualifiers -Wpointer-arith -Wsign-compare -Wtype-limits
-Wunreachable-code -Wunreachable-code-return -Wclass-varargs -Wloop-analysis
-Werror=non-literal-null-conversion -Wstring-conversion
-Wno-error=deprecated-declarations -Wno-error=array-bounds -Wformat
-Wno-gnu-zero-variadic-macro-arguments -Wformat-security -std=gnu99
-fno-dwarf-directory-asm -fdebug-compilation-dir
/data/jenkins/workspace/firefox-clang-lld-last/obj-x86_64-pc-linux-gnu/security/nss/lib/freebl/freebl_freeblpriv3
-ferror-limit 19 -fmessage-length 0 -pthread -fobjc-runtime=gcc
-fdiagnostics-show-option -vectorize-loops -vectorize-slp -o
/tmp/mp_comba-5e0f50.s -x c
/data/jenkins/workspace/firefox-clang-lld-last/security/nss/lib/freebl/mpi/mp_comba.c
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module
'/data/jenkins/workspace/firefox-clang-lld-last/security/nss/lib/freebl/mpi/mp_comba.c'.
4.      Running pass 'Machine Copy Propagation Pre-Register Rewrite Pass' on
function '@s_mp_sqr_comba_32'
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 6.0.0-svn312408-1~exp1 (trunk)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
/usr/bin/clang-6.0 -std=gnu99 -o mpi.o -c  -DDEBUG '-DSHLIB_SUFFIX="so"'
'-DSHLIB_PREFIX="lib"' '-DSHLIB_VERSION="3"' '-DSOFTOKEN_SHLIB_VERSION="3"'
-DRIJNDAEL_INCLUDE_TABLES -DMP_API_COMPATIBLE -DHAVE_INT128_SUPPORT
-DFREEBL_LOWHASH -DFREEBL_NO_DEPEND -DMP_IS_LITTLE_ENDIAN -DNSS_BEVAND_ARCFOUR
-DMPI_AMD64 -DMP_ASSEMBLY_MULTIPLY -DNSS_USE_COMBA -DUSE_HW_AES -DINTEL_GCM
-DNSS_FIPS_DISABLED -DNSS_X86_OR_X64 -DNSS_X64 -DNSS_USE_64
-DSEED_ONLY_DEV_URANDOM -DNSS_NO_INIT_SUPPORT -DUSE_UTIL_DIRECTLY
-DNO_NSPR_10_SUPPORT -DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES -DLINUX2_1
-DLINUX -Dlinux -DHAVE_STRERROR -DXP_UNIX -D_REENTRANT -DNSS_DISABLE_LIBPKIX
-I/data/jenkins/workspace/firefox-clang-lld-last/security/nss/lib/freebl
-I/data/jenkins/workspace/firefox-clang-lld-last/obj-x86_64-pc-linux-gnu/security/nss/lib/freebl/freebl_freeblpriv3
-I/data/jenkins/workspace/firefox-clang-lld-last/security/nss/lib/freebl/mpi
-I/data/jenkins/workspace/firefox-clang-lld-last/security/nss/lib/freebl/ecl
-I/data/jenkins/workspace/firefox-clang-lld-last/security/nss/lib/freebl/verified
-I/data/jenkins/workspace/firefox-clang-lld-last/obj-x86_64-pc-linux-gnu/dist/include/nspr
-I/data/jenkins/workspace/firefox-clang-lld-last/obj-x86_64-pc-linux-gnu/dist/include/private/nss
-I/data/jenkins/workspace/firefox-clang-lld-last/obj-x86_64-pc-linux-gnu/dist/include/nss
-I/data/jenkins/workspace/firefox-clang-lld-last/obj-x86_64-pc-linux-gnu/dist/include
   -fPIC  -include
/data/jenkins/workspace/firefox-clang-lld-last/obj-x86_64-pc-linux-gnu/mozilla-config.h
-DMOZILLA_CLIENT -MD -MP -MF .deps/mpi.o.pp -Qunused-arguments  
-Qunused-arguments -Wall -Wempty-body -Wignored-qualifiers -Wpointer-arith
-Wsign-compare -Wtype-limits -Wunreachable-code -Wunreachable-code-return
-Wclass-varargs -Wloop-analysis -Werror=non-literal-null-conversion
-Wstring-conversion -Wno-error=deprecated-declarations -Wno-error=array-bounds
-Wformat -Wno-gnu-zero-variadic-macro-arguments -Wformat-security
-fno-strict-aliasing -fno-math-errno -pthread -pipe  -g -Os
-fno-omit-frame-pointer  -mpclmul -maes -no-integrated-as  
/data/jenkins/workspace/firefox-clang-lld-last/security/nss/lib/freebl/mpi/mpi.c
clang: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/mp_comba-d9f8e1.c
clang: note: diagnostic msg: /tmp/mp_comba-d9f8e1.sh
clang: note: diagnostic msg:

********************
/data/jenkins/workspace/firefox-clang-lld-last/config/rules.mk:795: recipe for
target 'mp_comba.o' failed


Sorry, I didn't try to generate a smaller test case yet.

-- 
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/20170905/3c800a82/attachment-0001.html>


More information about the llvm-bugs mailing list