public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/101689] New: Internal compiler error during GIMPLE pass: ehcleanup
@ 2021-07-30  9:58 Theodore.Papadopoulo at inria dot fr
  2021-07-30  9:59 ` [Bug c++/101689] " Theodore.Papadopoulo at inria dot fr
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Theodore.Papadopoulo at inria dot fr @ 2021-07-30  9:58 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 101689
           Summary: Internal compiler error during GIMPLE pass: ehcleanup
           Product: gcc
           Version: 11.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: Theodore.Papadopoulo at inria dot fr
  Target Milestone: ---

Description of problem: The compiler crashes with the mentioned error.


Version-Release number of selected component (if applicable):
gcc version 11.1.1 20210531 (Red Hat 11.1.1-3) (GCC)

How reproducible:
Just compile the attached preprocessed code with the options given below.

Steps to Reproduce:
1. Download the attached code and name it ovp_main.i
2. /usr/bin/c++ -fvtable-verify=std -fnon-call-exceptions -std=gnu++11
ovp_main.i

Actual results:
mururoa-> /usr/bin/c++ -fvtable-verify=std -fnon-call-exceptions -std=gnu++11
ovp_main.i
during GIMPLE pass: ehcleanup
In file included from
/home/papadop/compiles/OpenViBe/OpenViBE-f34/dist/sdk-Debug/include/toolkit/ovtk_all.h:75,
                 from
/home/papadop/src/Git/OpenViBe/designer/plugins/examples/src/box-algorithms/ovpCBoxAlgorithmModifiableSettings.h:6,
                 from
/home/papadop/src/Git/OpenViBe/designer/plugins/examples/src/ovp_main.cpp:3:
/home/papadop/compiles/OpenViBe/OpenViBE-f34/dist/sdk-Debug/include/toolkit/box-algorithms/ovtkTBoxAlgorithm.h:
In member function ‘uint64_t
OpenViBE::Toolkit::TBoxAlgorithm<TBoxAlgorithmParentClass>::getClockFrequency(OpenViBE::Kernel::IBoxAlgorithmContext&)
[with TBoxAlgorithmParentClass = OpenViBE::Plugins::IBoxAlgorithm]’:
/home/papadop/compiles/OpenViBe/OpenViBE-f34/dist/sdk-Debug/include/toolkit/box-algorithms/ovtkTBoxAlgorithm.h:19:26:
internal compiler error: in mark_reachable_handlers, at tree-eh.c:4033
   19 |         virtual uint64_t
getClockFrequency(Kernel::IBoxAlgorithmContext& ctx)
      |                          ^~~~~~~~~~~~~~~~~
0x7f0bdc834b74 ???
        ../csu/libc-start.c:332
Please submit a full bug report,


Expected results:
No crash

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

* [Bug c++/101689] Internal compiler error during GIMPLE pass: ehcleanup
  2021-07-30  9:58 [Bug c++/101689] New: Internal compiler error during GIMPLE pass: ehcleanup Theodore.Papadopoulo at inria dot fr
@ 2021-07-30  9:59 ` Theodore.Papadopoulo at inria dot fr
  2021-07-30 10:03 ` jakub at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Theodore.Papadopoulo at inria dot fr @ 2021-07-30  9:59 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Theodore.Papadopoulo at inria dot fr ---
Also submitted as 
Bug 1986538 - Internal compiler error during GIMPLE pass: ehcleanup
in readhat bugzilla, but I guess it is better here. Will close that one.

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

* [Bug c++/101689] Internal compiler error during GIMPLE pass: ehcleanup
  2021-07-30  9:58 [Bug c++/101689] New: Internal compiler error during GIMPLE pass: ehcleanup Theodore.Papadopoulo at inria dot fr
  2021-07-30  9:59 ` [Bug c++/101689] " Theodore.Papadopoulo at inria dot fr
@ 2021-07-30 10:03 ` jakub at gcc dot gnu.org
  2021-07-30 10:22 ` Theodore.Papadopoulo at inria dot fr
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-07-30 10:03 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I don't see any attachments.  You can gzip/bzip2/xz compress it if it is too
large.

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

* [Bug c++/101689] Internal compiler error during GIMPLE pass: ehcleanup
  2021-07-30  9:58 [Bug c++/101689] New: Internal compiler error during GIMPLE pass: ehcleanup Theodore.Papadopoulo at inria dot fr
  2021-07-30  9:59 ` [Bug c++/101689] " Theodore.Papadopoulo at inria dot fr
  2021-07-30 10:03 ` jakub at gcc dot gnu.org
