* Re: [PATCH] lxc: fixes lxc segment fault issue on arm if it is compiled with GCC 5.2
[not found] <1468577103-224321-1-git-send-email-fupan.li@windriver.com>
@ 2016-07-15 15:03 ` Bruce Ashfield
0 siblings, 0 replies; only message in thread
From: Bruce Ashfield @ 2016-07-15 15:03 UTC (permalink / raw)
To: fupan.li, jason.wessel, meta-virtualization
merged.
Bruce
On 2016-07-15 06:05 AM, fupan.li@windriver.com wrote:
> From: fli <fupan.li@windriver.com>
>
> If the lxc is compiled with gcc 5.2 -O2 optimization on arm,
> lxc-console/lxc-stop command always produce segment fault.
>
> The same issue also occurred on systemd: [YOCTO #8291]
>
> For lxc, after several testing, it only needs to disable
> schedule-insns2 to fix the segment fault issue.
>
> Signed-off-by: fli <fupan.li@windriver.com>
> ---
> recipes-containers/lxc/lxc_2.0.0.bb | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/recipes-containers/lxc/lxc_2.0.0.bb b/recipes-containers/lxc/lxc_2.0.0.bb
> index 5004b9e..e436057 100644
> --- a/recipes-containers/lxc/lxc_2.0.0.bb
> +++ b/recipes-containers/lxc/lxc_2.0.0.bb
> @@ -49,6 +49,9 @@ EXTRA_OECONF += "--enable-log-src-basename"
>
> CFLAGS_append = " -Wno-error=deprecated-declarations"
>
> +# disable problematic GCC 5.2 optimizations [YOCTO #8291]
> +FULL_OPTIMIZATION_append_arm = " -fno-schedule-insns2"
> +
> PACKAGECONFIG ??= "templates \
> ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)} \
> "
>
^ permalink raw reply [flat|nested] only message in thread