Send MinGW-Notify mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.osdn.me/mailman/listinfo/mingw-notify
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of MinGW-Notify digest..."


Please do not reply to this notification; the sender address is unable to 
accept incoming e-mail.  If you wish to unsubscribe you can do so at 
https://lists.osdn.me/mailman/listinfo/mingw-notify.



Today's Topics:

   1. [mingw] #40563: Segmentation fault during GIMPLE pass:
      *rebuild_cgraph_edges (MinGW Notification List)
   2. [mingw] #40563: Segmentation fault during GIMPLE pass:
      *rebuild_cgraph_edges (MinGW Notification List)
   3. [mingw] #40563: Segmentation fault during GIMPLE pass:
      *rebuild_cgraph_edges (MinGW Notification List)
   4. [mingw] #40563: Segmentation fault during GIMPLE pass:
      *rebuild_cgraph_edges (MinGW Notification List)


----------------------------------------------------------------------

Message: 1
Date: Wed, 15 Jul 2020 19:41:59 +0900
From: MinGW Notification List <[email protected]>
To: OSDN Ticket System <[email protected]>
Subject: [MinGW-Notify] [mingw] #40563: Segmentation fault during
        GIMPLE pass: *rebuild_cgraph_edges
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8

#40563: Segmentation fault during GIMPLE pass: *rebuild_cgraph_edges

  Open Date: 2020-07-15 19:41
Last Update: 2020-07-15 19:41

URL for this Ticket:
    https://osdn.net//projects/mingw/ticket/40563
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=40563

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2020-07-15 19:41 Updated by: thekbro
 * New Ticket "Segmentation fault during GIMPLE pass: *rebuild_cgraph_edges"
created



---------------------------------------------------------------------
Ticket Status:

      Reporter: thekbro
         Owner: (None)
          Type: Issues
        Status: Open
      Priority: 5 - Medium
     MileStone: (None)
     Component: GCC
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

Ticket details:

Example Code: https://godbolt.org/z/e31raW

The code compiles fine in godbolt with gcc 9.2, but if compiled with mingw
there is the following error:

MinGW\bin\g++.exe -g -o output.s -masm=intel -S -fdiagnostics-color=always 
example.cpp
during GIMPLE pass: *rebuild_cgraph_edges
example.cpp: In member function 'void test3<T>::depart() [with T = const 
test1<long unsigned int (__attribute__((stdcall)) *)(void*)>]':
example.cpp:55:1: internal compiler error: Segmentation fault
   55 | }
      | ^

example.cpp:55:1: internal compiler error: Aborted
g++.exe: internal compiler error: Aborted signal terminated program cc1plus


Im using:

Windows 10, 64 bit

GCC Version

Using built-in specs.
COLLECT_GCC=c:\toolchain\tools\MinGW\bin\g++.exe
COLLECT_LTO_WRAPPER=c:/toolchain/tools/mingw/bin/../libexec/gcc/mingw32/9.2.0/lto-wrapper.exe
Target: mingw32
Configured with: ../src/gcc-9.2.0/configure --build=x86_64-pc-linux-gnu 
--host=mingw32 --target=mingw32 --disable-win32-registry --with-arch=i586 
--with-tune=generic --enable-static --enable-shared --enable-threads 
--enable-languages=c,c++,objc,obj-c++,fortran,ada --with-dwarf2 
--disable-sjlj-exceptions --enable-version-specific-runtime-libs 
--enable-libgomp --disable-libvtv --with-libiconv-prefix=/mingw 
--with-libintl-prefix=/mingw --enable-libstdcxx-debug 
--disable-build-format-warnings --prefix=/mingw --with-gmp=/mingw 
--with-mpfr=/mingw --with-mpc=/mingw --with-isl=/mingw --enable-nls 
--with-pkgversion='MinGW.org GCC Build-2'
Thread model: win32
gcc version 9.2.0 (MinGW.org GCC Build-2)

Binutils Version

GNU ld (GNU Binutils) 2.32

MinGW Version

5.4.0

Build Environment

powershell/batch

I hope the Test Case is described good enough.



