This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug debug/48159] [4.7 Regression] ICE: SIGSEGV in build2_stat (tree.c:3802) with -O -ftree-loop-distribution -fno-tree-ch -g


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48159

Zdenek Sojka <zsojka at seznam dot cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |spop at gcc dot gnu.org

--- Comment #4 from Zdenek Sojka <zsojka at seznam dot cz> 2011-05-02 19:58:27 UTC ---
Backtrace with debug symbols for the testcase from comment #3 (trunk r173240):

$ gcc -w -c -O3 -g psf.i -wrapper valgrind,-q,--num-callers=40
==5472== Invalid read of size 2
==5472==    at 0xA9521C: build2_stat (tree.c:3753)
==5472==    by 0x5E408E: gimple_assign_rhs_to_tree (cfgexpand.c:78)
==5472==    by 0xA37EBF: insert_debug_temp_for_var_def (tree-ssa.c:402)
==5472==    by 0xA383EA: insert_debug_temps_for_defs (tree-ssa.c:506)
==5472==    by 0x762FB8: gsi_remove (gimple-iterator.c:511)
==5472==    by 0x9504B9: distribute_loop (tree-loop-distribution.c:206)
==5472==    by 0x95100C: tree_loop_distribution (tree-loop-distribution.c:1252)
==5472==    by 0x816DF5: execute_one_pass (passes.c:1556)
==5472==    by 0x8170D4: execute_pass_list (passes.c:1611)
==5472==    by 0x8170E6: execute_pass_list (passes.c:1612)
==5472==    by 0x8170E6: execute_pass_list (passes.c:1612)
==5472==    by 0x95F6EA: tree_rest_of_compilation (tree-optimize.c:423)
==5472==    by 0xB42C22: cgraph_expand_function (cgraphunit.c:1579)
==5472==    by 0xB4516B: cgraph_optimize (cgraphunit.c:1638)
==5472==    by 0xB456F9: cgraph_finalize_compilation_unit (cgraphunit.c:1099)
==5472==    by 0x4FAF73: c_write_global_declarations (c-decl.c:9883)
==5472==    by 0x903A17: toplev_main (toplev.c:591)
==5472==    by 0x644AB6C: (below main) (in /lib64/libc-2.11.3.so)
==5472==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5472== 
psf.c: In function 'psf_fit':
psf.c:300:6: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

-fno-tree-loop-distribute-patterns prevents the crash.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]