[Cbc] C examples fails

ycollette.nospam at free.fr ycollette.nospam at free.fr
Mon Jan 22 05:25:23 EST 2018


Hello,

Since some recent commits on the master, some examples doesn't work anymore:
- decomp2
- decomp3
- decompose

Here is the gdb trace for decomp2:

The command line:

decomp2 Cbc/Data/Sample/afiro.mps

The trace:

Coin0001I At line 1 NAME          AFIRO
Coin0001I At line 2 ROWS
Coin0001I At line 31 COLUMNS
Coin0001I At line 78 RHS
Coin0001I At line 83 ENDATA
Coin0002I Problem AFIRO has 27 rows, 32 columns and 83 elements

Program received signal SIGSEGV, Segmentation fault.
CoinMessageHandler::message (this=0x0, messageNumber=28, normalMessages=...) at /home/crystal/repositories/coin/Cbc/CoinUtils/src/CoinMessageHandler.cpp:621
621       if (messageOut_ != messageBuffer_) {
Missing separate debuginfos, use: dnf debuginfo-install libgcc-7.2.1-2.fc27.x86_64 libstdc++-7.2.1-2.fc27.x86_64
(gdb) where
#0  CoinMessageHandler::message (this=0x0, messageNumber=28, normalMessages=...) at /home/crystal/repositories/coin/Cbc/CoinUtils/src/CoinMessageHandler.cpp:621
#1  0x0000000000590082 in CoinStructuredModel::decompose (this=this at entry=0x7fffffffcd30, coinModel=..., type=type at entry=1, maxBlocks=<optimized out>, maxBlocks at entry=50, starts=starts at entry=0x0)
    at /home/crystal/repositories/coin/Cbc/CoinUtils/src/CoinStructuredModel.cpp:1913
#2  0x00000000005905f1 in CoinStructuredModel::CoinStructuredModel (this=0x7fffffffcd30, fileName=<optimized out>, decomposeType=1, maxBlocks=50) at /home/crystal/repositories/coin/Cbc/CoinUtils/src/CoinStructuredModel.cpp:57
#3  0x000000000043a219 in main (argc=<optimized out>, argv=<optimized out>) at /home/crystal/repositories/coin/Cbc/Clp/examples/decomp2.cpp:25
(gdb) 
#0  CoinMessageHandler::message (this=0x0, messageNumber=28, normalMessages=...) at /home/crystal/repositories/coin/Cbc/CoinUtils/src/CoinMessageHandler.cpp:621
#1  0x0000000000590082 in CoinStructuredModel::decompose (this=this at entry=0x7fffffffcd30, coinModel=..., type=type at entry=1, maxBlocks=<optimized out>, maxBlocks at entry=50, starts=starts at entry=0x0)
    at /home/crystal/repositories/coin/Cbc/CoinUtils/src/CoinStructuredModel.cpp:1913
#2  0x00000000005905f1 in CoinStructuredModel::CoinStructuredModel (this=0x7fffffffcd30, fileName=<optimized out>, decomposeType=1, maxBlocks=50) at /home/crystal/repositories/coin/Cbc/CoinUtils/src/CoinStructuredModel.cpp:57
#3  0x000000000043a219 in main (argc=<optimized out>, argv=<optimized out>) at /home/crystal/repositories/coin/Cbc/Clp/examples/decomp2.cpp:25
(gdb) 

Best regards,

YC


More information about the Cbc mailing list