[Bug 2036320] [NEW] Internal compiler error when build modules
Adam Stepniak
2036320 at bugs.launchpad.net
Sat Sep 16 15:51:37 UTC 2023
Public bug reported:
during RTL pass: expand
In file included from /usr/include/c++/13/string:43,
from animal_sound.cpp:3,
from animal.cpp:4,
of module animal, imported at main.cpp:4:
In member function ‘constexpr _Tp* std::allocator< <template-parameter-1-1> >::allocate(std::size_t) [with _Tp = char]’,
inlined from ‘static constexpr _Tp* std::allocator_traits<std::allocator<_CharT> >::allocate(allocator_type&, size_type) [with _Tp = char]’ at /usr/include/c++/13/bits/alloc_traits.h:482:28,
inlined from ‘static constexpr std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::pointer std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_S_allocate(_Char_alloc_type&, size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/13/bits/basic_string.h:126:39:
/usr/include/c++/13/bits/allocator.h:193:39: internal compiler error: in make_decl_rtl, at varasm.cc:1442
193 | if (__builtin_mul_overflow(__n, sizeof(_Tp), &__n))
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
0x658a99 make_decl_rtl(tree_node*)
../../src/gcc/varasm.cc:1442
0x14a11db expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool)
../../src/gcc/expr.cc:10863
0x15432b8 expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool)
../../src/gcc/expr.cc:9000
0x15432b8 store_expr(tree_node*, rtx_def*, int, bool, bool)
../../src/gcc/expr.cc:6330
0x153fee5 expand_assignment(tree_node*, tree_node*, bool)
../../src/gcc/expr.cc:6048
0x153ef9e expand_gimple_stmt_1
../../src/gcc/cfgexpand.cc:3946
0x153ef9e expand_gimple_stmt
../../src/gcc/cfgexpand.cc:4044
0x1500581 expand_gimple_basic_block
../../src/gcc/cfgexpand.cc:6106
0x1500581 execute
../../src/gcc/cfgexpand.cc:6841
Please submit a full bug report, with preprocessed source.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-13/README.Bugs> for instructions.
Preprocessed source stored into /tmp/cc0RVf4z.out file, please attach this to your bugreport.
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/_usr_libexec_gcc_x86_64-linux-gnu_13_cc1plus.1000.crash'
./run.sh: line 4: 252011 Segmentation fault (core dumped) ./main.exe
** Affects: gcc-13 (Ubuntu)
Importance: Undecided
Status: New
** Attachment added: "Preprocessed source stored into /tmp/ccqFqwDv.out file, please attach this to your bugreport."
https://bugs.launchpad.net/bugs/2036320/+attachment/5701488/+files/ccn7BV4E.out
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-13 in Ubuntu.
https://bugs.launchpad.net/bugs/2036320
Title:
Internal compiler error when build modules
Status in gcc-13 package in Ubuntu:
New
Bug description:
during RTL pass: expand
In file included from /usr/include/c++/13/string:43,
from animal_sound.cpp:3,
from animal.cpp:4,
of module animal, imported at main.cpp:4:
In member function ‘constexpr _Tp* std::allocator< <template-parameter-1-1> >::allocate(std::size_t) [with _Tp = char]’,
inlined from ‘static constexpr _Tp* std::allocator_traits<std::allocator<_CharT> >::allocate(allocator_type&, size_type) [with _Tp = char]’ at /usr/include/c++/13/bits/alloc_traits.h:482:28,
inlined from ‘static constexpr std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::pointer std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_S_allocate(_Char_alloc_type&, size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/13/bits/basic_string.h:126:39:
/usr/include/c++/13/bits/allocator.h:193:39: internal compiler error: in make_decl_rtl, at varasm.cc:1442
193 | if (__builtin_mul_overflow(__n, sizeof(_Tp), &__n))
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
0x658a99 make_decl_rtl(tree_node*)
../../src/gcc/varasm.cc:1442
0x14a11db expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool)
../../src/gcc/expr.cc:10863
0x15432b8 expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool)
../../src/gcc/expr.cc:9000
0x15432b8 store_expr(tree_node*, rtx_def*, int, bool, bool)
../../src/gcc/expr.cc:6330
0x153fee5 expand_assignment(tree_node*, tree_node*, bool)
../../src/gcc/expr.cc:6048
0x153ef9e expand_gimple_stmt_1
../../src/gcc/cfgexpand.cc:3946
0x153ef9e expand_gimple_stmt
../../src/gcc/cfgexpand.cc:4044
0x1500581 expand_gimple_basic_block
../../src/gcc/cfgexpand.cc:6106
0x1500581 execute
../../src/gcc/cfgexpand.cc:6841
Please submit a full bug report, with preprocessed source.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-13/README.Bugs> for instructions.
Preprocessed source stored into /tmp/cc0RVf4z.out file, please attach this to your bugreport.
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/_usr_libexec_gcc_x86_64-linux-gnu_13_cc1plus.1000.crash'
./run.sh: line 4: 252011 Segmentation fault (core dumped) ./main.exe
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-13/+bug/2036320/+subscriptions
More information about the foundations-bugs
mailing list