Re: [Boost-bugs] [Boost C++ Libraries] #13481: Strict aliasing is causing SIGSEGV on ARM Cortex-A15 when using GCC6

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #13481: Strict aliasing is causing SIGSEGV on ARM Cortex-A15 when using GCC6
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-04-04 06:55:03


#13481: Strict aliasing is causing SIGSEGV on ARM Cortex-A15 when using GCC6
-------------------------------------------------+-------------------------
  Reporter: Piotr Podusowski | Owner: Douglas
  <piotr.podusowski@…> | Gregor
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: function
   Version: Boost 1.66.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------------------------+-------------------------

Comment (by Joakim Tosteberg <joakim.tosteberg@…>):

 We have a similar issue using a gcc 6.3 compiler from
 https://github.com/Broadcom/stbgcc-6.3/releases

 In this case the issue does not reproduce with the attached bug.cpp but we
 have an another example, attached as crash.cpp which reproduces it with
 this compiler version when built with -O2 (and given that the issue seems
 quite sensitive to even small changes in the code I'm not surprised that
 slightly different compiler version requires different code to reproduce
 it). Adding -fno-strict-aliasing when building makes the issue go away.

 Also, using the suggested change to do a memcpy on the data member instead
 of directly assigning the functor inside function_template.hpp does seem
 to resolve the issue.

-- 
Ticket URL: <https://svn.boost.org/trac10/ticket/13481#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2018-04-04 07:01:20 UTC