-- 
Ticket information of MinGW - Minimalist GNU for Windows project
MinGW - Minimalist GNU for Windows Project is hosted on OSDN

Project URL: https://osdn.net/projects/mingw/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/mingw/ticket/40563
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=40563


------------------------------

Message: 2
Date: Wed, 15 Jul 2020 13:11:08 +0100
From: MinGW Notification List <[email protected]>
To: OSDN Ticket System <[email protected]>
Subject: [MinGW-Notify] [mingw] #40563: Segmentation fault during
        GIMPLE pass: *rebuild_cgraph_edges
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8

#40563: Segmentation fault during GIMPLE pass: *rebuild_cgraph_edges

  Open Date: 2020-07-15 11:41
Last Update: 2020-07-15 13:11

URL for this Ticket:
    https://osdn.net//projects/mingw/ticket/40563
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=40563

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2020-07-15 13:11 Updated by: keith

Comment:

Please, do not refer to off-site test cases; your example code needs to be
attached directly to the ticket.



---------------------------------------------------------------------
Ticket Status:

      Reporter: thekbro
         Owner: (None)
          Type: Issues
        Status: Open
      Priority: 5 - Medium
     MileStone: (None)
     Component: GCC
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

Ticket details:

Example Code: https://godbolt.org/z/e31raW

The code compiles fine in godbolt with gcc 9.2, but if compiled with mingw
there is the following error:

MinGW\bin\g++.exe -g -o output.s -masm=intel -S -fdiagnostics-color=always 
example.cpp
during GIMPLE pass: *rebuild_cgraph_edges
example.cpp: In member function 'void test3<T>::depart() [with T = const 
test1<long unsigned int (__attribute__((stdcall)) *)(void*)>]':
example.cpp:55:1: internal compiler error: Segmentation fault
   55 | }
      | ^

example.cpp:55:1: internal compiler error: Aborted
g++.exe: internal compiler error: Aborted signal terminated program cc1plus


Im using:

Windows 10, 64 bit

GCC Version

Using built-in specs.
COLLECT_GCC=c:\toolchain\tools\MinGW\bin\g++.exe
COLLECT_LTO_WRAPPER=c:/toolchain/tools/mingw/bin/../libexec/gcc/mingw32/9.2.0/lto-wrapper.exe
Target: mingw32
Configured with: ../src/gcc-9.2.0/configure --build=x86_64-pc-linux-gnu 
--host=mingw32 --target=mingw32 --disable-win32-registry --with-arch=i586 
--with-tune=generic --enable-static --enable-shared --enable-threads 
--enable-languages=c,c++,objc,obj-c++,fortran,ada --with-dwarf2 
--disable-sjlj-exceptions --enable-version-specific-runtime-libs 
--enable-libgomp --disable-libvtv --with-libiconv-prefix=/mingw 
--with-libintl-prefix=/mingw --enable-libstdcxx-debug 
--disable-build-format-warnings --prefix=/mingw --with-gmp=/mingw 
--with-mpfr=/mingw --with-mpc=/mingw --with-isl=/mingw --enable-nls 
--with-pkgversion='MinGW.org GCC Build-2'
Thread model: win32
gcc version 9.2.0 (MinGW.org GCC Build-2)

Binutils Version

GNU ld (GNU Binutils) 2.32

MinGW Version

5.4.0

Build Environment

powershell/batch

I hope the Test Case is described good enough.



-- 
Ticket information of MinGW - Minimalist GNU for Windows project
MinGW - Minimalist GNU for Windows Project is hosted on OSDN

Project URL: https://osdn.net/projects/mingw/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/mingw/ticket/40563
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=40563


------------------------------

Message: 3
Date: Wed, 15 Jul 2020 21:40:22 +0900
From: MinGW Notification List <[email protected]>
To: OSDN Ticket System <[email protected]>
Subject: [MinGW-Notify] [mingw] #40563: Segmentation fault during
        GIMPLE pass: *rebuild_cgraph_edges
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8

#40563: Segmentation fault during GIMPLE pass: *rebuild_cgraph_edges

  Open Date: 2020-07-15 19:41
