Summary: | sys-devel/gcc-9.2.0-r2 g++ segfault compiling invalid OpenMP C++ code with -O2 -fopenmp | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Marc Vinyals <mrc_timer> |
Component: | Current packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://gcc.gnu.org/PR92504 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Minimal code that triggers a segfault |
Description
Marc Vinyals
2019-11-12 11:40:00 UTC
Confirmed. Looking. Filed upstream bug as: https://gcc.gnu.org/PR92504 The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=e9c37fb661aed82754e6fd374457a88d697e3091 commit e9c37fb661aed82754e6fd374457a88d697e3091 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2019-11-19 22:55:04 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2019-11-19 22:55:04 +0000 9.2.0: backport openmp for loop SIGSEGV fix Reported-by: Marc Vinyals Bug: https://gcc.gnu.org/PR92504 Bug: https://bugs.gentoo.org/699938 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> 9.2.0/gentoo/31_all_openmp-for-SEGV.patch | 62 +++++++++++++++++++++++++++++++ 9.2.0/gentoo/README.history | 3 ++ 2 files changed, 65 insertions(+) Queued upstream fix for next 9.2.0 patchset as https://gitweb.gentoo.org/proj/gcc-patches.git/plain/9.2.0/gentoo/31_all_openmp-for-SEGV.patch The patchset should be released in a few weeks. Until now if you want to test a fix you can drop the patch to /etc/portage/patches/sys-devel/gcc:9.2.0/ and rebuild gcc. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=35beff919bc59076c5c1aa549e04d8119c559261 commit 35beff919bc59076c5c1aa549e04d8119c559261 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2019-12-22 11:07:00 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2019-12-22 11:07:00 +0000 9.2.0: cut 4 patchset 4 new patches: - 27_all_sparc-PIC-constant-PR91472.patch: fix PIC register alocation (bug detected by gmp test suite) - 31_all_openmp-for-SEGV.patch: fix opemnmp for loop condition folding - 32_all_sparc-PIC-constant-part2.patch: fix PIC register allocation (bug detected by python regressin) - 33_all_extend-lifetime.patch: fix lifetime extension on ':?' operator (bug detected by firefox LTO build Bug: https://gcc.gnu.org/PR91472 Bug: https://bugs.gentoo.org/699938 Bug: https://gcc.gnu.org/PR92504 Bug: https://bugs.gentoo.org/697708 Bug: https://gcc.gnu.org/PR92095 Bug: https://bugs.gentoo.org/701866 Bug: https://gcc.gnu.org/PR92831 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> 9.2.0/gentoo/README.history | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=649ef16ea81488d36fae3fa4a8881c9e665d2e7a commit 649ef16ea81488d36fae3fa4a8881c9e665d2e7a Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2019-12-22 11:24:45 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2019-12-22 11:28:34 +0000 sys-devel/gcc: 9.2.0: cut 4 patchset 4 new patches: - 27_all_sparc-PIC-constant-PR91472.patch: fix PIC register alocation (bug detected by gmp test suite) - 31_all_openmp-for-SEGV.patch: fix opemnmp for loop condition folding - 32_all_sparc-PIC-constant-part2.patch: fix PIC register allocation (bug detected by python regressin) - 33_all_extend-lifetime.patch: fix lifetime extension on ':?' operator (bug detected by firefox LTO build Bug: https://gcc.gnu.org/PR91472 Bug: https://bugs.gentoo.org/699938 Bug: https://gcc.gnu.org/PR92504 Bug: https://bugs.gentoo.org/697708 Bug: https://gcc.gnu.org/PR92095 Bug: https://bugs.gentoo.org/701866 Bug: https://gcc.gnu.org/PR92831 Package-Manager: Portage-2.3.82, Repoman-2.3.20 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> sys-devel/gcc/Manifest | 1 + sys-devel/gcc/gcc-9.2.0-r3.ebuild | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) Should be fixed in gcc-9.2.0-r3. Thank you for the perfect report! |