Re: [Boost-bugs] [Boost C++ Libraries] #6638: convert_aux fails while intializing global variable

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6638: convert_aux fails while intializing global variable
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-04-24 11:40:59


#6638: convert_aux fails while intializing global variable
-------------------------+-------------------------------------------------
  Reporter: john doe | Owner: bemandawes
  <johndoe> | Status: assigned
      Type: Bugs | Component: filesystem
 Milestone: To Be | Severity: Problem
  Determined | Keywords: filesystem path convert wide/narrow
   Version: Boost | string
  1.59.0 |
Resolution: |
-------------------------+-------------------------------------------------

Comment (by anonymous):

 Hi things got worse with this error. I beleive this worked with 1.63.

 Config:

 boost-1.64.0, vc14, x64, debug, static lib, statically linked runtime

 Error:

 {{{
 Exception thrown: read access violation.

 this->_Ptr->_Facetvec was 0x111011101110111.

 If there is a handler for this exception, the program may be safely
 continued.
 }}}


 Code:

 {{{
 class Alma
 {
 public:
         ~Alma() { std::cout <<
 boost::filesystem::path("c:\\alma.txt").string() << std::endl; }
 };

 static Alma a;

 int main(int argc, char* argv[])
 {
         return 0;
 }
 }}}


 Call stack:

 {{{
 Test.exe!std::locale::_Getfacet(unsigned __int64 _Id) Line 459 C++
 Test.exe!std::use_facet<std::codecvt<wchar_t,char,_Mbstatet> >(const
 std::locale & _Loc) Line 564 C++
 Test.exe!boost::filesystem::path::codecvt() Line 940 C++
 Test.exe!boost::filesystem::path_traits::convert(const char * from, const
 char * from_end,
 std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t>
> & to) Line 981 C++
 Test.exe!boost::filesystem::path_traits::dispatch<std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t>
> >(const
 std::basic_string<char,std::char_traits<char>,std::allocator<char> > & c,
 std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t>
> & to) Line 256 C++
 Test.exe!boost::filesystem::path::path<char [12]>(const char[12] & source,
 void * __formal) Line 144 C++
 Test.exe!Alma::~Alma() Line 88 C++
 [External Code]
 Test.exe!_execute_onexit_table::__l22::<lambda>() Line 198 C++
 Test.exe!__crt_seh_guarded_call<int>::operator()<void <lambda>(void),int
 <lambda>(void) & __ptr64,void <lambda>(void)
>(__acrt_lock_and_call::__l3::void <lambda>(void) && setup,
 _execute_onexit_table::__l22::int <lambda>(void) & action,
 __acrt_lock_and_call::__l4::void <lambda>(void) && cleanup) Line 199
 C++
 Test.exe!__acrt_lock_and_call<int <lambda>(void) >(const __acrt_lock_id
 lock_id, _execute_onexit_table::__l22::int <lambda>(void) && action) Line
 882 C++
 Test.exe!_execute_onexit_table(_onexit_table_t * table) Line 222
 C++
 Test.exe!common_exit(const int return_code, const _crt_exit_cleanup_mode
 cleanup_mode, const _crt_exit_return_mode return_mode) Line 211 C++
 Test.exe!exit(int return_code) Line 283 C++
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6638#comment:8>
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-24 11:45:43 UTC