public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/101331] New: [12 Regression] ICE in sanitize_coverage_p, at asan.h:259
@ 2021-07-05 16:46 gscfq@t-online.de
  2021-07-06  6:41 ` [Bug c++/101331] " rguenth at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: gscfq@t-online.de @ 2021-07-05 16:46 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 101331
           Summary: [12 Regression] ICE in sanitize_coverage_p, at
                    asan.h:259
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Changed between 20210523 and 20210530 :


$ cat z1.cc
int a[2];
int b = 1;
int c { b && (a[b] = 0) };


$ g++-12-20210704 -c z1.cc -fsanitize-coverage=trace-pc -O2
z1.cc:3:25: internal compiler error: Segmentation fault
    3 | int c { b && (a[b] = 0) };
      |                         ^
0xd6677f crash_signal
        ../../gcc/toplev.c:328
0xaa2a2f sanitize_coverage_p
        ../../gcc/asan.h:259
0xaa2a2f fold_range_test
        ../../gcc/fold-const.c:6019
0xaa2a2f fold_truth_andor
        ../../gcc/fold-const.c:9624
0xa8fbf4 fold_binary_loc(unsigned int, tree_code, tree_node*, tree_node*,
tree_node*)
        ../../gcc/fold-const.c:11931
0xa954aa fold_build2_loc(unsigned int, tree_code, tree_node*, tree_node*,
tree_node*)
        ../../gcc/fold-const.c:13736
0x7297db cp_fold
        ../../gcc/cp/cp-gimplify.c:2432
0x72ae0c cp_fold_maybe_rvalue(tree_node*, bool)
        ../../gcc/cp/cp-gimplify.c:2109
0x72f917 cp_convert_and_check(tree_node*, tree_node*, int)
        ../../gcc/cp/cvt.c:666
0x6e30ca convert_like_internal
        ../../gcc/cp/call.c:8105
0x6e30ca convert_like
        ../../gcc/cp/call.c:8160
0x6dfe69 convert_like
        ../../gcc/cp/call.c:8174
0x6dfe69 perform_implicit_conversion_flags(tree_node*, tree_node*, int, int)
        ../../gcc/cp/call.c:12364
0x88db30 convert_for_assignment
        ../../gcc/cp/typeck.c:9641
0x88df54 convert_for_initialization(tree_node*, tree_node*, tree_node*, int,
impl_conv_rhs, tree_node*, int, int)
        ../../gcc/cp/typeck.c:9732
0x89401e digest_init_r
        ../../gcc/cp/typeck2.c:1253
0x8957d0 digest_init_flags(tree_node*, tree_node*, int, int)
        ../../gcc/cp/typeck2.c:1266
0x8957d0 store_init_value(tree_node*, tree_node*, vec<tree_node*, va_gc,
vl_embed>**, int)
        ../../gcc/cp/typeck2.c:742
0x751aed check_initializer
        ../../gcc/cp/decl.c:7167
0x752fe1 cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int)
        ../../gcc/cp/decl.c:8101

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/101331] [12 Regression] ICE in sanitize_coverage_p, at asan.h:259
  2021-07-05 16:46 [Bug c++/101331] New: [12 Regression] ICE in sanitize_coverage_p, at asan.h:259 gscfq@t-online.de
@ 2021-07-06  6:41 ` rguenth at gcc dot gnu.org
  2021-07-12  4:08 ` marxin at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-07-06  6:41 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |12.0
     Ever confirmed|0                           |1
                 CC|                            |marxin at gcc dot gnu.org
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2021-07-06

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
current_function_decl is NULL, sanitize_coverage_p should probably return
false if that's the case (no instrumentation outside of a function).

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/101331] [12 Regression] ICE in sanitize_coverage_p, at asan.h:259
  2021-07-05 16:46 [Bug c++/101331] New: [12 Regression] ICE in sanitize_coverage_p, at asan.h:259 gscfq@t-online.de
  2021-07-06  6:41 ` [Bug c++/101331] " rguenth at gcc dot gnu.org
@ 2021-07-12  4:08 ` marxin at gcc dot gnu.org
  2021-09-13 13:34 ` cvs-commit at gcc dot gnu.org
  2021-09-13 13:36 ` marxin at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-07-12  4:08 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |marxin at gcc dot gnu.org

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Mine, started with r12-1038-gcec4d4a6782c9bd8.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/101331] [12 Regression] ICE in sanitize_coverage_p, at asan.h:259
  2021-07-05 16:46 [Bug c++/101331] New: [12 Regression] ICE in sanitize_coverage_p, at asan.h:259 gscfq@t-online.de
  2021-07-06  6:41 ` [Bug c++/101331] " rguenth at gcc dot gnu.org
  2021-07-12  4:08 ` marxin at gcc dot gnu.org
@ 2021-09-13 13:34 ` cvs-commit at gcc dot gnu.org
  2021-09-13 13:36 ` marxin at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-09-13 13:34 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Liska <marxin@gcc.gnu.org>:

https://gcc.gnu.org/g:90ac6edc3c0123b6cf975781f70c8517db84bd63

commit r12-3487-g90ac6edc3c0123b6cf975781f70c8517db84bd63
Author: Martin Liska <mliska@suse.cz>
Date:   Thu Aug 12 17:49:14 2021 +0200

    c++: fix -fsanitize-coverage=trace-pc ICE [PR101331]

            PR c++/101331

    gcc/ChangeLog:

            * asan.h (sanitize_coverage_p): Handle when fn == NULL.

    gcc/testsuite/ChangeLog:

            * g++.dg/pr101331.C: New test.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/101331] [12 Regression] ICE in sanitize_coverage_p, at asan.h:259
  2021-07-05 16:46 [Bug c++/101331] New: [12 Regression] ICE in sanitize_coverage_p, at asan.h:259 gscfq@t-online.de
                   ` (2 preceding siblings ...)
  2021-09-13 13:34 ` cvs-commit at gcc dot gnu.org
@ 2021-09-13 13:36 ` marxin at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-09-13 13:36 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
Fixed.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-09-13 13:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-05 16:46 [Bug c++/101331] New: [12 Regression] ICE in sanitize_coverage_p, at asan.h:259 gscfq@t-online.de
2021-07-06  6:41 ` [Bug c++/101331] " rguenth at gcc dot gnu.org
2021-07-12  4:08 ` marxin at gcc dot gnu.org
2021-09-13 13:34 ` cvs-commit at gcc dot gnu.org
2021-09-13 13:36 ` marxin at gcc dot gnu.org

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).