Re: [Boost-bugs] [Boost C++ Libraries] #12400: libunwind fails to detect end-of-stack with boost::context

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12400: libunwind fails to detect end-of-stack with boost::context
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-08-25 08:09:25


#12400: libunwind fails to detect end-of-stack with boost::context
--------------------------------------+-------------------------------
  Reporter: mmayorga@… | Owner: olli
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: context
   Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords: libunwind context
--------------------------------------+-------------------------------

Comment (by mmayorga@…):

 A patch that solves the issue is:


 {{{
 Index: boost_1_56_0/libs/context/src/asm/make_x86_64_sysv_elf_gas.S
 ===================================================================
 --- boost_1_56_0.orig/libs/context/src/asm/make_x86_64_sysv_elf_gas.S
 +++ boost_1_56_0/libs/context/src/asm/make_x86_64_sysv_elf_gas.S
 @@ -61,6 +61,9 @@ make_fcontext:
      /* will be entered after context-function returns */
      movq %rcx, 0x40(%rax)

 + /* BP 1st frame to be 0 */
 + movq $0, 0x30(%rax)
 +
      ret /* return pointer to context-data */

  finish:

 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12400#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 : 2017-02-16 18:50:20 UTC