Last Update: 2020-07-15 21:40

URL for this Ticket:
    https://osdn.net//projects/mingw/ticket/40563
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=40563

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2020-07-15 21:40 Updated by: thekbro

Comment:

Reply To keith

    Please, do not refer to off-site test cases; your example code needs to be
    attached directly to the ticket.

Sry about that, I added the test case example code.



---------------------------------------------------------------------
Ticket Status:

      Reporter: thekbro
         Owner: (None)
          Type: Issues
        Status: Open
      Priority: 5 - Medium
     MileStone: (None)
     Component: GCC
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

Ticket details:

Example Code: https://godbolt.org/z/e31raW

The code compiles fine in godbolt with gcc 9.2, but if compiled with mingw
there is the following error:

MinGW\bin\g++.exe -g -o output.s -masm=intel -S -fdiagnostics-color=always 
example.cpp
during GIMPLE pass: *rebuild_cgraph_edges
example.cpp: In member function 'void test3<T>::depart() [with T = const 
test1<long unsigned int (__attribute__((stdcall)) *)(void*)>]':
example.cpp:55:1: internal compiler error: Segmentation fault
   55 | }
      | ^

example.cpp:55:1: internal compiler error: Aborted
g++.exe: internal compiler error: Aborted signal terminated program cc1plus


Im using:

Windows 10, 64 bit

GCC Version

Using built-in specs.
COLLECT_GCC=c:\toolchain\tools\MinGW\bin\g++.exe
COLLECT_LTO_WRAPPER=c:/toolchain/tools/mingw/bin/../libexec/gcc/mingw32/9.2.0/lto-wrapper.exe
Target: mingw32
Configured with: ../src/gcc-9.2.0/configure --build=x86_64-pc-linux-gnu 
--host=mingw32 --target=mingw32 --disable-win32-registry --with-arch=i586 
--with-tune=generic --enable-static --enable-shared --enable-threads 
--enable-languages=c,c++,objc,obj-c++,fortran,ada --with-dwarf2 
--disable-sjlj-exceptions --enable-version-specific-runtime-libs 
--enable-libgomp --disable-libvtv --with-libiconv-prefix=/mingw 
--with-libintl-prefix=/mingw --enable-libstdcxx-debug 
--disable-build-format-warnings --prefix=/mingw --with-gmp=/mingw 
--with-mpfr=/mingw --with-mpc=/mingw --with-isl=/mingw --enable-nls 
--with-pkgversion='MinGW.org GCC Build-2'
Thread model: win32
gcc version 9.2.0 (MinGW.org GCC Build-2)

Binutils Version

GNU ld (GNU Binutils) 2.32

MinGW Version

5.4.0

Build Environment

powershell/batch

I hope the Test Case is described good enough.



-- 
Ticket information of MinGW - Minimalist GNU for Windows project
MinGW - Minimalist GNU for Windows Project is hosted on OSDN

Project URL: https://osdn.net/projects/mingw/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/mingw/ticket/40563
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=40563


------------------------------

Message: 4
Date: Wed, 15 Jul 2020 14:40:59 +0100
From: MinGW Notification List <[email protected]>
To: OSDN Ticket System <[email protected]>
Subject: [MinGW-Notify] [mingw] #40563: Segmentation fault during
        GIMPLE pass: *rebuild_cgraph_edges
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8

#40563: Segmentation fault during GIMPLE pass: *rebuild_cgraph_edges

  Open Date: 2020-07-15 11:41
Last Update: 2020-07-15 14:40

URL for this Ticket:
    https://osdn.net//projects/mingw/ticket/40563
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=40563

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2020-07-15 14:40 Updated by: keith

Comment:

    I added the test case example code.

Thanks. FWIW, my mingw32-g++ (MinGW.org Cross-GCC Build-20200531-1) 9.2.0 cross
compiler reports the same ICE, when compiling your example:

$ mingw32-g++ -S -masm=intel foo.cpp
during GIMPLE pass: *rebuild_cgraph_edges
foo.cpp: In member function 'void test3<T>::depart() [with T = const test1<long 
unsigned int (__attribute__((stdcall)) *)(void*)>]':
foo.cpp:55:1: internal compiler error: Segmentation fault
   55 | }
      | ^