@ 2021-07-30 10:22 ` Theodore.Papadopoulo at inria dot fr
  2021-07-30 10:23 ` Theodore.Papadopoulo at inria dot fr
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Theodore.Papadopoulo at inria dot fr @ 2021-07-30 10:22 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Theodore.Papadopoulo at inria dot fr ---
Created attachment 51224
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51224&action=edit
Preprocessed code

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

* [Bug c++/101689] Internal compiler error during GIMPLE pass: ehcleanup
  2021-07-30  9:58 [Bug c++/101689] New: Internal compiler error during GIMPLE pass: ehcleanup Theodore.Papadopoulo at inria dot fr
                   ` (2 preceding siblings ...)
  2021-07-30 10:22 ` Theodore.Papadopoulo at inria dot fr
@ 2021-07-30 10:23 ` Theodore.Papadopoulo at inria dot fr
  2021-07-30 12:11 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Theodore.Papadopoulo at inria dot fr @ 2021-07-30 10:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Theodore.Papadopoulo at inria dot fr ---
Sorry, it was indeed too big, but I had not seen the message. Attached now.
Sorry for not having found time to reduce the test case.

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

* [Bug c++/101689] Internal compiler error during GIMPLE pass: ehcleanup
  2021-07-30  9:58 [Bug c++/101689] New: Internal compiler error during GIMPLE pass: ehcleanup Theodore.Papadopoulo at inria dot fr
                   ` (3 preceding siblings ...)
  2021-07-30 10:23 ` Theodore.Papadopoulo at inria dot fr
@ 2021-07-30 12:11 ` jakub at gcc dot gnu.org
  2021-07-30 22:17 ` [Bug c++/101689] ICE with -fvtable-verify=std and -fnon-call-exceptions pinskia at gcc dot gnu.org
  2021-08-08 16:29 ` pinskia at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-07-30 12:11 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Reduced testcase:
struct A {
  virtual void foo (int x) { C e(&f, &x); bar (); }
  virtual bool bar ();
  struct C { C (int *, int *); };
  int f;
};
struct B : A {} d;

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

* [Bug c++/101689] ICE with -fvtable-verify=std and -fnon-call-exceptions
  2021-07-30  9:58 [Bug c++/101689] New: Internal compiler error during GIMPLE pass: ehcleanup Theodore.Papadopoulo at inria dot fr
                   ` (4 preceding siblings ...)
  2021-07-30 12:11 ` jakub at gcc dot gnu.org
@ 2021-07-30 22:17 ` pinskia at gcc dot gnu.org
  2021-08-08 16:29 ` pinskia at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-07-30 22:17 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Internal compiler error     |ICE with
                   |during GIMPLE pass:         |-fvtable-verify=std and
                   |ehcleanup                   |-fnon-call-exceptions
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2021-07-30
             Status|UNCONFIRMED                 |NEW
           Keywords|                            |ice-on-valid-code

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed, this has been a bug since -fvtable-verify=std was introduced.
ICE with checking turned on:
<source>: In member function 'virtual void A::foo(int)':
<source>:2:16: error: statement marked for throw in middle of block
    2 |   virtual void foo (int x) { C e(&f, &x); bar (); }
      |                ^~~
# VUSE <.MEM_8>
_9 = this_6(D)->_vptr.A;
during GIMPLE pass: vtable-verify

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

* [Bug c++/101689] ICE with -fvtable-verify=std and -fnon-call-exceptions
  2021-07-30  9:58 [Bug c++/101689] New: Internal compiler error during GIMPLE pass: ehcleanup Theodore.Papadopoulo at inria dot fr
                   ` (5 preceding siblings ...)
  2021-07-30 22:17 ` [Bug c++/101689] ICE with -fvtable-verify=std and -fnon-call-exceptions pinskia at gcc dot gnu.org
@ 2021-08-08 16:29 ` pinskia at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-08 16:29 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|NEW                         |RESOLVED

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 59507.

*** This bug has been marked as a duplicate of bug 59507 ***

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

end of thread, other threads:[~2021-08-08 16:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-30  9:58 [Bug c++/101689] New: Internal compiler error during GIMPLE pass: ehcleanup Theodore.Papadopoulo at inria dot fr
2021-07-30  9:59 ` [Bug c++/101689] " Theodore.Papadopoulo at inria dot fr
2021-07-30 10:03 ` jakub at gcc dot gnu.org
2021-07-30 10:22 ` Theodore.Papadopoulo at inria dot fr
2021-07-30 10:23 ` Theodore.Papadopoulo at inria dot fr
2021-07-30 12:11 ` jakub at gcc dot gnu.org
2021-07-30 22:17 ` [Bug c++/101689] ICE with -fvtable-verify=std and -fnon-call-exceptions pinskia at gcc dot gnu.org
2021-08-08 16:29 ` pinskia 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).