Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 497294 - net-misc/networkmanager-0.9.8.8 - hardened gcc-4.6.3 miscompiles due to -fpartial-inlining
Summary: net-misc/networkmanager-0.9.8.8 - hardened gcc-4.6.3 miscompiles due to -fpar...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 915000
  Show dependency tree
 
Reported: 2014-01-06 17:51 UTC by Jan Kundrát (RETIRED)
Modified: 2023-10-01 06:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Kundrát (RETIRED) gentoo-dev 2014-01-06 17:51:18 UTC
Using gcc-4.6.3 (USE=amd64 cxx elibc_glibc fortran hardened kernel_linux mudflap multilib nls nptl openmp userland_GNU), the net-misc/networkmanager-0.9.8.8 is miscompiled when using CFLAGS="-O2 -pipe -march=native -mavx -maes -ggdb". Adding -fno-partial-inlining to the CFLAGS fixes this issue, and using net-misc/networkmanager-0.9.6.4 with the original CFLAGS works fine as well. Upgrading to GCC 4.7.3 and using the unmodified -O2 works, too.

All details which I have are available at https://bugzilla.gnome.org/show_bug.cgi?id=721465 .
Comment 1 Magnus Granberg gentoo-dev 2014-04-05 19:36:09 UTC
Looks like it fixed in newer gcc?
Comment 2 Jan Kundrát (RETIRED) gentoo-dev 2014-04-07 08:23:37 UTC
(In reply to Magnus Granberg from comment #1)
> Looks like it fixed in newer gcc?

Yes, that's what I reported here three months ago.
Comment 3 Alexandre Rostovtsev (RETIRED) gentoo-dev 2014-04-07 14:05:26 UTC
We could add a check to the networkmanager ebuild to automatically add -fno-partial-inlining to CFLAGS if a problematic compiler is detected.

The question is, how to check for a problematic compiler? Is there something we can do with gcc-specs-directive() to determine whether this is gcc on a hardened profile?
Comment 4 Magnus Granberg gentoo-dev 2014-07-08 22:55:43 UTC
Way need to check for hardened compiler when it is GCC that have a bug and it is fixed in newer version?
Comment 5 Anthony Basile gentoo-dev 2014-10-17 17:41:46 UTC
(In reply to Magnus Granberg from comment #4)
> Way need to check for hardened compiler when it is GCC that have a bug and
> it is fixed in newer version?

Is this bug still relevant? Sould we just block against an older version of gcc and move on?
Comment 6 Magnus Granberg gentoo-dev 2015-01-14 19:17:26 UTC
Fixed in newer gcc >=4.7.3