[Bug tree-optimization/82493] New: UBSAN in gcc/sbitmap.c:368:28: runtime error: shift exponent 64 is too large for 64-bit type 'long unsigned int'
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Oct 9 11:49:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82493
Bug ID: 82493
Summary: UBSAN in gcc/sbitmap.c:368:28: runtime error: shift
exponent 64 is too large for 64-bit type 'long
unsigned int'
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: marxin at gcc dot gnu.org
CC: law at gcc dot gnu.org
Target Milestone: ---
With bootstrap-ubsan I see:
UBSAN_OPTIONS="print_stacktrace=1" ./xgcc -B.
/home/marxin/Programming/gcc2/gcc/testsuite/gcc.dg/vect/pr79920.c -O3
-fno-vect-cost-model
../../gcc/sbitmap.c:368:28: runtime error: shift exponent 64 is too large for
64-bit type 'long unsigned int'
#0 0x3b424ba in bitmap_bit_in_range_p(simple_bitmap_def const*, unsigned
int, unsigned int) ../../gcc/sbitmap.c:368
#1 0x20a3533 in live_bytes_read ../../gcc/tree-ssa-dse.c:496
#2 0x20a390f in dse_classify_store ../../gcc/tree-ssa-dse.c:594
#3 0x20a45e7 in dse_dom_walker::dse_optimize_stmt(gimple_stmt_iterator*)
../../gcc/tree-ssa-dse.c:820
#4 0x20a47d1 in dse_dom_walker::before_dom_children(basic_block_def*)
../../gcc/tree-ssa-dse.c:852
#5 0x36f262c in dom_walker::walk(basic_block_def*) ../../gcc/domwalk.c:308
#6 0x20a4b49 in execute ../../gcc/tree-ssa-dse.c:906
#7 0x18f223a in execute_one_pass(opt_pass*) ../../gcc/passes.c:2495
#8 0x18f2bcb in execute_pass_list_1 ../../gcc/passes.c:2584
#9 0x18f2c80 in execute_pass_list_1 ../../gcc/passes.c:2585
#10 0x18f2d1f in execute_pass_list(function*, opt_pass*)
../../gcc/passes.c:2595
#11 0xd34522 in cgraph_node::expand() ../../gcc/cgraphunit.c:2115
#12 0xd35b07 in expand_all_functions ../../gcc/cgraphunit.c:2251
#13 0xd38201 in symbol_table::compile() ../../gcc/cgraphunit.c:2599
#14 0xd38958 in symbol_table::finalize_compilation_unit()
../../gcc/cgraphunit.c:2692
#15 0x1cdc527 in compile_file ../../gcc/toplev.c:481
#16 0x1ce2c84 in do_compile ../../gcc/toplev.c:2037
#17 0x1ce32b3 in toplev::main(int, char**) ../../gcc/toplev.c:2172
#18 0x3aaf9e0 in main ../../gcc/main.c:39
#19 0x14f842659f49 in __libc_start_main (/lib64/libc.so.6+0x20f49)
#20 0x7d93b9 in _start
(/home/marxin/Programming/gcc2/objdir/gcc/cc1+0x7d93b9)
More information about the Gcc-bugs
mailing list