From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14047 invoked by alias); 20 Nov 2014 10:24:31 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 13995 invoked by uid 48); 20 Nov 2014 10:24:27 -0000 From: "trippels at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/63426] [meta-bug] Issues found with -fsanitize=undefined Date: Thu, 20 Nov 2014 10:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: meta-bug X-Bugzilla-Severity: normal X-Bugzilla-Who: trippels at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-11/txt/msg02167.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63426 --- Comment #3 from Markus Trippelsdorf --- 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