[Boost-bugs] [Boost C++ Libraries] #12948: Unexpected snprintf result is on Android ARM

Subject: [Boost-bugs] [Boost C++ Libraries] #12948: Unexpected snprintf result is on Android ARM
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-04-04 19:54:06


#12948: Unexpected snprintf result is on Android ARM
-----------------------------------+---------------------
 Reporter: Lev Sch <zorechfan@…> | Owner: olli
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: context
  Version: Boost 1.64.0 | Severity: Problem
 Keywords: |
-----------------------------------+---------------------
 I observe strange results from snprintf function: the function returns
 "0x34567890E20242C1" instead 0x0BCDEF1234567890. It "shifts" number!

 notes:
 1. it is reproduced on boost_1_63_0 & boost_1_64_0_b2.
 2. is not reproduced on boost_1_62_0
 3. device: Android Marshmallow arm64-v8a
 4. android-ndk-r14-windows-x86_64 is used (by Android Studio). "windows-
 x86_64" is architecture an application is build on
 5. test executable architecture is armeabi-v7a

 Used compiler flags:

 {{{
     -fexceptions
     -std=c++14
     -DBOOST_NO_TYPEID
     -DBOOST_EXECUTION_CONTEXT=1
     -fno-rtti
 }}}


 Output:

 {{{
 D/boostTest: void showBuildType() 58 debug build
 D/boostTest: void boostContextTest2() 65
 D/boostTest: void boostContextTest2() 67 calling WITHOUT fiber
 D/boostTest: void callsnprintf() 36
 D/boostTest: result 18 0x0BCDEF1234567890
 D/boostTest: void callsnprintf() 38
 D/boostTest: void boostContextTest2() 71 calling WITH fiber
 D/boostTest: void FiberProc2(void *) 44
 D/boostTest: void callsnprintf() 36
 D/boostTest: result 18 0x34567890E202434A
 D/boostTest: void ensureFailed() 10 ENSURE HAS FAILED
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12948>
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-04-04 19:57:48 UTC