[Boost-bugs] [Boost C++ Libraries] #9930: Copy-constructed mt19937_64 segfaults

Subject: [Boost-bugs] [Boost C++ Libraries] #9930: Copy-constructed mt19937_64 segfaults
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-04-19 21:32:50

#9930: Copy-constructed mt19937_64 segfaults
 Reporter: Tim Cooijmans <t.cooijmans@…> | Owner: no-maintainer
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: random
  Version: Boost 1.55.0 | Severity: Problem
 Keywords: |
 The copy constructor for mt19937_64 seems to leave the copy in a corrupt
 state. Trying to generate random numbers from the copy consistently
 results in a segmentation fault.

 The attached file exhibits the problem:

 $ g++ -std=c++11 -g -O0 main.cpp && ./a.out
 $ g++ -std=c++11 -g -O0 -DUSE_64BIT main.cpp && ./a.out
 Segmentation fault (core dumped)

 The version of g++ used is "g++-4.8 (Ubuntu 4.8.1-2ubuntu1~12.04) 4.8.1".

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