[LLVMbugs] [Bug 12610] New: llvm/dragonegg 3.1 segfaults compiling capacita.f90 with "-O2 -ftree-vectorize -fplugin-arg-dragonegg-enable-gcc-optzns"

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Apr 20 20:01:14 PDT 2012


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

             Bug #: 12610
           Summary: llvm/dragonegg 3.1 segfaults compiling capacita.f90
                    with "-O2 -ftree-vectorize
                    -fplugin-arg-dragonegg-enable-gcc-optzns"
           Product: dragonegg
           Version: 3.0
          Platform: Macintosh
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P
         Component: New Bugs
        AssignedTo: baldrick at free.fr
        ReportedBy: howarth at nitro.med.uc.edu
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


The llvm/dragonegg 3.1 branch at r155228 causes FSF gcc 4.7.0 to ICE when
compiling the Polyhedron 2005 capacita.f90 benchmark with "-O2 -ftree-vectorize
-fplugin-arg-dragonegg-enable-gcc-optzns"...

% /sw/lib/gcc4.7/bin/gfortran -fplugin=/sw/lib/gcc4.7/lib/dragonegg.so  -O2
-ftree-vectorize -fplugin-arg-dragonegg-enable-gcc-optzns capacita.f90 -o
capacita
vect_perm_even.969_559 = VEC_PERM_EXPR <vect_var_.967_556, vect_var_.968_558, {
0, 2, 4, 6 }>;

*** WARNING *** there are active plugins, do not report this as a bug unless
you can reproduce it without enabling any plugins.
Event                            | Plugins
PLUGIN_FINISH_UNIT               | dragonegg
PLUGIN_FINISH                    | dragonegg
PLUGIN_START_UNIT                | dragonegg
PLUGIN_ALL_IPA_PASSES_END        | dragonegg
capacita.f90: In function ‘__solv_cap_MOD_preco’:
capacita.f90:233:0: internal compiler error: Segmentation fault: 11
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

and backtraces as...


% lldb /sw/lib/gcc4.7/libexec/gcc/x86_64-apple-darwin11.4.0/4.7.1/f951
Current executable set to
'/sw/lib/gcc4.7/libexec/gcc/x86_64-apple-darwin11.4.0/4.7.1/f951' (x86_64).
(lldb) r capacita.f90
-iplugindir=/sw/lib/gcc4.7/lib/gcc/x86_64-apple-darwin11.4.0/4.7.1/plugin -fPIC
-quiet -dumpbase capacita.f90 -mmacosx-version-min=10.7.4 -mtune=core2 -auxbase
capacita -O2 -version -fplugin=/sw/lib/gcc4.7/lib/dragonegg.so -ftree-vectorize
-fplugin-arg-dragonegg-enable-gcc-optzns -fintrinsic-modules-path
/sw/lib/gcc4.7/lib/gcc/x86_64-apple-darwin11.4.0/4.7.1/finclude -o
/var/folders/1l/n78sywl52lz6kkys6nv7mnph0000gp/T//ccM2Awx9.s
Process 42802 launched:
'/sw/lib/gcc4.7/libexec/gcc/x86_64-apple-darwin11.4.0/4.7.1/f951' (x86_64)
GNU Fortran (GCC) version 4.7.1 20120407 (prerelease)
(x86_64-apple-darwin11.4.0)
    compiled by GNU C version 4.7.1 20120407 (prerelease), GMP version 5.0.4,
MPFR version 3.1.0-p3, MPC version 0.9
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Versions of loaded plugins:
 dragonegg: 3.1svn
GNU Fortran (GCC) version 4.7.1 20120407 (prerelease)
(x86_64-apple-darwin11.4.0)
    compiled by GNU C version 4.7.1 20120407 (prerelease), GMP version 5.0.4,
MPFR version 3.1.0-p3, MPC version 0.9
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Versions of loaded plugins:
 dragonegg: 3.1svn
vect_perm_even.969_559 = VEC_PERM_EXPR <vect_var_.967_556, vect_var_.968_558, {
0, 2, 4, 6 }>;

Process 42802 stopped
* thread #1: tid = 0x1f03, 0x0000000142a33e77
dragonegg.so`TreeToLLVM::EmitAssignRHS(gimple_statement_d*) + 279, stop reason
= EXC_BAD_ACCESS (code=13, address=0x0)
    frame #0: 0x0000000142a33e77
dragonegg.so`TreeToLLVM::EmitAssignRHS(gimple_statement_d*) + 279
dragonegg.so`TreeToLLVM::EmitAssignRHS(gimple_statement_d*) + 279:
-> 0x142a33e77:  movslq (%rcx,%r8,4), %rdi
   0x142a33e7b:  addq   %rdi, %rcx
   0x142a33e7e:  jmpq   *%rcx
   0x142a33e80:  jns    0x0000000142a33e87       ;
TreeToLLVM::EmitAssignRHS(gimple_statement_d*) + 295
(lldb) bt
* thread #1: tid = 0x1f03, 0x0000000142a33e77
dragonegg.so`TreeToLLVM::EmitAssignRHS(gimple_statement_d*) + 279, stop reason
= EXC_BAD_ACCESS (code=13, address=0x0)
    frame #0: 0x0000000142a33e77
dragonegg.so`TreeToLLVM::EmitAssignRHS(gimple_statement_d*) + 279
    frame #1: 0x0000000142a3456d
dragonegg.so`TreeToLLVM::RenderGIMPLE_ASSIGN(gimple_statement_d*) + 93
    frame #2: 0x0000000142a38d2b
dragonegg.so`TreeToLLVM::EmitBasicBlock(basic_block_def*) + 1755
(lldb)

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