[Cgl-tickets] [COIN-OR Cut Generator Library] #11: trunk
CglValidator::fillRejectionReasons dumps core,
Solaris / Studio / optimised build
COIN-OR Cut Generator Library
coin-trac at coin-or.org
Mon Apr 2 14:08:26 EDT 2007
#11: trunk CglValidator::fillRejectionReasons dumps core, Solaris / Studio /
optimised build
----------------------+-----------------------------------------------------
Reporter: lou | Owner: pbonami
Type: defect | Status: new
Priority: major | Milestone:
Component: CglLandP | Version: trunk
Keywords: |
----------------------+-----------------------------------------------------
Trunk CglValidator::fillRejectionReasons triggers a core dump on Solaris
10 using the Studio compilers (Sun C++ 5.8 Patch 121017-04 2006/08/02) and
an optimised build. Reserving space for the vector fixes the problem:
{{{
void
CglValidator::fillRejectionReasons()
{
rejections_.reserve(DummyEnd) ;
rejections_[NoneAccepted] = "Cut was accepted";
. . .
}}}
I suspect it's just luck that the debug build doesn't core dump. The
Studio compilers seem to expect explicit reservation of space before use
of an index to access the vector.
--
Ticket URL: <https://projects.coin-or.org/Cgl/ticket/11>
COIN-OR Cut Generator Library <http://projects.coin-or.org/Cgl>
A library of mixed-integer programming cutting plane generators.
More information about the Cgl-tickets
mailing list