public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.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	[thread overview]
Message-ID: <bug-63426-4-I47zKG5wSw@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-63426-4@http.gcc.gnu.org/bugzilla/>

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


  parent reply	other threads:[~2014-11-20 10:24 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-01  9:17 [Bug other/63426] New: " trippels at gcc dot gnu.org
2014-10-01  9:55 ` [Bug other/63426] " mpolacek at gcc dot gnu.org
2014-10-01 11:13 ` trippels at gcc dot gnu.org
2014-10-28 14:09 ` trippels at gcc dot gnu.org
2014-11-19 12:21 ` trippels at gcc dot gnu.org
2014-11-20 10:24 ` trippels at gcc dot gnu.org [this message]
2014-12-16  7:10 ` trippels at gcc dot gnu.org
2015-03-03  9:16 ` trippels at gcc dot gnu.org
2015-03-04 17:33 ` trippels at gcc dot gnu.org
2015-04-22 12:01 ` jakub at gcc dot gnu.org
2015-07-16  9:15 ` rguenth at gcc dot gnu.org
2015-08-21 16:51 ` trippels at gcc dot gnu.org
2015-08-23  5:22 ` zeccav at gmail dot com
2020-06-06  1:54 ` aoliva at gcc dot gnu.org
2020-10-13 15:08 ` aldyh at gcc dot gnu.org
2021-01-04  9:08 ` pault at gcc dot gnu.org
2021-01-04 11:14 ` rguenth at gcc dot gnu.org
2021-01-13 13:35 ` nathan at gcc dot gnu.org
2021-01-19 19:38 ` nathan at gcc dot gnu.org
2021-01-21  8:58 ` marxin at gcc dot gnu.org
2021-01-21 13:07 ` nathan at gcc dot gnu.org
2021-01-21 18:42 ` nathan at gcc dot gnu.org
2021-02-23 10:16 ` marxin at gcc dot gnu.org
2021-02-27  9:34 ` zeccav at gmail dot com
2021-03-05 11:56 ` ebotcazou at gcc dot gnu.org
2021-04-29 10:57 ` rearnsha at gcc dot gnu.org
2021-08-27 18:49 ` jakub at gcc dot gnu.org
2021-09-01  8:21 ` pinskia at gcc dot gnu.org
2021-10-12  8:49 ` burnus at gcc dot gnu.org
2021-11-05 22:26 ` hubicka at gcc dot gnu.org
2021-11-12 14:08 ` marxin at gcc dot gnu.org
2021-11-14 13:15 ` aldyh at gcc dot gnu.org
2021-11-19 11:34 ` marxin at gcc dot gnu.org
2021-11-27 12:03 ` jakub at gcc dot gnu.org
2021-12-25 14:57 ` fxcoudert at gcc dot gnu.org
2022-01-17 15:16 ` rguenth at gcc dot gnu.org
2022-01-18  9:29 ` rguenth at gcc dot gnu.org
2022-03-09  3:22 ` xry111 at mengyan1223 dot wang
2022-03-09  9:28 ` xry111 at mengyan1223 dot wang
2022-03-23 18:13 ` anlauf at gcc dot gnu.org
2022-03-28  7:53 ` jakub at gcc dot gnu.org
2022-06-30  2:03 ` xry111 at gcc dot gnu.org
2023-05-17  8:44 ` jamborm at gcc dot gnu.org
2023-06-13  9:16 ` jamborm at gcc dot gnu.org
2023-07-10 20:46 ` xry111 at gcc dot gnu.org
2023-08-15 15:19 ` jamborm at gcc dot gnu.org
2024-01-25 19:59 ` pinskia at gcc dot gnu.org
2024-01-26  5:03 ` pinskia at gcc dot gnu.org
2024-03-08  8:29 ` jakub at gcc dot gnu.org
2024-03-22 14:01 ` law at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-63426-4-I47zKG5wSw@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).