Subject: [Boost-bugs] [Boost C++ Libraries] #8650: Segmentation fault on x86 Linux with SSE2 intrinsics
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-06-04 17:37:11
#8650: Segmentation fault on x86 Linux with SSE2 intrinsics
---------------------------------------+------------------------------------
Reporter: andrey.zhdanoff@⦠| Owner: olli
Type: Bugs | Status: new
Milestone: To Be Determined | Component: context
Version: Boost 1.53.0 | Severity: Problem
Keywords: |
---------------------------------------+------------------------------------
Modified coroutine/example/echo.cpp by adding function which using SSE2
intrinsic . Program built for x86 is seg-faulting due to miss-aligned
stack. Build with:
g++ echosse.cpp -m32 -o echosse -O3 -g -I ../boost/boost_build/include
/boost-1_53/ -Wl,libboost_context-gcc46-mt-s-1_53.a
GCC version tested: 4.6.2, 4.8.0.
Problem is in make_i386_sysv_elf_gas.S, line:
leal -0x8(%eax), %edx /* reserve space for the last
frame on context stack; (ESP - 0x4) % 16 == 0 */
- apparently pasted from x64 version.
Changing to:
leal -0x14(%eax), %edx
fixed the problem for me.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/8650> 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 : 2017-02-16 18:50:13 UTC