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 other/63426] [meta-bug] Issues found with -fsanitize=undefined


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63426

--- Comment #3 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
I've added -fno-sanitize=alignment to bootstrap-ubsan.mk, otherwise 
libstdc++ wouldn't build (due to the gcc.c problem in comment 2). 

Here are the results of a testsuite run (cut down to one instance per issue):



gcc/c/c-typeck.c:8126:42: runtime error: load of address 0x3fffca8782e0 with
insufficient space for an object of type 'long int'
gcc/config/rs6000/constraints.md:179:37: runtime error: negation of
-9223372036854775808 cannot be represented in type 'long int'; cast to an
unsigned type to negate this value to itself
gcc/config/rs6000/predicates.md:411:21: runtime error: signed integer overflow:
9223372036854775807 + 2147516416 cannot be represented in type 'long int'
gcc/config/rs6000/rs6000.c:16207:15: runtime error: negation of
-9223372036854775808 cannot be represented in type 'long int'; cast to an
unsigned type to negate this value to itself
gcc/config/rs6000/rs6000.c:16210:16: runtime error: negation of
-9223372036854775808 cannot be represented in type 'long int'; cast to an
unsigned type to negate this value to itself
gcc/config/rs6000/rs6000.c:16220:15: runtime error: negation of
-9223372036854775808 cannot be represented in type 'long int'; cast to an
unsigned type to negate this value to itself
gcc/config/rs6000/rs6000.c:16221:16: runtime error: negation of
-9223372036854775808 cannot be represented in type 'long int'; cast to an
unsigned type to negate this value to itself
gcc/config/rs6000/rs6000.c:16243:15: runtime error: negation of
-9223372036854775808 cannot be represented in type 'long int'; cast to an
unsigned type to negate this value to itself
gcc/config/rs6000/rs6000.c:16251:16: runtime error: negation of
-9223372036854775808 cannot be represented in type 'long int'; cast to an
unsigned type to negate this value to itself
gcc/config/rs6000/rs6000.c:5086:39: runtime error: signed integer overflow:
9223372036854775806 + 32768 cannot be represented in type 'long int'
gcc/emit-rtl.c:210:39: runtime error: signed integer overflow:
-9223372034707292160 + -9223372034707292160 cannot be represented in type 'long
int'
gcc/expmed.c:2987:42: runtime error: signed integer overflow:
-9223372036854775808 - 1 cannot be represented in type 'long int'
gcc/fortran/data.c:181:32: runtime error: null pointer passed as argument 2,
which is declared to never be null
gcc/fortran/interface.c:2667:43: runtime error: load of value 1600086892, which
is not a valid value for type 'expr_t'
gcc/fortran/interface.c:2908:47: runtime error: load of value 256, which is not
a valid value for type 'ar_type'
gcc/fortran/module.c:2348:28: runtime error: load of value 256, which is not a
valid value for type 'bt'
gcc/fortran/trans-expr.c:2286:48: runtime error: negation of
-9223372036854775808 cannot be represented in type 'long int [3]'; cast to an
unsigned type to negate this value to itself
gcc/fortran/trans-expr.c:5280:19: runtime error: member call on null pointer of
type 'struct vec'
gcc/fortran/trans-expr.c:5283:19: runtime error: member call on null pointer of
type 'struct vec'
gcc/fortran/trans-expr.c:5286:19: runtime error: member call on null pointer of
type 'struct vec'
gcc/gcov-io.c:376:38: runtime error: null pointer passed as argument 2, which
is declared to never be null
gcc/hwint.h:250:19: runtime error: shift exponent 64 is too large for 64-bit
type 'long int'
gcc/ipa-prop.c:2435:30: runtime error: member call on null pointer of type
'struct ipa_polymorphic_call_context'
gcc/ira-costs.c:1303:57: runtime error: null pointer passed as argument 2,
which is declared to never be null
gcc/loop-iv.c:2652:14: runtime error: signed integer overflow: 499 -
-9223372036854775808 cannot be represented in type 'long int'
gcc/simplify-rtx.c:5074:10: runtime error: shift exponent -64 is negative
gcc/tree-data-ref.c:2363:38: runtime error: signed integer overflow: 1073741824
+ 1073741824 cannot be represented in type 'int'
gcc/tree-data-ref.c:2452:16: runtime error: signed integer overflow: 131072 *
-131072 cannot be represented in type 'int'
gcc/tree-data-ref.c:2453:16: runtime error: negation of -2147483648 cannot be
represented in type 'int'; cast to an unsigned type to negate this value to
itself
gcc/tree-data-ref.c:2454:16: runtime error: negation of -2147483648 cannot be
represented in type 'int'; cast to an unsigned type to negate this value to
itself
gcc/tree-ssa-loop-ivopts.c:4186:24: runtime error: signed integer overflow: 4 *
4611686018427387903 cannot be represented in type 'long int'
libiberty/cp-demangle.c:4074:40: runtime error: variable length array bound
evaluates to non-positive value 0
libiberty/cp-demangle.c:4075:43: runtime error: variable length array bound
evaluates to non-positive value 0
libiberty/regex.c:6970:11: runtime error: left shift of negative value -1
libiberty/regex.c:7165:4: runtime error: left shift of negative value -1


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