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@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@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@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@entry=1, 
    fmt=fmt@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@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
diff -Nru coinor-osi-0.106.9/debian/changelog coinor-osi-0.106.9/debian/changelog
--- coinor-osi-0.106.9/debian/changelog	2014-09-04 13:54:26.000000000 +0200
+++ coinor-osi-0.106.9/debian/changelog	2015-08-24 11:43:49.000000000 +0200
@@ -1,3 +1,10 @@
+coinor-osi (0.106.9-2) unstable; urgency=medium
+
+  * libstdc++6 transtion: rename coinor-libosi1 to coinor-libosi1v5
+    (closes: #796715)
+
+ -- Rene Engelhard <r...@debian.org>  Mon, 24 Aug 2015 11:42:10 +0200
+
 coinor-osi (0.106.9-1) unstable; urgency=low
 
   * New upstream version.
diff -Nru coinor-osi-0.106.9/debian/coinor-libosi1.install coinor-osi-0.106.9/debian/coinor-libosi1.install
--- coinor-osi-0.106.9/debian/coinor-libosi1.install	2013-09-18 09:45:42.000000000 +0200
+++ coinor-osi-0.106.9/debian/coinor-libosi1.install	1970-01-01 01:00:00.000000000 +0100
@@ -1 +0,0 @@
-debian/tmp/usr/lib/*/lib*.so.*
diff -Nru coinor-osi-0.106.9/debian/coinor-libosi1.lintian-overrides coinor-osi-0.106.9/debian/coinor-libosi1.lintian-overrides
--- coinor-osi-0.106.9/debian/coinor-libosi1.lintian-overrides	2013-09-18 09:45:42.000000000 +0200
+++ coinor-osi-0.106.9/debian/coinor-libosi1.lintian-overrides	1970-01-01 01:00:00.000000000 +0100
@@ -1 +0,0 @@
-coinor-libosi1: package-name-doesnt-match-sonames libOsi1 libOsiCommonTests1
diff -Nru coinor-osi-0.106.9/debian/coinor-libosi1v5.install coinor-osi-0.106.9/debian/coinor-libosi1v5.install
--- coinor-osi-0.106.9/debian/coinor-libosi1v5.install	1970-01-01 01:00:00.000000000 +0100
+++ coinor-osi-0.106.9/debian/coinor-libosi1v5.install	2013-09-18 09:45:42.000000000 +0200
@@ -0,0 +1 @@
+debian/tmp/usr/lib/*/lib*.so.*
diff -Nru coinor-osi-0.106.9/debian/coinor-libosi1v5.lintian-overrides coinor-osi-0.106.9/debian/coinor-libosi1v5.lintian-overrides
--- coinor-osi-0.106.9/debian/coinor-libosi1v5.lintian-overrides	1970-01-01 01:00:00.000000000 +0100
+++ coinor-osi-0.106.9/debian/coinor-libosi1v5.lintian-overrides	2013-09-18 09:45:42.000000000 +0200
@@ -0,0 +1 @@
+coinor-libosi1: package-name-doesnt-match-sonames libOsi1 libOsiCommonTests1
diff -Nru coinor-osi-0.106.9/debian/control coinor-osi-0.106.9/debian/control
--- coinor-osi-0.106.9/debian/control	2014-09-04 13:54:26.000000000 +0200
+++ coinor-osi-0.106.9/debian/control	2015-08-24 11:42:58.000000000 +0200
@@ -10,9 +10,10 @@
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/coinor-osi.git
 Homepage: https://projects.coin-or.org/Osi
 
-Package: coinor-libosi1
+Package: coinor-libosi1v5
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}
+Conflicts: coinor-libosi1
 Description: COIN-OR Open Solver Interface
  Osi (Open Solver Interface) provides an abstract C++ base class to a generic
  linear programming (LP) solver, along with derived classes for specific
@@ -29,7 +30,7 @@
 Package: coinor-libosi-dev
 Section: libdevel
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, coinor-libosi1 (= ${binary:Version})
+Depends: ${shlibs:Depends}, ${misc:Depends}, coinor-libosi1v5 (= ${binary:Version})
 Description: COIN-OR Open Solver Interface (developer files)
  Osi (Open Solver Interface) provides an abstract C++ base class to a generic
  linear programming (LP) solver, along with derived classes for specific
@@ -60,7 +61,7 @@
 Package: coinor-libosi1-dbg
 Section: debug
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, coinor-libosi1 (= ${binary:Version})
+Depends: ${shlibs:Depends}, ${misc:Depends}, coinor-libosi1v5 (= ${binary:Version})
 Description: COIN-OR Open Solver Interface (debug symbols)
  Osi (Open Solver Interface) provides an abstract C++ base class to a generic
  linear programming (LP) solver, along with derived classes for specific
-- 
debian-science-maintainers mailing list
debian-science-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers

Reply via email to