Opened 6 years ago

#12608 new Bugs

boost::polygon crashing on get function after substruction operaion

Reported by: shroman@… Owned by: Lucanus Simonson
Milestone: To Be Determined Component: polygon
Version: Boost 1.58.0 Severity: Problem
Keywords: Cc:

Description

I have one polygon set that was built from one polygon and I'm substracting other polygon set built from 17 polygons. assign operation passed successfully but then library is crashing on get operation when I'm trying to get vector with polygons with holes. Stackdump:

...:polygon::polygon_arbitrary_formation<long double>::active_tail_arbitrary*> >::_M_insert<boost::polygon::polygon_arbitrary_formation<long double>::active_tail_arbitrary* const&>, FP=7fffffff5d30 ...n::polygon_arbitrary_formation<long double>::active_tail_arbitrary*,std::allocator<boost::polygon::polygon_arbitrary_formation<long double>::active_tail_arbitrary*> >::push_back, FP=7fffffff5d50 boost::polygon::polygon_arbitrary_formation<long double>::active_tail_arbitrary::addHole, FP=7fffffff5d70 ...e>::vertex_half_edge*,std::vector<boost::polygon::scanline_base<long double>::vertex_half_edge,std::allocator<boost::polygon::scanline_base<long double>::vertex_half_edge> > > >, FP=7fffffff6440 ...e>::vertex_half_edge*,std::vector<boost::polygon::scanline_base<long double>::vertex_half_edge,std::allocator<boost::polygon::scanline_base<long double>::vertex_half_edge> > > >, FP=7fffffff64a0 ...::vector<boost::polygon::polygon_with_holes_data<long double>,std::allocator<boost::polygon::polygon_with_holes_data<long double> > >,boost::polygon::polygon_with_holes_concept>, FP=7fffffff6640 ...on_set_data<long double>::get_dispatch<std::vector<boost::polygon::polygon_with_holes_data<long double>,std::allocator<boost::polygon::polygon_with_holes_data<long double> > > >, FP=7fffffff6670 ...on::polygon_set_data<long double>::get<std::vector<boost::polygon::polygon_with_holes_data<long double>,std::allocator<boost::polygon::polygon_with_holes_data<long double> > > >, FP=7fffffff66a0 main, FP=7fffffffb9a0

Reproduction code is attached Thanks, Roman

Attachments (1)

test.cpp (22.6 KB ) - added by shroman@… 6 years ago.
Reproduction code

Download all attachments as: .zip

Change History (1)

by shroman@…, 6 years ago

Attachment: test.cpp added

Reproduction code

Note: See TracTickets for help on using tickets.