Re: [Boost-bugs] [Boost C++ Libraries] #12592: Wrongly aligned bottom stack address

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12592: Wrongly aligned bottom stack address
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-11-07 19:48:25


#12592: Wrongly aligned bottom stack address
-------------------------------------------------+-------------------------
  Reporter: Christian Maaser | Owner: olli
  <runningwithscythes@…> | Status: new
      Type: Bugs | Component: context
 Milestone: To Be Determined | Severity: Problem
   Version: Boost 1.62.0 | Keywords:
Resolution: |
-------------------------------------------------+-------------------------

Comment (by Christian Maaser <runningwithscythes@…>):

 Regarding {{{_chkstk}}} see this (stupid) simple code:

 {{{
 #include <array>
 #include <cstring>

 int main(int argc, char* argv[])
 {
   std::array<char, 8192> bar;
   strcpy(bar.data(), argv[0]);
   return 0;
 }
 }}}

 results in

 {{{
 int main(int argc, char* argv[])
 {
 00007FF6323C2C10 B8 18 20 00 00 mov eax,2018h
 00007FF6323C2C15 E8 76 EE 01 00 call __chkstk
 (07FF6323E1A90h)
 ...
 }}}

 The compiler does not generate this call when using a smaller array (like
 1024 bytes). Thus it should be easy to reproduce the issue using an array
 large enough. I can provide you a minimal test case by tomorrow if you
 like.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12592#comment:3>
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