0xbc5ecf crash_signal
        ../../src/gcc-9.2.0/gcc/toplev.c:326
0x9f077b obj_type_ref_class(tree_node const*)
        ../../src/gcc-9.2.0/gcc/ipa-devirt.c:2026
0xe10556 virtual_method_call_p(tree_node const*)
        ../../src/gcc-9.2.0/gcc/tree.c:13009
0x8489d1 cgraph_node::create_indirect_edge(gcall*, int, profile_count, bool)
        ../../src/gcc-9.2.0/gcc/cgraph.c:968
0x84dd1a cgraph_edge::rebuild_edges()
        ../../src/gcc-9.2.0/gcc/cgraphbuild.c:421
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

whereas, with mingw32-g++ (MinGW.org cross-GCC-8.2.0-4) 8.2.0, it seems to
compile cleanly.

Unfortunately, I am not a C++ expert, and don't consider myself qualified to
pursue this further; your best course of action may be to file a GCC bug, on
https://gcc.gnu.org/bugzilla/



---------------------------------------------------------------------
Ticket Status:

      Reporter: thekbro
         Owner: (None)
          Type: Issues
        Status: Open
      Priority: 5 - Medium
     MileStone: (None)
     Component: GCC
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

Ticket details:

Example Code: https://godbolt.org/z/e31raW

The code compiles fine in godbolt with gcc 9.2, but if compiled with mingw
there is the following error:

MinGW\bin\g++.exe -g -o output.s -masm=intel -S -fdiagnostics-color=always 
example.cpp
during GIMPLE pass: *rebuild_cgraph_edges
example.cpp: In member function 'void test3<T>::depart() [with T = const 
test1<long unsigned int (__attribute__((stdcall)) *)(void*)>]':
example.cpp:55:1: internal compiler error: Segmentation fault
   55 | }
      | ^

example.cpp:55:1: internal compiler error: Aborted
g++.exe: internal compiler error: Aborted signal terminated program cc1plus


Im using:

Windows 10, 64 bit

GCC Version

Using built-in specs.
COLLECT_GCC=c:\toolchain\tools\MinGW\bin\g++.exe
COLLECT_LTO_WRAPPER=c:/toolchain/tools/mingw/bin/../libexec/gcc/mingw32/9.2.0/lto-wrapper.exe
Target: mingw32
Configured with: ../src/gcc-9.2.0/configure --build=x86_64-pc-linux-gnu 
--host=mingw32 --target=mingw32 --disable-win32-registry --with-arch=i586 
--with-tune=generic --enable-static --enable-shared --enable-threads 
--enable-languages=c,c++,objc,obj-c++,fortran,ada --with-dwarf2 
--disable-sjlj-exceptions --enable-version-specific-runtime-libs 
--enable-libgomp --disable-libvtv --with-libiconv-prefix=/mingw 
--with-libintl-prefix=/mingw --enable-libstdcxx-debug 
--disable-build-format-warnings --prefix=/mingw --with-gmp=/mingw 
--with-mpfr=/mingw --with-mpc=/mingw --with-isl=/mingw --enable-nls 
--with-pkgversion='MinGW.org GCC Build-2'
Thread model: win32
gcc version 9.2.0 (MinGW.org GCC Build-2)

Binutils Version

GNU ld (GNU Binutils) 2.32

MinGW Version

5.4.0

Build Environment

powershell/batch

I hope the Test Case is described good enough.



-- 
Ticket information of MinGW - Minimalist GNU for Windows project
MinGW - Minimalist GNU for Windows Project is hosted on OSDN

Project URL: https://osdn.net/projects/mingw/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/mingw/ticket/40563
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=40563


------------------------------

Subject: Digest Footer

_______________________________________________
MinGW-Notify mailing list
[email protected]
https://lists.osdn.me/mailman/listinfo/mingw-notify


------------------------------

End of MinGW-Notify Digest, Vol 34, Issue 7
*******************************************

Reply via email to