Open lrineau opened 6 years ago
I can't reproduce it using g++-7 on Debian (but the provided version is 7.2.0-8, not 7.2.1, that might be the reason why).
I can reproduce the issue on my Fedora.
On my Fedora 26, I can reproduce, on the program sdg-count-sites
with:
-O3 -CGAL_DEBUG
, or-O3
but not with
-O2
, or-O2 -DCGAL_NDEBUG
.I have also tried with:
-O3 -fsanitize=address
, and-O3 -fsanitize=address -DCGAL_NDEBUG
and in both case the program compiles and runs fine.
I do not know how to debug that code. I give up for the moment.
Do you remember where did you set the seed in the code ?
Incidentally (@maxGimeno), the printing of the seeds at the start of the program output seems gone from some packages, see for example: https://cgal.geometryfactory.com/CGAL/testsuite/CGAL-5.1-Ic-53/Segment_Delaunay_graph_2_Examples/TestReport_lrineau_Fedora-Release.gz. Is that normal?
Incidentally (@maxGimeno), the printing of the seeds at the start of the program output seems gone from some packages, see for example: cgal.geometryfactory.com/CGAL/testsuite/CGAL-5.1-Ic-53/Segment_Delaunay_graph_2_Examples/TestReport_lrineau_Fedora-Release.gz. Is that normal?
Actually, the printing of the seed seems to be removed when CGAL_HEADER_ONLY
is defined. Now that it is the default, since CGAL-5.0, only the rare platforms with CGAL_NO_HEADER_ONLY
will display the seed. See:
https://github.com/CGAL/cgal/blob/eb9b8e6c52c2ccaace56e977f7e43a6702a6b382/Random_numbers/include/CGAL/Random.h#L233-L242
I am wondering if the PR #6265 solves this issue.
Issue Details
A lot of test and examples of Sdg_2 have runtime errors, in the recent Fedora testsuite, with g++-7.2.1:
https://cgal.geometryfactory.com/CGAL/testsuite/CGAL-4.12-I-54/Segment_Delaunay_graph_2_Examples/TestReport_lrineau_Fedora-Release.gz
Environment
master
, cd085f88806f7524f080869227a6c4738fbb9eef