[llvm-bugs] [Bug 25397] New: clang 3.7.0 segfaults during mpich3.1.4 compile

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Nov 3 17:32:16 PST 2015


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

            Bug ID: 25397
           Summary: clang 3.7.0 segfaults during mpich3.1.4 compile
           Product: clang
           Version: 3.7
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: cwsmith07 at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 15214
  --> https://llvm.org/bugs/attachment.cgi?id=15214&action=edit
tarball with the following files:

clang 3.7.0 segfaults when compiling mpich3.1.4 
http://www.mpich.org/static/downloads/3.1.4/mpich-3.1.4.tar.gz

Mpich was configured with the following command:

../configure --disable-fortran
--prefix=/home/cwsmith/software/mpich-3.1.4/installClang370
--enable-threads=multiple CC=clang CXX=clang++ --enable-yield=sched_yield 

The files suggested for submission with the bug report by the diagnostic
message are attached.

Compilation failed with the following output:

  CC       src/mpi/pt2pt/lib_libmpi_la-greq_start.lo
../src/mpi/pt2pt/greq_start.c:239:62: error: alias must point to a defined
variable or function
        MPIX_Grequest_class *greq_class)
__attribute__((weak,alias("MPIX_Grequest_class_create")));
                                                             ^
0  libLLVM.so.3.7  0x00007fdbdca92228
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 56
1  libLLVM.so.3.7  0x00007fdbdca91041
2  libpthread.so.0 0x00007fdbdc323d60
3  clang-3.7       0x0000000000699256
clang::CodeGen::CodeGenModule::checkAliases() + 598
4  clang-3.7       0x00000000006a4519 clang::CodeGen::CodeGenModule::Release()
+ 25
5  clang-3.7       0x000000000098370d
6  clang-3.7       0x0000000000ab70d2 clang::ParseAST(clang::Sema&, bool, bool)
+ 802
7  clang-3.7       0x0000000000908b06 clang::FrontendAction::Execute() + 502
8  clang-3.7       0x00000000008e2e79
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 313
9  clang-3.7       0x0000000000982624
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1940
10 clang-3.7       0x0000000000652958 cc1_main(llvm::ArrayRef<char const*>,
char const*, void*) + 2280
11 clang-3.7       0x000000000064db7b main + 1003
12 libc.so.6       0x00007fdbdb9f7610 __libc_start_main + 240
13 clang-3.7       0x0000000000650839 _start + 41
Stack dump:
0.    Program arguments: /usr/bin/clang-3.7 -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -disable-free -disable-llvm-verifier
-main-file-name greq_start.c -mrelocation-model pic -pic-level 2 -mthread-model
posix -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables
-fuse-init-array -target-cpu x86-64 -momit-leaf-frame-pointer
-dwarf-column-info -coverage-file
/home/cwsmith/software/mpich-3.1.4/buildClang370/src/mpi/pt2pt/.libs/lib_libmpi_la-greq_start.o
-resource-dir /usr/bin/../lib/clang/3.7.0 -dependency-file
src/mpi/pt2pt/.deps/lib_libmpi_la-greq_start.Tpo -sys-header-deps -MP -MT
src/mpi/pt2pt/lib_libmpi_la-greq_start.lo -D HAVE_CONFIG_H -D _REENTRANT -D PIC
-I . -I .. -I ./src/include -I ../src/include -I ../src/mpi/datatype -I
../src/mpi/spawn -I src/util/logging/common -I ../src/util/wrappers -I
./src/util/wrappers -I ./src/binding/cxx -I ../src/mpid/ch3/include -I
./src/mpid/ch3/include -I ../src/mpid/ch3/channels/nemesis/include -I
./src/mpid/ch3/channels/nemesis/include -I
../src/mpid/ch3/channels/nemesis/utils/monitor -I ../src/mpid/common/datatype
-I ../src/mpid/common/datatype -I ../src/mpid/common/sched -I
../src/mpid/common/thread -I ../src/pmi/simple -I
/home/cwsmith/software/mpich-3.1.4/buildClang370/src/mpl/include -I
/home/cwsmith/software/mpich-3.1.4/src/mpl/include -I
/home/cwsmith/software/mpich-3.1.4/src/openpa/src -I
/home/cwsmith/software/mpich-3.1.4/buildClang370/src/openpa/src -I
/home/cwsmith/software/mpich-3.1.4/buildClang370/src/mpi/romio/include
-internal-isystem /usr/local/include -internal-isystem
/usr/bin/../lib/clang/3.7.0/include -internal-externc-isystem /include
-internal-externc-isystem /usr/include -O2 -fdebug-compilation-dir
/home/cwsmith/software/mpich-3.1.4/buildClang370 -ferror-limit 19
-fmessage-length 211 -mstackrealign -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-o src/mpi/pt2pt/.libs/lib_libmpi_la-greq_start.o -x c
../src/mpi/pt2pt/greq_start.c 
1.    <eof> parser at end of file
2.    Per-file LLVM IR generation
clang-3.7: error: unable to execute command: Segmentation fault (core dumped)
clang-3.7: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.7.0 (tags/RELEASE_370/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix

-- 
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/20151104/06abb12a/attachment.html>


More information about the llvm-bugs mailing list