public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/99855] New: [modules] ICE Error reporting routines re-entered.
@ 2021-03-31 18:46 alexander.lelyakin at googlemail dot com
  2021-03-31 18:54 ` [Bug c++/99855] " mpolacek at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: alexander.lelyakin at googlemail dot com @ 2021-03-31 18:46 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 99855
           Summary: [modules] ICE Error reporting routines re-entered.
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: alexander.lelyakin at googlemail dot com
  Target Milestone: ---

/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header algorithm
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header memory
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header thread
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header
condition_variable
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header istream
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header variant
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header functional
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header cassert
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header cinttypes
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header shared_mutex
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header locale
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header fstream
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header cwctype
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header exception
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header cstdlib
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header string
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header vector
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header cstdio
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header filesystem
----
In file included from /usr/local/include/c++/11.0.1/bits/shared_ptr_base.h:53,
                 from /usr/local/include/c++/11.0.1/bits/shared_ptr.h:53,
                 from /usr/local/include/c++/11.0.1/bits/fs_path.h:46,
                 from /usr/local/include/c++/11.0.1/filesystem:45:


Internal compiler error: Error reporting routines re-entered.
0x877d94 tree_check_failed(tree_node const*, char const*, int, char const*,
...)
        ../../gcc/gcc/tree.c:9816
0x6c7098 tree_check(tree_node*, char const*, int, char const*, tree_code)
        ../../gcc/gcc/tree.h:3353
0x6c7098 dump_decl
        ../../gcc/gcc/cp/error.c:1259
0xa06c40 dump_scope
        ../../gcc/gcc/cp/error.c:234
0x9ff580 dump_aggr_type
        ../../gcc/gcc/cp/error.c:770
0xa00d85 dump_function_decl
        ../../gcc/gcc/cp/error.c:1715
0xa086d2 decl_as_string(tree_node*, int)
        ../../gcc/gcc/cp/error.c:3079
0xa086d2 lang_decl_name(tree_node*, int, bool)
        ../../gcc/gcc/cp/error.c:3114
0xb66217 cxx_printable_name_internal
        ../../gcc/gcc/cp/tree.c:2632
0xa09ddc cp_print_error_function
        ../../gcc/gcc/cp/error.c:3472
0xa09ddc cp_diagnostic_starter
        ../../gcc/gcc/cp/error.c:3426
0x1cb8972 diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*)
        ../../gcc/gcc/diagnostic.c:1245
0x1cb8ede diagnostic_impl
        ../../gcc/gcc/diagnostic.c:1406
0x1cb9227 internal_error(char const*, ...)
        ../../gcc/gcc/diagnostic.c:1808
0x877d94 tree_check_failed(tree_node const*, char const*, int, char const*,
...)
        ../../gcc/gcc/tree.c:9816
0x6c7098 tree_check(tree_node*, char const*, int, char const*, tree_code)
        ../../gcc/gcc/tree.h:3353
0x6c7098 dump_decl
        ../../gcc/gcc/cp/error.c:1259
0xa06c40 dump_scope
        ../../gcc/gcc/cp/error.c:234
0x9ff580 dump_aggr_type
        ../../gcc/gcc/cp/error.c:770
0xa00d85 dump_function_decl
        ../../gcc/gcc/cp/error.c:1715
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.
----
g++ (GCC) 11.0.1 20210331 (experimental)
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

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

* [Bug c++/99855] [modules] ICE Error reporting routines re-entered.
  2021-03-31 18:46 [Bug c++/99855] New: [modules] ICE Error reporting routines re-entered alexander.lelyakin at googlemail dot com
@ 2021-03-31 18:54 ` mpolacek at gcc dot gnu.org
  2021-03-31 19:03 ` alexander.lelyakin at googlemail dot com
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2021-03-31 18:54 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

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

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Hmm, I see a different ICE:

malloc(): smallbin double linked list corrupted
In file included from
/home/mpolacek/x/trunk/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/fs_path.h:46,
                 from
/home/mpolacek/x/trunk/x86_64-pc-linux-gnu/libstdc++-v3/include/filesystem:45:
/home/mpolacek/x/trunk/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/shared_ptr.h:330:32:
internal compiler error: Aborted
  330 | #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
0x160dffc crash_signal
        /home/mpolacek/src/gcc/gcc/toplev.c:327
0x7f965b906a5f ???
       
/usr/src/debug/glibc-2.32-37-g760e1d2878/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0x7f965b9069d5 __GI_raise
        ../sysdeps/unix/sysv/linux/raise.c:50
0x7f965b8ef8a3 __GI_abort
        /usr/src/debug/glibc-2.32-37-g760e1d2878/stdlib/abort.c:79
0x7f965b949176 __libc_message
        ../sysdeps/posix/libc_fatal.c:155
0x7f965b950e6b malloc_printerr
        /usr/src/debug/glibc-2.32-37-g760e1d2878/malloc/malloc.c:5389
0x7f965b954713 _int_malloc
        /usr/src/debug/glibc-2.32-37-g760e1d2878/malloc/malloc.c:3672
0x7f965b954fcd _int_realloc
        /usr/src/debug/glibc-2.32-37-g760e1d2878/malloc/malloc.c:4637
0x7f965b9562a5 __GI___libc_realloc
        /usr/src/debug/glibc-2.32-37-g760e1d2878/malloc/malloc.c:3246
0x282079d xrealloc
        /home/mpolacek/src/gcc/libiberty/xmalloc.c:179
0x276bd40 diagnostic_classify_diagnostic(diagnostic_context*, int,
diagnostic_t, unsigned int)
        /home/mpolacek/src/gcc/gcc/diagnostic.c:864
0x27548ab control_warning_option(unsigned int, int, char const*, bool, unsigned
int, unsigned int, cl_option_handlers const*, gcc_options*, gcc_options*,
diagnostic_context*)
        /home/mpolacek/src/gcc/gcc/opts-common.c:1722
0xea6c6f handle_pragma_diagnostic
        /home/mpolacek/src/gcc/gcc/c-family/c-pragma.c:849
0xea7bdd c_invoke_pragma_handler(unsigned int)
        /home/mpolacek/src/gcc/gcc/c-family/c-pragma.c:1515
0xcde6f5 cp_parser_pragma
        /home/mpolacek/src/gcc/gcc/cp/parser.c:45200
0xca70c8 cp_parser_member_specification_opt
        /home/mpolacek/src/gcc/gcc/cp/parser.c:25793
0xca4d3a cp_parser_class_specifier_1
        /home/mpolacek/src/gcc/gcc/cp/parser.c:24877
0xca5ea0 cp_parser_class_specifier
        /home/mpolacek/src/gcc/gcc/cp/parser.c:25193
0xc9742c cp_parser_type_specifier
        /home/mpolacek/src/gcc/gcc/cp/parser.c:18440
0xc91ac9 cp_parser_decl_specifier_seq
        /home/mpolacek/src/gcc/gcc/cp/parser.c:15062

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

* [Bug c++/99855] [modules] ICE Error reporting routines re-entered.
  2021-03-31 18:46 [Bug c++/99855] New: [modules] ICE Error reporting routines re-entered alexander.lelyakin at googlemail dot com
  2021-03-31 18:54 ` [Bug c++/99855] " mpolacek at gcc dot gnu.org
