* [Bug tree-optimization/103456] [12 Regression] gcc/gcc.c:9502:8: runtime error: load of address 0x0000009f5037 with insufficient space for an object of type 'const char' since r12-5548-g4a2007594cff78fba6a29a0ec07fad31a7af19ff
2021-11-28 15:12 [Bug tree-optimization/103456] New: [12 Regression] gcc/gcc.c:9502:8: runtime error: load of address 0x0000009f5037 with insufficient space for an object of type 'const char' since r12-5548-g4a2007594cff78fba6a29a0ec07fad31a7af19ff marxin at gcc dot gnu.org
@ 2021-11-28 15:13 ` marxin at gcc dot gnu.org
2021-11-28 23:43 ` pinskia at gcc dot gnu.org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-11-28 15:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103456
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Priority|P3 |P1
Last reconfirmed| |2021-11-28
Target Milestone|--- |12.0
Ever confirmed|0 |1
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/103456] [12 Regression] gcc/gcc.c:9502:8: runtime error: load of address 0x0000009f5037 with insufficient space for an object of type 'const char' since r12-5548-g4a2007594cff78fba6a29a0ec07fad31a7af19ff
2021-11-28 15:12 [Bug tree-optimization/103456] New: [12 Regression] gcc/gcc.c:9502:8: runtime error: load of address 0x0000009f5037 with insufficient space for an object of type 'const char' since r12-5548-g4a2007594cff78fba6a29a0ec07fad31a7af19ff marxin at gcc dot gnu.org
2021-11-28 15:13 ` [Bug tree-optimization/103456] " marxin at gcc dot gnu.org
@ 2021-11-28 23:43 ` pinskia at gcc dot gnu.org
2021-11-29 15:10 ` siddhesh at gotplt dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-11-28 23:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103456
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |blocker
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/103456] [12 Regression] gcc/gcc.c:9502:8: runtime error: load of address 0x0000009f5037 with insufficient space for an object of type 'const char' since r12-5548-g4a2007594cff78fba6a29a0ec07fad31a7af19ff
2021-11-28 15:12 [Bug tree-optimization/103456] New: [12 Regression] gcc/gcc.c:9502:8: runtime error: load of address 0x0000009f5037 with insufficient space for an object of type 'const char' since r12-5548-g4a2007594cff78fba6a29a0ec07fad31a7af19ff marxin at gcc dot gnu.org
2021-11-28 15:13 ` [Bug tree-optimization/103456] " marxin at gcc dot gnu.org
2021-11-28 23:43 ` pinskia at gcc dot gnu.org
@ 2021-11-29 15:10 ` siddhesh at gotplt dot org
2021-11-29 15:19 ` marxin at gcc dot gnu.org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: siddhesh at gotplt dot org @ 2021-11-29 15:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103456
Siddhesh Poyarekar <siddhesh at gotplt dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |siddhesh at gotplt dot org
--- Comment #1 from Siddhesh Poyarekar <siddhesh at gotplt dot org> ---
I'm looking at this, I don't seem to have the right blessings to assign it to
myself though.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/103456] [12 Regression] gcc/gcc.c:9502:8: runtime error: load of address 0x0000009f5037 with insufficient space for an object of type 'const char' since r12-5548-g4a2007594cff78fba6a29a0ec07fad31a7af19ff
2021-11-28 15:12 [Bug tree-optimization/103456] New: [12 Regression] gcc/gcc.c:9502:8: runtime error: load of address 0x0000009f5037 with insufficient space for an object of type 'const char' since r12-5548-g4a2007594cff78fba6a29a0ec07fad31a7af19ff marxin at gcc dot gnu.org
` (2 preceding siblings ...)
2021-11-29 15:10 ` siddhesh at gotplt dot org
@ 2021-11-29 15:19 ` marxin at gcc dot gnu.org
2021-11-30 0:41 ` siddhesh at gcc dot gnu.org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-11-29 15:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103456
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |siddhesh at gotplt dot org
--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Siddhesh Poyarekar from comment #1)
> I'm looking at this, I don't seem to have the right blessings to assign it
> to myself though.
Heh :) The blessing is provided only to bugzilla accounts ending with
@gcc.gnu.org.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/103456] [12 Regression] gcc/gcc.c:9502:8: runtime error: load of address 0x0000009f5037 with insufficient space for an object of type 'const char' since r12-5548-g4a2007594cff78fba6a29a0ec07fad31a7af19ff
2021-11-28 15:12 [Bug tree-optimization/103456] New: [12 Regression] gcc/gcc.c:9502:8: runtime error: load of address 0x0000009f5037 with insufficient space for an object of type 'const char' since r12-5548-g4a2007594cff78fba6a29a0ec07fad31a7af19ff marxin at gcc dot gnu.org
` (3 preceding siblings ...)
2021-11-29 15:19 ` marxin at gcc dot gnu.org
@ 2021-11-30 0:41 ` siddhesh at gcc dot gnu.org
2021-11-30 15:56 ` marxin at gcc dot gnu.org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: siddhesh at gcc dot gnu.org @ 2021-11-30 0:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103456
Siddhesh Poyarekar <siddhesh at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC|siddhesh at redhat dot com |
Status|NEW |ASSIGNED
--- Comment #3 from Siddhesh Poyarekar <siddhesh at gcc dot gnu.org> ---
(In reply to Martin Liška from comment #2)
> Heh :) The blessing is provided only to bugzilla accounts ending with
> @gcc.gnu.org.
Aha, fixed.
Confirmed that backing out r12-5548-g4a2007594cff78fba6a29a0ec07fad31a7af19ff
fixes the problem. Now to figure out what the problem is.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/103456] [12 Regression] gcc/gcc.c:9502:8: runtime error: load of address 0x0000009f5037 with insufficient space for an object of type 'const char' since r12-5548-g4a2007594cff78fba6a29a0ec07fad31a7af19ff
2021-11-28 15:12 [Bug tree-optimization/103456] New: [12 Regression] gcc/gcc.c:9502:8: runtime error: load of address 0x0000009f5037 with insufficient space for an object of type 'const char' since r12-5548-g4a2007594cff78fba6a29a0ec07fad31a7af19ff marxin at gcc dot gnu.org
` (4 preceding siblings ...)
2021-11-30 0:41 ` siddhesh at gcc dot gnu.org
@ 2021-11-30 15:56 ` marxin at gcc dot gnu.org
2021-12-01 8:31 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-11-30 15:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103456
--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
Reduced test-case that has a different output in optimized tree-dump:
$ cat gcc.i
static char *multilib_options = "m64/m32";
void used_arg_t() {
char *q = multilib_options;
for (;;) {
while (*q)
q++;
while (__builtin_strchr (q, '_') == 0)
while (*q)
q++;
}
}
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/103456] [12 Regression] gcc/gcc.c:9502:8: runtime error: load of address 0x0000009f5037 with insufficient space for an object of type 'const char' since r12-5548-g4a2007594cff78fba6a29a0ec07fad31a7af19ff
2021-11-28 15:12 [Bug tree-optimization/103456] New: [12 Regression] gcc/gcc.c:9502:8: runtime error: load of address 0x0000009f5037 with insufficient space for an object of type 'const char' since r12-5548-g4a2007594cff78fba6a29a0ec07fad31a7af19ff marxin at gcc dot gnu.org
` (5 preceding siblings ...)
2021-11-30 15:56 ` marxin at gcc dot gnu.org
@ 2021-12-01 8:31 ` cvs-commit at gcc dot gnu.org
2021-12-01 9:03 ` siddhesh at gcc dot gnu.org
2021-12-03 11:12 ` cvs-commit at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-12-01 8:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103456
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Siddhesh Poyarekar
<siddhesh@gcc.gnu.org>:
https://gcc.gnu.org/g:da9386f9a70ac494939650c0e0a0e4168a6f76d8
commit r12-5649-gda9386f9a70ac494939650c0e0a0e4168a6f76d8
Author: Siddhesh Poyarekar <siddhesh@gotplt.org>
Date: Wed Dec 1 12:58:12 2021 +0530
tree-optimization/103456 - Record only successes from object_sizes_set
Avoid overwriting osi->changed if object_sizes_set does not update the
size, so that a previous success in the same pass is not overwritten.
This fixes the bootstrap-ubsan build config, which was failing due to
incorrect object size.
gcc/ChangeLog:
PR tree-optimization/103456
* tree-object-size.c (merge_object_sizes): Update osi->changed
only if object_sizes_set succeeded.
gcc/testsuite/ChangeLog:
PR tree-optimization/103456
* gcc.dg/ubsan/pr103456.c: New test.
Co-authored-by: Martin Liška <mliska@suse.cz>
Signed-off-by: Siddhesh Poyarekar <siddhesh@gotplt.org>
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/103456] [12 Regression] gcc/gcc.c:9502:8: runtime error: load of address 0x0000009f5037 with insufficient space for an object of type 'const char' since r12-5548-g4a2007594cff78fba6a29a0ec07fad31a7af19ff
2021-11-28 15:12 [Bug tree-optimization/103456] New: [12 Regression] gcc/gcc.c:9502:8: runtime error: load of address 0x0000009f5037 with insufficient space for an object of type 'const char' since r12-5548-g4a2007594cff78fba6a29a0ec07fad31a7af19ff marxin at gcc dot gnu.org
` (6 preceding siblings ...)
2021-12-01 8:31 ` cvs-commit at gcc dot gnu.org
@ 2021-12-01 9:03 ` siddhesh at gcc dot gnu.org
2021-12-03 11:12 ` cvs-commit at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: siddhesh at gcc dot gnu.org @ 2021-12-01 9:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103456
Siddhesh Poyarekar <siddhesh at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #6 from Siddhesh Poyarekar <siddhesh at gcc dot gnu.org> ---
Fixed in trunk.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/103456] [12 Regression] gcc/gcc.c:9502:8: runtime error: load of address 0x0000009f5037 with insufficient space for an object of type 'const char' since r12-5548-g4a2007594cff78fba6a29a0ec07fad31a7af19ff
2021-11-28 15:12 [Bug tree-optimization/103456] New: [12 Regression] gcc/gcc.c:9502:8: runtime error: load of address 0x0000009f5037 with insufficient space for an object of type 'const char' since r12-5548-g4a2007594cff78fba6a29a0ec07fad31a7af19ff marxin at gcc dot gnu.org
` (7 preceding siblings ...)
2021-12-01 9:03 ` siddhesh at gcc dot gnu.org
@ 2021-12-03 11:12 ` cvs-commit at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-12-03 11:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103456
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:97ffef3553267f52ca83dbebdcc8b5e3739febee
commit r12-5770-g97ffef3553267f52ca83dbebdcc8b5e3739febee
Author: Jakub Jelinek <jakub@redhat.com>
Date: Fri Dec 3 12:09:04 2021 +0100
testsuite: Fix up pr103456.c testcase [PR103456]
ubsan.exp cycles through torture options, and that includes
-O2 -flto -fno-fat-lto-objects. But with those options
tree dump scans don't work for post-IPA passes, for dg-do
compile tests nothing after IPA is done. So we get an
unresolved testcase:
gcc.dg/ubsan/pr103456.c -O2 -flto -fuse-linker-plugin
-fno-fat-lto-objects : dump file does not exist
UNRESOLVED: gcc.dg/ubsan/pr103456.c -O2 -flto -fuse-linker-plugin
-fno-fat-lto-objects scan-tree-dump-not objsz1 "maximum object size 0"
Fixed by adding -ffat-lto-objects so that we perform the post-IPA
passes.
2021-12-03 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/103456
* gcc.dg/ubsan/pr103456.c: Add -ffat-lto-objects to dg-options.
^ permalink raw reply [flat|nested] 10+ messages in thread