[Bug debug/82998] New: Internal compiler error in force_type_die in dwarf2out.c
plinich at cse dot unsw.edu.au
gcc-bugzilla@gcc.gnu.org
Wed Nov 15 00:05:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82998
Bug ID: 82998
Summary: Internal compiler error in force_type_die in
dwarf2out.c
Product: gcc
Version: 7.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: debug
Assignee: unassigned at gcc dot gnu.org
Reporter: plinich at cse dot unsw.edu.au
Target Milestone: ---
Created attachment 42607
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42607&action=edit
Preprocessed source code (from ceph-10.2.9 source) which triggers the internal
compiler error
[root@alarm src]# g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/local/gcc-7.2.0/libexec/gcc/armv7l-unknown-linux-gnueabihf/7.2.0/lto-wrapper
Target: armv7l-unknown-linux-gnueabihf
Configured with: ../gcc-7.2.0/configure --prefix=/usr/local/gcc-7.2.0
--with-float=hard --enable-languages=c,c++
Thread model: posix
gcc version 7.2.0 (GCC)
[root@alarm src]#
g++ -DHAVE_CONFIG_H -I. -D__CEPH__ -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE
-D__STDC_FORMAT_MACROS -D_GNU_SOURCE -DCEPH_LIBDIR="/usr/local/ceph-10.2.9/lib"
-DCEPH_PKGLIBDIR="/usr/local/ceph-10.2.9/lib/ceph" -DGTEST_USE_OWN_TR1_TUPLE=0
-D_REENTRANT -Wall -Wtype-limits -Wignored-qualifiers -Winit-self
-Wpointer-arith -fno-strict-aliasing -fsigned-char -rdynamic
-ftemplate-depth-1024 -Wnon-virtual-dtor -Wno-invalid-offsetof -O2 -g -pipe
-Wall -Wp,-U_FORTIFY_SOURCE -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
--param=ssp-buffer-size=4 -fPIE -fstack-protector-strong -fno-builtin-malloc
-fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free
-Wstrict-null-sentinel -g -O2 -MT osd/libosd_a-ECBackend.o -MD -MP -MF
osd/.deps/libosd_a-ECBackend.Tpo -c -o osd/libosd_a-ECBackend.o
osd/ECBackend.cc -save-temps
g++: warning: -pipe ignored because -save-temps specified
osd/ECBackend.cc: In member function 'int ECBackend::get_remaining_shards(const
hobject_t&, const std::set<int>&, std::set<pg_shard_t>*)':
osd/ECBackend.cc:1532:52: warning: variable 'miter' set but not used
[-Wunused-but-set-variable]
map<hobject_t, set<pg_shard_t> >::const_iterator miter =
^~~~~
In file included from osd/ECBackend.cc:24:0:
osd/ReplicatedPG.h: In destructor 'virtual
ReplicatedPG::WaitTrimTimer::WaitTrimTimer(boost::statechart::state<ReplicatedPG::WaitTrimTimer,
ReplicatedPG::Trimming>::my_context)::OnTimer::~OnTimer()':
osd/ReplicatedPG.h:1667:14: internal compiler error: in force_type_die, at
dwarf2out.c:25099
struct OnTimer : Context {
^~~~~~~
0x3dac23 force_type_die
../../gcc-7.2.0/gcc/dwarf2out.c:25099
0x3d8627 get_context_die
../../gcc-7.2.0/gcc/dwarf2out.c:25013
0x3d8627 force_decl_die
../../gcc-7.2.0/gcc/dwarf2out.c:25032
0x3d5dcf gen_subprogram_die
../../gcc-7.2.0/gcc/dwarf2out.c:21895
0x3d6dc3 gen_decl_die
../../gcc-7.2.0/gcc/dwarf2out.c:25335
0x3d7ae3 dwarf2out_decl
../../gcc-7.2.0/gcc/dwarf2out.c:25844
0x3d635b dwarf2out_abstract_function
../../gcc-7.2.0/gcc/dwarf2out.c:21671
0x708aef expand_call_inline
../../gcc-7.2.0/gcc/tree-inline.c:4887
0x7099cf gimple_expand_calls_inline
../../gcc-7.2.0/gcc/tree-inline.c:4917
0x7099cf optimize_inline_calls(tree_node*)
../../gcc-7.2.0/gcc/tree-inline.c:5057
0xc4c01f early_inliner(function*)
../../gcc-7.2.0/gcc/ipa-inline.c:2721
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.
More information about the Gcc-bugs
mailing list