Bug#796715: coinor-osi: diff for gcc5 transition; fails the tests though

Rene Engelhard rene at debian.org
Tue Aug 25 09:33:09 UTC 2015


Control: tags 796715 + patch

Dear maintainer,

Hi,

I looked at this one given it's a r-dep of coinmp and thus other coin-* stuff,
which in turn is one of LibreOffice Calc :) and prepared the following patch.

Unfortunately, this then fails its tests.
(I guess that's why you tagged the bug help? There's no explanation, so..)

Log:

creating unitTest
./unitTest -mpsDir=`echo /usr/share/coin/Data/Sample` 
Testing OsiRowCut with OsiTestSolverInterface
*** Error in `/home/rene/coinor-osi-0.106.9/test/.libs/lt-unitTest': free(): invalid pointer: 0x00007f23c64c84f0 ***
Coin0001I At line 29 NAME          EXAMPLE
Coin0001I At line 30 ROWS
Coin0001I At line 37 COLUMNS
Coin0001I At line 55 RHS
Coin0001I At line 61 RANGES
Coin0001I At line 64 BOUNDS
Coin0001I At line 70 ENDATA
Coin0002I Problem EXAMPLE has 5 rows, 8 columns and 14 elements
Makefile:687: recipe for target 'test' failed
make[2]: *** [test] Aborted
make[2]: Leaving directory '/home/rene/coinor-osi-0.106.9/test'
Makefile:907: recipe for target 'test' failed
make[1]: *** [test] Error 2
make[1]: Leaving directory '/home/rene/coinor-osi-0.106.9'
dh_auto_test: make -j1 test returned exit code 2
debian/rules:21: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
debuild: fatal error at line 1374:
dpkg-buildpackage -rfakeroot -D -us -uc -b failed

After hacking a set -x into ./unitTest I see

+ exec /home/rene/coinor-osi-0.106.9/test/.libs/lt-unitTest -mpsDir=/usr/share/coin/Data/Sample

called so

(sid)rene at frodo:~/coinor-osi-0.106.9/test$ gdb /home/rene/coinor-osi-0.106.9/test/.libs/lt-unitTest
GNU gdb (Debian 7.9.1-1) 7.9.1
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/rene/coinor-osi-0.106.9/test/.libs/lt-unitTest...done.
(gdb) run -mpsDir=/usr/share/coin/Data/Sample
Starting program: /home/rene/coinor-osi-0.106.9/test/.libs/lt-unitTest -mpsDir=/usr/share/coin/Data/Sample
Testing OsiRowCut with OsiTestSolverInterface
Coin0001I At line 29 NAME          EXAMPLE
Coin0001I At line 30 ROWS
Coin0001I At line 37 COLUMNS
Coin0001I At line 55 RHS
Coin0001I At line 61 RANGES
Coin0001I At line 64 BOUNDS
Coin0001I At line 70 ENDATA
Coin0002I Problem EXAMPLE has 5 rows, 8 columns and 14 elements
*** Error in `/home/rene/coinor-osi-0.106.9/test/.libs/lt-unitTest': free(): invalid pointer: 0x00007ffff646e4f0 ***

Program received signal SIGABRT, Aborted.
0x00007ffff5b54107 in __GI_raise (sig=sig at entry=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56	../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  0x00007ffff5b54107 in __GI_raise (sig=sig at entry=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007ffff5b554e8 in __GI_abort () at abort.c:89
#2  0x00007ffff5b92214 in __libc_message (do_abort=do_abort at entry=1, 
    fmt=fmt at entry=0x7ffff5c85000 "*** Error in `%s': %s: 0x%s ***\n")
    at ../sysdeps/posix/libc_fatal.c:175
#3  0x00007ffff5b979ee in malloc_printerr (action=1, 
    str=0x7ffff5c810be "free(): invalid pointer", ptr=<optimized out>)
    at malloc.c:4996
#4  0x00007ffff5b986f6 in _int_free (av=<optimized out>, p=<optimized out>, 
    have_lock=0) at malloc.c:3840
#5  0x000000000041812d in deallocate (this=0x646088, __p=<optimized out>)
    at /usr/include/c++/5/ext/new_allocator.h:110
#6  deallocate (__a=..., __n=<optimized out>, __p=<optimized out>)
    at /usr/include/c++/5/ext/alloc_traits.h:185
#7  _M_destroy (__size=<optimized out>, this=0x646088)
    at /usr/include/c++/5/bits/basic_string.h:185
#8  _M_dispose (this=0x646088) at /usr/include/c++/5/bits/basic_string.h:180
#9  ~basic_string (this=0x646088, __in_chrg=<optimized out>)
    at /usr/include/c++/5/bits/basic_string.h:544
#10 CoinError::~CoinError (this=0x646020, __in_chrg=<optimized out>)
    at /usr/include/coin/CoinError.hpp:142
#11 0x00007ffff646c87f in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#12 0x00007ffff7689627 in CoinPackedVector::gutsOfSetVector(int, int const*, double const*, bool, char const*) ()
   from /usr/lib/x86_64-linux-gnu/libCoinUtils.so.3
#13 0x00007ffff7b816b5 in OsiRowCutUnitTest (baseSiP=baseSiP at entry=
    0x7fffffffe0e0, mpsDir="/usr/share/coin/Data/Sample/")
    at OsiRowCutTest.cpp:270
#14 0x0000000000407009 in main (argc=<optimized out>, argv=0x7fffffffe368)
    at unitTest.cpp:177
(gdb) 

No idea what that means, maybe it needs other COIN stuff also be rebuilt
first?

Regards,

Rene
-------------- next part --------------
A non-text attachment was scrubbed...
Name: coinor-osi-0.106.9-2-nmu.diff
Type: text/x-diff
Size: 3710 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20150825/ff598d6e/attachment.diff>


More information about the debian-science-maintainers mailing list