@ 2021-03-31 19:03 ` alexander.lelyakin at googlemail dot com
  2021-03-31 19:05 ` alexander.lelyakin at googlemail dot com
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: alexander.lelyakin at googlemail dot com @ 2021-03-31 19:03 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Alexander Lelyakin <alexander.lelyakin at googlemail dot com> ---
Yes, attempting to repeat gives different message, but not same as by you:

malloc(): smallbin double linked list corrupted
In file included from /usr/local/include/c++/11.0.1/bits/fs_path.h:46,
                 from /usr/local/include/c++/11.0.1/filesystem:45:
/usr/local/include/c++/11.0.1/bits/shared_ptr.h:330:32: internal compiler
error: Aborted
  330 | #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
0x11016bf crash_signal
        ../../gcc/gcc/toplev.c:327
0x1d47750 xrealloc
        ../../gcc/libiberty/xmalloc.c:179
0x1cb82a7 diagnostic_classify_diagnostic(diagnostic_context*, int,
diagnostic_t, unsigned int)
        ../../gcc/gcc/diagnostic.c:864
0x1ca85ca control_warning_option(unsigned int, int, char const*, bool, unsigned
int, unsigned int, cl_option_handlers const*, gcc_options*, gcc_options*,
diagnostic_context*)
        ../../gcc/gcc/opts-common.c:1722
0xc00249 handle_pragma_diagnostic
        ../../gcc/gcc/c-family/c-pragma.c:849
0xaa63ab cp_parser_pragma
        ../../gcc/gcc/cp/parser.c:45198
0xaa7f4e cp_parser_member_specification_opt
        ../../gcc/gcc/cp/parser.c:25793
0xaa7f4e cp_parser_class_specifier_1
        ../../gcc/gcc/cp/parser.c:24877
0xaaa0a3 cp_parser_class_specifier
        ../../gcc/gcc/cp/parser.c:25193
0xaaa0a3 cp_parser_type_specifier
        ../../gcc/gcc/cp/parser.c:18440
0xaab039 cp_parser_decl_specifier_seq
        ../../gcc/gcc/cp/parser.c:15062
0xad5c46 cp_parser_single_declaration
        ../../gcc/gcc/cp/parser.c:30426
0xad5fc6 cp_parser_template_declaration_after_parameters
        ../../gcc/gcc/cp/parser.c:30089
0xad6770 cp_parser_explicit_template_declaration
        ../../gcc/gcc/cp/parser.c:30355
0xad8e99 cp_parser_declaration
        ../../gcc/gcc/cp/parser.c:14068
0xad8469 cp_parser_toplevel_declaration
        ../../gcc/gcc/cp/parser.c:14166
0xad8469 cp_parser_declaration_seq_opt
        ../../gcc/gcc/cp/parser.c:13954
0xad8902 cp_parser_namespace_body
        ../../gcc/gcc/cp/parser.c:20454
0xad8902 cp_parser_namespace_definition
        ../../gcc/gcc/cp/parser.c:20432
0xad9058 cp_parser_declaration
        ../../gcc/gcc/cp/parser.c:14117
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.

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

* [Bug c++/99855] [modules] ICE Error reporting routines re-entered.
  2021-03-31 18:46 [Bug c++/99855] New: [modules] ICE Error reporting routines re-entered alexander.lelyakin at googlemail dot com
  2021-03-31 18:54 ` [Bug c++/99855] " mpolacek at gcc dot gnu.org
  2021-03-31 19:03 ` alexander.lelyakin at googlemail dot com
@ 2021-03-31 19:05 ` alexander.lelyakin at googlemail dot com
  2021-03-31 19:07 ` alexander.lelyakin at googlemail dot com
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: alexander.lelyakin at googlemail dot com @ 2021-03-31 19:05 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Alexander Lelyakin <alexander.lelyakin at googlemail dot com> ---
malloc(): smallbin double linked list corrupted
In file included from /usr/local/include/c++/11.0.1/filesystem:45:
/usr/local/include/c++/11.0.1/bits/fs_path.h:94:62: internal compiler error:
Aborted
   94 |     using __safe_iterator_traits = std::iterator_traits<_Iter>;
      |                                                              ^
0x11016bf crash_signal
        ../../gcc/gcc/toplev.c:327
0x1d47750 xrealloc
        ../../gcc/libiberty/xmalloc.c:179
0xa6d663 void va_heap::reserve<tree_node*>(vec<tree_node*, va_heap,
vl_embed>*&, unsigned int, bool)
        ../../gcc/gcc/vec.h:290
0xa6d663 vec<tree_node*, va_heap, vl_ptr>::reserve(unsigned int, bool)
        ../../gcc/gcc/vec.h:1778
0xa6d663 vec<tree_node*, va_heap, vl_ptr>::safe_push(tree_node* const&)
        ../../gcc/gcc/vec.h:1887
0xa6d663 trees_in::post_process(tree_node*)
        ../../gcc/gcc/cp/module.cc:2956
0xa6d663 trees_in::read_function_def(tree_node*, tree_node*)
        ../../gcc/gcc/cp/module.cc:11456
0xa6f7f1 module_state::read_cluster(unsigned int)
        ../../gcc/gcc/cp/module.cc:14806
0xa6fe6d module_state::load_section(unsigned int, binding_slot*)
        ../../gcc/gcc/cp/module.cc:18068
0xa6ff2f module_state::lazy_load(unsigned int, binding_slot*)
        ../../gcc/gcc/cp/module.cc:18726
0xa6a1b0 trees_in::tree_node(bool)
        ../../gcc/gcc/cp/module.cc:9661
0xa7047a trees_in::decl_container()
        ../../gcc/gcc/cp/module.cc:10271
0xa7047a trees_in::decl_value()
        ../../gcc/gcc/cp/module.cc:7887
0xa69347 trees_in::tree_node(bool)
        ../../gcc/gcc/cp/module.cc:9150
0xa6f96b module_state::read_cluster(unsigned int)
        ../../gcc/gcc/cp/module.cc:14797
0xa6fe6d module_state::load_section(unsigned int, binding_slot*)
        ../../gcc/gcc/cp/module.cc:18068
0xa6ff2f module_state::lazy_load(unsigned int, binding_slot*)
        ../../gcc/gcc/cp/module.cc:18726
0xa6a1b0 trees_in::tree_node(bool)
        ../../gcc/gcc/cp/module.cc:9661
0xa692b9 trees_in::tree_node(bool)
        ../../gcc/gcc/cp/module.cc:9200
0xa6b6c5 trees_in::core_vals(tree_node*)
        ../../gcc/gcc/cp/module.cc:6627
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.

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

* [Bug c++/99855] [modules] ICE Error reporting routines re-entered.
  2021-03-31 18:46 [Bug c++/99855] New: [modules] ICE Error reporting routines re-entered alexander.lelyakin at googlemail dot com
                   ` (2 preceding siblings ...)
  2021-03-31 19:05 ` alexander.lelyakin at googlemail dot com
@ 2021-03-31 19:07 ` alexander.lelyakin at googlemail dot com
  2021-03-31 19:14 ` alexander.lelyakin at googlemail dot com
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: alexander.lelyakin at googlemail dot com @ 2021-03-31 19:07 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Alexander Lelyakin <alexander.lelyakin at googlemail dot com> ---
And next time same sequence run without error! 
All that with the same compiler, in empty dir.

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

* [Bug c++/99855] [modules] ICE Error reporting routines re-entered.
  2021-03-31 18:46 [Bug c++/99855] New: [modules] ICE Error reporting routines re-entered alexander.lelyakin at googlemail dot com
                   ` (3 preceding siblings ...)
  2021-03-31 19:07 ` alexander.lelyakin at googlemail dot com
@ 2021-03-31 19:14 ` alexander.lelyakin at googlemail dot com
  2021-04-01  6:12 ` alexander.lelyakin at googlemail dot com
  2021-04-07  6:29 ` alexander.lelyakin at googlemail dot com
  6 siblings, 0 replies; 8+ messages in thread
From: alexander.lelyakin at googlemail dot com @ 2021-03-31 19:14 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Alexander Lelyakin <alexander.lelyakin at googlemail dot com> ---
I have seen all that stuff with compiler at 
commit d7145b4bb6c8729a1e782373cb6256c06ed60465

Let's see what will be tomorrow.

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

* [Bug c++/99855] [modules] ICE Error reporting routines re-entered.
  2021-03-31 18:46 [Bug c++/99855] New: [modules] ICE Error reporting routines re-entered alexander.lelyakin at googlemail dot com
                   ` (4 preceding siblings ...)
  2021-03-31 19:14 ` alexander.lelyakin at googlemail dot com
@ 2021-04-01  6:12 ` alexander.lelyakin at googlemail dot com
  2021-04-07  6:29 ` alexander.lelyakin at googlemail dot com
  6 siblings, 0 replies; 8+ messages in thread
From: alexander.lelyakin at googlemail dot com @ 2021-04-01  6:12 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Alexander Lelyakin <alexander.lelyakin at googlemail dot com> ---
Today this message was not seen.

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

* [Bug c++/99855] [modules] ICE Error reporting routines re-entered.
  2021-03-31 18:46 [Bug c++/99855] New: [modules] ICE Error reporting routines re-entered alexander.lelyakin at googlemail dot com
                   ` (5 preceding siblings ...)
  2021-04-01  6:12 ` alexander.lelyakin at googlemail dot com
@ 2021-04-07  6:29 ` alexander.lelyakin at googlemail dot com
  6 siblings, 0 replies; 8+ messages in thread
From: alexander.lelyakin at googlemail dot com @ 2021-04-07  6:29 UTC (permalink / raw)
  To: gcc-bugs

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

Alexander Lelyakin <alexander.lelyakin at googlemail dot com> changed:

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

--- Comment #7 from Alexander Lelyakin <alexander.lelyakin at googlemail dot com> ---
Not reproduced anymore during last week.

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

end of thread, other threads:[~2021-04-07  6:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-31 18:46 [Bug c++/99855] New: [modules] ICE Error reporting routines re-entered alexander.lelyakin at googlemail dot com
2021-03-31 18:54 ` [Bug c++/99855] " mpolacek at gcc dot gnu.org
2021-03-31 19:03 ` alexander.lelyakin at googlemail dot com
2021-03-31 19:05 ` alexander.lelyakin at googlemail dot com
2021-03-31 19:07 ` alexander.lelyakin at googlemail dot com
2021-03-31 19:14 ` alexander.lelyakin at googlemail dot com
2021-04-01  6:12 ` alexander.lelyakin at googlemail dot com
2021-04-07  6:29 ` alexander.lelyakin at googlemail dot com

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