Boost C++ Libraries: Ticket #8650: Segmentation fault on x86 Linux with SSE2 intrinsics https://svn.boost.org/trac10/ticket/8650 <p> 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: </p> <blockquote> <p> leal -0x8(%eax), %edx /* reserve space for the last frame on context stack; (ESP - 0x4) % 16 == 0 */ </p> </blockquote> <ul><li>apparently pasted from x64 version. </li></ul><p> Changing to: leal -0x14(%eax), %edx fixed the problem for me. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8650 Trac 1.4.3 anonymous Tue, 04 Jun 2013 17:38:21 GMT attachment set https://svn.boost.org/trac10/ticket/8650 https://svn.boost.org/trac10/ticket/8650 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">echosse.cpp</span> </li> </ul> Ticket olli Sat, 17 Aug 2013 16:02:51 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/8650#comment:1 https://svn.boost.org/trac10/ticket/8650#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket