Boost logo

Boost :

From: Paolo Carlini (pcarlini_at_[hidden])
Date: 2002-10-31 03:33:31


Hi and sorry for reposting,

I'm writing to report about some problems I'm seeing with this test, see
also PR libstdc++/6718 in the Gcc data base. When compiled with gcc-3.2,
at run time:

paolo:~/Programming/c++/boost_1_29_0/libs/random> a.out
Confidence level: 0.99; 1-alpha = 0.01; chi_square(19, 36.191) = 0.99
Running tests on minstd_rand
KS: 4750* [0] 9500* [0] equidistribution: a.out:
statistic_tests.hpp:571: void generic_counter<RandomA
ccessContainer>::operator()(int) [with RandomAccessContainer =
std::vector<int, std::allocator<int> >]
: Assertion `static_cast<unsigned int>(i) < container.size()' failed.
Abort

According to the analysis of Nathan Sidwell and Gabriel Dos Reis this is
due to a missing workaround for the currently non conforming
libstdc++-v3 <limits> headers.

What is really puzzling is that v2 (i.e., 2.95.x) worked much better,
that is in the same way of current gcc-3.3 prerelease (in the 3.3 branch
the limits header has been much improved):

paolo:~/Programming/c++/boost_1_29_0/libs/random> a.out
Confidence level: 0.99; 1-alpha = 0.01; chi_square(19, 36.191) = 0.99
Running tests on minstd_rand
KS: 4750* [0] 9500* [0] equidistribution: 10.8 20.4 2D: 17.36 33.12
runs: up: 4750* [0] 9500* [0] down: 4750* [0] 9500* [0]
gaps: 4750* [0] 9500* [0]
poker: 20.08 19.92
coupon collector: 15.6 13.2
permutation: 4750* [0] 9500* [0]
maximum-of-t: 15.44 12.32
birthday spacing: a.out: statistic_tests.hpp:371: void
birthday_spacing_experiment::run<boost::uniform_int<boost::random::linear_congruential<int,48271,0,2147483647,399268537>,int>,
generic_counter<vector<int,allocator<int> > >

>>(boost::uniform_int<boost::random::linear_congruential<int,48271,0,2147483647,399268537>,int>,

generic_counter<vector<int,allocator<int> > > &, int) const: Assertion
`f.max() == static_cast<result_type>(m-1)' failed.
Abort

Are these run-time problems known?

Thanks for any feedback,
Paolo.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk