public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/99541] New: ICE when reading a module
@ 2021-03-11  5:32 ryan.burn at gmail dot com
  2021-03-11  8:43 ` [Bug c++/99541] " rguenth at gcc dot gnu.org
  2022-03-14 20:06 ` pinskia at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: ryan.burn at gmail dot com @ 2021-03-11  5:32 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 99541
           Summary: ICE when reading a module
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ryan.burn at gmail dot com
  Target Milestone: ---

Backtrace


  bazel-out/k8-opt-exec-2B5CBBC6/bin/util/process_wrapper/process_wrapper --
/usr/local/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall
-Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer
'-std=c++0x'
'-frandom-seed=bazel-out/k8-fastbuild/bin/example/transitive/main.o'
-fmodules-ts '-std=c++20' -fno-canonical-system-headers
-Wno-builtin-macro-redefined '-D__DATE__="redacted"'
'-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c
example/transitive/main.cc -o
bazel-out/k8-fastbuild/bin/example/transitive/main.o
'-fmodule-mapper=bazel-out/k8-fastbuild/bin/example/transitive/a.out-module-map'
-iquote .)
SUBCOMMAND: # //example/transitive:a [action 'Action example/transitive/a.a',
configuration:
86d23d2b5aedbeecfc6e6954ea9486ec39e9e40bcbc4b17cec46a06eed198d11, execution
platform: @local_config_platform//:host]
(cd
/root/.cache/bazel/_bazel_root/f8087e59fd95af1ae29e8fcb7ff1a3dc/execroot/com_github_rnburn_bazel_cpp20_modules
&& \
  exec env - \
  /usr/bin/ar rcsD bazel-out/k8-fastbuild/bin/example/transitive/a.a
bazel-out/k8-fastbuild/bin/example/transitive/a.o)
INFO: From Action example/header-module/main.o:
In module imported at example/header-module/main.cc:3:1:
./bazel-out/k8-fastbuild/bin/example/header-module/system/iostream-include/iostream:
error: failed to read compiled module cluster 2: Bad file data
./bazel-out/k8-fastbuild/bin/example/header-module/system/iostream-include/iostream:
note: compiled module file is
'bazel-out/k8-fastbuild/bin/example/header-module/system/iostream.gcm'
./bazel-out/k8-fastbuild/bin/example/header-module/system/iostream-include/iostream:
error: failed to read compiled module cluster 20: Bad file data
example/header-module/main.cc:3:19: internal compiler error: Segmentation fault
    3 | import <iostream>;
      |                   ^
0x10a9ccf crash_signal
        ../../gcc/toplev.c:327
0xa1bd0f contains_struct_check(tree_node*, tree_node_structure_enum, char
const*, int, char const*)
        ../../gcc/tree.h:3451
0xa1bd0f trees_in::key_mergeable(int, merge_kind, tree_node*, tree_node*,
tree_node*, tree_node*, bool)
        ../../gcc/cp/module.cc:10716
0xa16b13 trees_in::decl_value()
        ../../gcc/cp/module.cc:7987
0xa18967 trees_in::tree_node(bool)
        ../../gcc/cp/module.cc:9202
0xa1f103 module_state::read_cluster(unsigned int)
        ../../gcc/cp/module.cc:14878
0xa1f60d module_state::load_section(unsigned int, binding_slot*)
        ../../gcc/cp/module.cc:18018
0xa1f6cf module_state::lazy_load(unsigned int, binding_slot*)
        ../../gcc/cp/module.cc:18667
0xa197c8 trees_in::tree_node(bool)
        ../../gcc/cp/module.cc:9713
0xa188d9 trees_in::tree_node(bool)
        ../../gcc/cp/module.cc:9252
0xa1acd5 trees_in::core_vals(tree_node*)
        ../../gcc/cp/module.cc:6701
0xa21157 trees_in::tree_node_vals(tree_node*)
        ../../gcc/cp/module.cc:7131
0xa21157 trees_in::tree_value()
        ../../gcc/cp/module.cc:8979
0xa1846f trees_in::tree_node(bool)
        ../../gcc/cp/module.cc:9197
0xa1c01b trees_in::key_mergeable(int, merge_kind, tree_node*, tree_node*,
tree_node*, tree_node*, bool)
        ../../gcc/cp/module.cc:10795
0xa16b13 trees_in::decl_value()
        ../../gcc/cp/module.cc:7987
0xa18967 trees_in::tree_node(bool)
        ../../gcc/cp/module.cc:9202
0xa1f103 module_state::read_cluster(unsigned int)
        ../../gcc/cp/module.cc:14878
0xa1f60d module_state::load_section(unsigned int, binding_slot*)
        ../../gcc/cp/module.cc:18018
0xa1f6cf module_state::lazy_load(unsigned int, binding_slot*)
        ../../gcc/cp/module.cc:18667
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.


My gcc version
root@748001480fc4:/src# g++ --version
g++ (GCC) 11.0.0 20201218 (experimental)
Copyright (C) 2020 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] 3+ messages in thread

* [Bug c++/99541] ICE when reading a module
  2021-03-11  5:32 [Bug c++/99541] New: ICE when reading a module ryan.burn at gmail dot com
@ 2021-03-11  8:43 ` rguenth at gcc dot gnu.org
  2022-03-14 20:06 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-03-11  8:43 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|unknown                     |11.0
   Last reconfirmed|                            |2021-03-11
             Status|UNCONFIRMED                 |WAITING
     Ever confirmed|0                           |1
                 CC|                            |nathan at gcc dot gnu.org

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Please provide a testcase.

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

* [Bug c++/99541] ICE when reading a module
  2021-03-11  5:32 [Bug c++/99541] New: ICE when reading a module ryan.burn at gmail dot com
  2021-03-11  8:43 ` [Bug c++/99541] " rguenth at gcc dot gnu.org
@ 2022-03-14 20:06 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-03-14 20:06 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|WAITING                     |RESOLVED

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
No testcase for the last year so closing as invalid. If you provide a testcase,
we will look into it.

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

end of thread, other threads:[~2022-03-14 20:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-11  5:32 [Bug c++/99541] New: ICE when reading a module ryan.burn at gmail dot com
2021-03-11  8:43 ` [Bug c++/99541] " rguenth at gcc dot gnu.org
2022-03-14 20:06 ` 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).