Summary: | sys-devel/gcc-10.2.0-r3: strncmp miscompiles as memcmp (breaks sys-apps/smartmontools) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Matt Whitlock <gentoo> |
Component: | Current packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | base-system, jstein |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96758 | ||
See Also: | https://bugzilla.redhat.com/show_bug.cgi?id=1896161 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 915000 |
Description
Matt Whitlock
2020-11-30 18:28:33 UTC
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=9b342fdeb8588681bb106e072cefd481a045fb21 commit 9b342fdeb8588681bb106e072cefd481a045fb21 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2020-12-01 19:16:33 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2020-12-01 19:16:33 +0000 10.2.0: backport strncmp() folding Reported-by: Matt Whitlock Bug: https://bugs.gentoo.org/757792 Bug: https://gcc.gnu.org/PR96758 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> 10.2.0/gentoo/41_all_strlen-PR96758.patch | 95 +++++++++++++++++++++++++++++++ 10.2.0/gentoo/README.history | 3 + 2 files changed, 98 insertions(+) Queued patch for next gcc-10.2.0 patchset. It usually takes a few weeks to cut a new release. Meanwhile you can drop a patch to /etc/portage/patches/sys-devel/gcc:10/ and verify if it's enough to fix the underlying bug. (In reply to Sergei Trofimovich from comment #2) > Meanwhile you can drop a patch to > /etc/portage/patches/sys-devel/gcc:10/ and verify if it's enough to fix the > underlying bug. I did that. (Actually to /etc/portage/patches/sys-devel/gcc-10.2.0-r3 so I don't have to remember to delete it when -r4 is released.) It does solve the underlying issue, as I noted. My smartctl is again able to address the underlying drives in my 3ware RAID. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0e31bd8e8a4d7a67033600a0331a6deb7db1cc4 commit f0e31bd8e8a4d7a67033600a0331a6deb7db1cc4 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2020-12-18 21:03:32 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2020-12-18 21:04:24 +0000 sys-devel/gcc: 10.2.0: cut 5 patchset Single new patch: + 41_all_strlen-PR96758.patch: fix string comparison against literals Bug: https://bugs.gentoo.org/757792 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> sys-devel/gcc/Manifest | 1 + sys-devel/gcc/gcc-10.2.0-r4.ebuild | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=e71e59c25315ebda3ebf4014bb108db9dda08a27 commit e71e59c25315ebda3ebf4014bb108db9dda08a27 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2020-12-18 20:57:44 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2020-12-18 20:57:44 +0000 10.2.0: cut 5 patchset Single new patch: + 41_all_strlen-PR96758.patch: fix string comparison against literals Bug: https://bugs.gentoo.org/757792 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> 10.2.0/gentoo/README.history | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) |