Re: [Boost-bugs] [Boost C++ Libraries] #11147: boost serialization terminates with EXC_BAD_ACCESS on Mac OSX 10.10.2

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11147: boost serialization terminates with EXC_BAD_ACCESS on Mac OSX 10.10.2
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-04-24 22:59:09


#11147: boost serialization terminates with EXC_BAD_ACCESS on Mac OSX 10.10.2
-----------------------------------------------+---------------------------
  Reporter: Jason Ramapuram <loderunner88@…> | Owner: ramey
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: serialization
   Version: Boost 1.57.0 | Severity: Problem
Resolution: invalid | Keywords:
-----------------------------------------------+---------------------------
Changes (by ramey):

 * status: new => closed
 * resolution: => invalid

Comment:

 The following example fails in the same way even with the serialization
 code commented out.

 {{{
 #include <random>
 #include <iostream>
 #include <fstream>
 #include <vector>
 //#include <boost/serialization/vector.hpp>
 //#include <boost/archive/text_oarchive.hpp>
 //#include <boost/archive/text_iarchive.hpp>

 #define SZ 10368000

 void generateRandom(float* input, size_t len){
     std::random_device rd;
     std::mt19937 e2(rd());
     std::uniform_real_distribution<> dist(0, 25);

     for(int i = 0; i < len; i++){
       input[i] = dist(e2);
     }
 }

 int main()
 {
   float pRand[SZ];
   generateRandom(pRand, SZ);
   std::vector<float> test(SZ, pRand, pRand + SZ);
   {
     std::ofstream fout("test.dat");
 // boost::archive::text_oarchive oa(fout);
 // oa << test;
   }
   return 0;
 }
 }}}

 So I'm concluding it's not a serialization problem. I'm guessing that adl
 is picking up he wrong constructor for std::vector


 Robert Ramey

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11147#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:18 UTC