[LLVMbugs] [Bug 4313] New: tablegen crashes when compiled with LTO

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Jun 3 09:31:42 PDT 2009


http://llvm.org/bugs/show_bug.cgi?id=4313

           Summary: tablegen crashes when compiled with LTO
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: edwintorok at gmail.com
                CC: llvmbugs at cs.uiuc.edu


If I compile LLVM with LTO on Linux, by using instructions from here
http://llvm.org/docs/GoldPlugin.html#lto_autotools, and additionally doing
make ENABLE_OPTIMIZED=1 OPTIMIZE_OPTION=-O4, then tablegen crashes with heap
corruption.

OPTIMIZE_OPTION=-O3 works fine, valgrind is clean; with OPTIMIZE_OPTION=-O4
valgrind reports use-after-free.

I can reproduce this with llvm-ld too, -disable-opt works fine, defaults create
bugged tblgen.

Here's how I've run bugpoint:
bugpoint -run-llc -safe-run-llc -internalize -ipsccp -globalopt -constmerge
-deadargelim -instcombine -basiccg -inline -prune-eh -globalopt -globaldce
-basiccg -argpromotion -instcombine -jump-threading -domtree -domfrontier
-scalarrepl -basiccg -functionattrs -globalsmodref-aa -domtree -loops
-loopsimplify -domfrontier -licm -memdep -gvn -memdep -memcpyopt -dse
-instcombine -jump-threading -domtree -domfrontier -mem2reg -simplifycfg
-globaldce -instcombine -simplifycfg -adce -globaldce -preverify -domtree
-verify /home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/AsmWriterEmitter.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/CallingConvEmitter.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/ClangDiagnosticsEmitter.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/CodeEmitterGen.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/CodeGenDAGPatterns.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/CodeGenInstruction.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/CodeGenTarget.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/DAGISelEmitter.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/FastISelEmitter.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/InstrEnumEmitter.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/InstrInfoEmitter.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/IntrinsicEmitter.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/LLVMCConfigurationEmitter.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/Record.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/RegisterInfoEmitter.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/SubtargetEmitter.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/TGLexer.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/TGParser.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/TGSourceMgr.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/TGValueTypes.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/TableGen.o
/home/edwin/llvm-svn/llvm-lto/utils/TableGen/Release/TableGenBackend.o
-Xlinker=-lLLVMSupport -Xlinker=-lLLVMSystem -Xlinker=/usr/lib/libstdc++.so.6
-Xlinker=-lpthread -Xlinker=-ldl --args -I /home/edwin/llvm-svn/llvm/lib/VMCore
-I /home/edwin/llvm-svn/llvm/include -I /home/edwin/llvm-svn/llvm/include -I
/home/edwin/llvm-svn/llvm/lib/Target
/home/edwin/llvm-svn/llvm/include/llvm/Intrinsics.td -o
/home/edwin/llvm-svn/llvm-lto/lib/VMCore/Release/Intrinsics.gen.tmp
-gen-intrinsic

I haven't got a reduced .bc file yet, will attach when I have one.


-- 
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