[LLVMbugs] [Bug 7096] New: Compiler crash while compiling guile
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri May 7 20:46:13 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=7096
Summary: Compiler crash while compiling guile
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: pipping.elias at gmail.com
CC: llvmbugs at cs.uiuc.edu
I've spent an enormous amount of time trying to reduce this to something even
remotely resembling a minimal test case and I've failed miserably. So I'm
afraid this is the best example I can come up with.
pipping at bogus ~/Downloads $ clang --version
clang version 2.0 (trunk 103331)
Target: x86_64-pc-linux-gnu
Thread model: posix
pipping at bogus ~/Downloads $ tar xf guile-1.9.10.tar.gz
pipping at bogus ~/Downloads $ cd guile-1.9.10/
pipping at bogus ~/Downloads/guile-1.9.10 $ ./configure CC=clang >/dev/null
pipping at bogus ~/Downloads/guile-1.9.10 $ cd libguile/
pipping at bogus ~/Downloads/guile-1.9.10/libguile $ make -s version.h
vm-i-{loader,scheme,system}.i
pipping at bogus ~/Downloads/guile-1.9.10/libguile $ make -s vm.x
libtool: link: clang -Wall -Wmissing-prototypes -Wdeclaration-after-statement
-Wundef -Wswitch-enum -fvisibility=hidden -g -O2 -o gen-scmconfig
gen-scmconfig.o -lgc -lunistring -lcrypt -lm -lltdl
pipping at bogus ~/Downloads/guile-1.9.10/libguile $ make vm.o
clang -DHAVE_CONFIG_H -DBUILDING_LIBGUILE=1 -I.. -I.. -I../lib -I../lib
-I/usr/lib64/libffi-3.0.9/include -Wall -Wmissing-prototypes
-Wdeclaration-after-statement -Wundef -Wswitch-enum -fvisibility=hidden -g -O2
-MT vm.o -MD -MP -MF .deps/vm.Tpo -c -o vm.o vm.c
0 libLLVM-2.8svn.so 0x00002abde4ff728f
1 libLLVM-2.8svn.so 0x00002abde4ff7779
2 libpthread.so.0 0x00002abde57b5c50
3 libLLVM-2.8svn.so 0x00002abde4b12824
llvm::SSAUpdaterImpl<llvm::MachineSSAUpdater>::CheckIfPHIMatches(llvm::MachineInstr*)
+ 244
4 libLLVM-2.8svn.so 0x00002abde4b12022
llvm::SSAUpdaterImpl<llvm::MachineSSAUpdater>::FindAvailableVals(llvm::SmallVectorImpl<llvm::SSAUpdaterImpl<llvm::MachineSSAUpdater>::BBInfo*>*)
+ 162
5 libLLVM-2.8svn.so 0x00002abde4b1164a
llvm::SSAUpdaterImpl<llvm::MachineSSAUpdater>::GetValue(llvm::MachineBasicBlock*)
+ 314
6 libLLVM-2.8svn.so 0x00002abde4b10a1a
llvm::MachineSSAUpdater::GetValueAtEndOfBlockInternal(llvm::MachineBasicBlock*)
+ 186
7 libLLVM-2.8svn.so 0x00002abde4b11348
llvm::MachineSSAUpdater::RewriteUse(llvm::MachineOperand&) + 200
8 libLLVM-2.8svn.so 0x00002abde4b916a1
9 libLLVM-2.8svn.so 0x00002abde4afae2d
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 61
10 libLLVM-2.8svn.so 0x00002abde4c4f577
llvm::FPPassManager::runOnFunction(llvm::Function&) + 375
11 libLLVM-2.8svn.so 0x00002abde4c4ed99
llvm::FunctionPassManagerImpl::run(llvm::Function&) + 201
12 libLLVM-2.8svn.so 0x00002abde4c4ec9e
llvm::FunctionPassManager::run(llvm::Function&) + 142
13 clang 0x000000000041effd
14 clang 0x00000000005e3c59
15 clang 0x00000000004220e4
16 clang 0x00000000004156b1
17 clang 0x0000000000416c49 main + 233
18 libc.so.6 0x00002abde637eb6d __libc_start_main + 253
19 clang 0x0000000000413819
Stack dump:
0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu -S
-disable-free -main-file-name vm.c -mrelocation-model static -mdisable-fp-elim
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -g -resource-dir
/usr/lib/clang/2.0 -dependency-file .deps/vm.Tpo -sys-header-deps -MP -MT vm.o
-DHAVE_CONFIG_H -DBUILDING_LIBGUILE=1 -I.. -I.. -I../lib -I../lib
-I/usr/lib64/libffi-3.0.9/include -O2 -Wall -Wmissing-prototypes
-Wdeclaration-after-statement -Wundef -Wswitch-enum -ferror-limit 19
-fmessage-length 238 -fvisibility hidden -fgnu-runtime
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-MEz3jO.s -x c vm.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Tail Duplication' on function '@vm_regular_engine'
clang: error: compiler command failed due to signal 11 (use -v to see
invocation)
make: *** [vm.o] Error 245
pipping at bogus ~/Downloads/guile-1.9.10/libguile $
The issue is apparently related to optimization:
pipping at bogus ~/Downloads/guile-1.9.10/libguile $ clang -DHAVE_CONFIG_H
-DBUILDING_LIBGUILE=1 -I.. -I.. -I../lib -I../lib
-I/usr/lib64/libffi-3.0.9/include -Wall -Wmissing-prototypes
-Wdeclaration-after-statement -Wundef -Wswitch-enum -fvisibility=hidden -g -O2
-MT vm.o -MD -MP -MF .deps/vm.Tpo -c -o vm.o vm.c 2>/dev/null; echo $?
245
pipping at bogus ~/Downloads/guile-1.9.10/libguile $ clang -DHAVE_CONFIG_H
-DBUILDING_LIBGUILE=1 -I.. -I.. -I../lib -I../lib
-I/usr/lib64/libffi-3.0.9/include -Wall -Wmissing-prototypes
-Wdeclaration-after-statement -Wundef -Wswitch-enum -fvisibility=hidden -g -O1
-MT vm.o -MD -MP -MF .deps/vm.Tpo -c -o vm.o vm.c 2>/dev/null; echo $?
245
pipping at bogus ~/Downloads/guile-1.9.10/libguile $ clang -DHAVE_CONFIG_H
-DBUILDING_LIBGUILE=1 -I.. -I.. -I../lib -I../lib
-I/usr/lib64/libffi-3.0.9/include -Wall -Wmissing-prototypes
-Wdeclaration-after-statement -Wundef -Wswitch-enum -fvisibility=hidden -g -O0
-MT vm.o -MD -MP -MF .deps/vm.Tpo -c -o vm.o vm.c 2>/dev/null; echo $?
0
pipping at bogus ~/Downloads/guile-1.9.10/libguile $
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list