https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94232
Bug ID: 94232
Summary: [10 Regression] Wrong code since
r10-7273-gf3280e4c0c98e103603bafc466ea49651fe0b7f2
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: ipa
Assignee: unassigned at gcc dot gnu.org
Reporter: marxin at gcc dot gnu.org
CC: marxin at gcc dot gnu.org
Target Milestone: ---
I see quite a lot of package failures after the revision. One of the affected
is gengetopt.
I isolated the ipa_get_jf_ancestor_result change into only one transformation
which causes the following crash:
$ valgrind ../src/gengetopt --gen-version --input=test_modes_cmd.ggo
--func-name=test_modes_cmd_parser --file-name=test_modes_cmd --unnamed-opt
--show-required
==22646== Memcheck, a memory error detector
==22646== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==22646== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
==22646== Command: ../src/gengetopt --gen-version --input=test_modes_cmd.ggo
--func-name=test_modes_cmd_parser --file-name=test_modes_cmd --unnamed-opt
--show-required
==22646==
==22646==
==22646== Process terminating with default action of signal 11 (SIGSEGV):
dumping core
==22646== Bad permissions for mapped region at address 0x445098
==22646== at 0x4904DCF:
std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)
(list.cc:132)
==22646== by 0x427D16:
CmdlineParserCreator::generate_check_modes(std::ostream&, unsigned int) (in
/home/marxin/BIG/osc/openSUSE:Factory:Staging:Gcc7/gengetopt/gengetopt-2.23/src/gengetopt)
==22646== by 0x43ADBA: CmdlineParserCreator::generate_source() (in
/home/marxin/BIG/osc/openSUSE:Factory:Staging:Gcc7/gengetopt/gengetopt-2.23/src/gengetopt)
==22646== by 0x40790E: main (in
/home/marxin/BIG/osc/openSUSE:Factory:Staging:Gcc7/gengetopt/gengetopt-2.23/src/gengetopt)