[Bug rtl-optimization/58960] New: [4.9 regression] ICE in bmp_iter_set_init

schwab@linux-m68k.org gcc-bugzilla@gcc.gnu.org
Fri Nov 1 12:31:00 GMT 2013


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

            Bug ID: 58960
           Summary: [4.9 regression] ICE in bmp_iter_set_init
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: schwab@linux-m68k.org

gcc/xg++ -Bgcc/ ../gcc/testsuite/g++.dg/opt/pr48272.C -nostdinc++ -I
ia64-suse-linux/libstdc++-v3/include/ia64-suse-linux
-Iia64-suse-linux/libstdc++-v3/include -I../libstdc++-v3/libsupc++
-I../libstdc++-v3/include/backward -I../libstdc++-v3/testsuite/util
-std=gnu++11 -O3 -ftracer -fsched-pressure -S
../gcc/testsuite/g++.dg/opt/pr48272.C: In constructor
‘std::iostreams::zlib_error::zlib_error(int)’:
../gcc/testsuite/g++.dg/opt/pr48272.C:128:5: internal compiler error:
Segmentation fault
     }
     ^
0x4000000000be814f crash_signal
        ../../gcc/toplev.c:334
0x40000000012a428f bmp_iter_set_init
        ../../gcc/bitmap.h:360
0x40000000012a428f initiate_reg_pressure_info
        ../../gcc/haifa-sched.c:982
0x40000000012a600f initiate_bb_reg_pressure_info
        ../../gcc/haifa-sched.c:1030
0x40000000012a600f sched_setup_bb_reg_pressure_info(basic_block_def*, rtx_def*)
        ../../gcc/haifa-sched.c:3034
0x4000000000b46c3f schedule_region
        ../../gcc/sched-rgn.c:3015
0x4000000000b46fff schedule_insns()
        ../../gcc/sched-rgn.c:3390
0x4000000000b4718f rest_of_handle_sched
        ../../gcc/sched-rgn.c:3583
0x4000000000b4718f execute
        ../../gcc/sched-rgn.c:3647


Program received signal SIGSEGV, Segmentation fault.
bmp_iter_set_init (bit_no=<optimized out>, start_bit=0, map=<optimized out>, 
    bi=<optimized out>) at ../../gcc/bitmap.h:341
341       bi->elt1 = map->first;
(gdb) bt
#0  bmp_iter_set_init (bit_no=<optimized out>, start_bit=0, 
    map=<optimized out>, bi=<optimized out>) at ../../gcc/bitmap.h:341
#1  initiate_reg_pressure_info (live=0x40) at ../../gcc/haifa-sched.c:982
#2  0x40000000012a6010 in initiate_bb_reg_pressure_info (bb=<optimized out>)
    at ../../gcc/haifa-sched.c:1030
#3  sched_setup_bb_reg_pressure_info (bb=0x2000000000a42de8, 
    after=0x20000000009ee6c0) at ../../gcc/haifa-sched.c:3034
#4  0x4000000000b46c40 in schedule_region (rgn=3) at ../../gcc/sched-rgn.c:3015
#5  0x4000000000b47000 in schedule_insns () at ../../gcc/sched-rgn.c:3390
#6  0x4000000000b47190 in rest_of_handle_sched () at ../../gcc/sched-rgn.c:3583
#7  (anonymous namespace)::pass_sched::execute (
    this=0x4000000000a60600 <execute_one_pass(opt_pass*)+2384>)
    at ../../gcc/sched-rgn.c:3647
#8  0x4000000000a60600 in execute_one_pass (pass=0x600000000029bbc0)
    at ../../gcc/passes.c:2215
#9  0x4000000000a60dc0 in execute_pass_list (pass=0x600000000029bbc0)
    at ../../gcc/passes.c:2267
#10 0x4000000000a60e10 in execute_pass_list (pass=0x600000000029ac00)
    at ../../gcc/passes.c:2268
#11 0x40000000005a4f20 in expand_function (node=0x2000000000a80980)
    at ../../gcc/cgraphunit.c:1753
#12 0x40000000005a94a0 in expand_all_functions ()
    at ../../gcc/cgraphunit.c:1858
#13 0x40000000005aa180 in compile () at ../../gcc/cgraphunit.c:2195
#14 0x40000000005aa500 in finalize_compilation_unit ()
    at ../../gcc/cgraphunit.c:2272
#15 0x400000000022cf30 in cp_write_global_declarations ()
    at ../../gcc/cp/decl2.c:4401
#16 0x4000000000be9500 in compile_file () at ../../gcc/toplev.c:559
#17 0x4000000000bee3c0 in do_compile () at ../../gcc/toplev.c:1894
#18 toplev_main (argc=16279, argv=0x600ffffffffeefe8)
    at ../../gcc/toplev.c:1970
#19 0x40000000013ee4b0 in main (argc=34, argv=0x600ffffffffeefe8)
    at ../../gcc/main.c:36

Reverting r204194 avoids the crash.  Looks similar to bug48272.


More information about the Gcc-bugs mailing list