[Bug 444] New: Resizing of SymmetricMatrix fails for BOOST
| Submitted by Tinne De Laet on Fri, 2007-08-10 07:30. |
For more infomation about this bug, visit <https://svn.fmtc.be/bugzilla/orocos/show_bug.cgi?id=444>
Summary: Resizing of SymmetricMatrix fails for BOOST
Product: BFL
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: wrappers
AssignedTo: bfl [..]
ReportedBy: tinne delaet [..]
CC: bfl [..]
Estimated Hours: 0.0
While extending the matrixwrapper test I noticed that the resizing of
SymmetricMatrix causes some troubles when using BOOST.
The test code I used is:
// SYMMETRICMATRIX SymmetricMatrix Ks(r+2); Ks = v; SymmetricMatrix Ks_resize(r); Ks_resize = v; CPPUNIT_ASSERT_EQUAL(Ks.rows(), r+2); CPPUNIT_ASSERT_EQUAL(Ks.columns(), r+2); Ks.resize(r);
While executing the test for BOOST the following error is returned:
Assertion failed in file /usr/include/boost/numeric/ublas/storage.hpp at line
182:
i < size_

[Bug 444] Resizing of SymmetricMatrix fails for BOOST
For more infomation about this bug, visit <https://svn.fmtc.be/bugzilla/orocos/show_bug.cgi?id=444>
Klaas Gadeyne <klaas gadeyne [..] > changed:
What |Removed |Added -------------------------------------------------------------------------- CC| |klaas gadeyne [..]--- Comment #1 from Klaas Gadeyne <klaas gadeyne [..] > 2007-08-10 11:03:45 ---(In reply to comment #0)
> While extending the matrixwrapper test I noticed that the resizing of
> SymmetricMatrix causes some troubles when using BOOST.
[Bug 444] Resizing of SymmetricMatrix fails for BOOST
On Friday 10 August 2007 11:03:45 Klaas Gadeyne wrote:
> For more infomation about this bug, visit
> <https://svn.fmtc.be/bugzilla/orocos/show_bug.cgi?id=444>
>
> Klaas Gadeyne <klaas gadeyne [..] > changed:
>
> What |Removed |Added
> --------------------------------------------------------------------------
> CC| |klaas gadeyne [..]
>
>
>
> --- Comment #1 from Klaas Gadeyne <klaas gadeyne [..] > 2007-08-10
> 11:03:45 --- (In reply to comment #0)
>
> > While extending the matrixwrapper test I noticed that the resizing of
> > SymmetricMatrix causes some troubles when using BOOST.
> >
> > The test code I used is:
> > // SYMMETRICMATRIX
> > SymmetricMatrix Ks(r+2); Ks = v;
> > SymmetricMatrix Ks_resize(r); Ks_resize = v;
> > CPPUNIT_ASSERT_EQUAL(Ks.rows(), r+2);
> > CPPUNIT_ASSERT_EQUAL(Ks.columns(), r+2);
> > Ks.resize(r);
>
> What is v in this test program (a double variable, or a matrix?)
a double.
> > While executing the test for BOOST the following error is returned:
> >
> > Assertion failed in file /usr/include/boost/numeric/ublas/storage.hpp at
> > line 182:
> > i < size_
> > .E
> >
> > ##Failure Location unknown## : Error
> > Test name: MatrixwrapperTest::testMatrixwrapperValue
> > uncaught exception of type boost::numeric::ublas::bad_index
> > - bad index
> >
> > Failures !!!
> > Run: 1 Failure total: 1 Failures: 0 Errors: 1
> > _
> > (furhtermore ddd is unable to backtrace the problem)
>
> You didn't have a segfault, so you won't get a backtrace. You might
> put a breakpoint in the surroundings of the assertion though.
>
> > This operation is causing no troubles when using LTI.
> >
> > The code of the resizing in matrix_BOOST.cpp is as follows (very similar
> > to resizing of a normal Matrix which is causing no problems):
> > __
> > void
> > MySymmetricMatrix::resize(unsigned int i, bool copy, bool initialize)
> > {
> > BoostSymmetricMatrix & temp = (BoostSymmetricMatrix &) (*this);
> > temp.resize(i, copy);
> > }
> > _
> >
> > Any ideas?
>
> Try stepping down in the resize function?
[Bug 444] Resizing of SymmetricMatrix fails for BOOST
For more infomation about this bug, visit <https://svn.fmtc.be/bugzilla/orocos/show_bug.cgi?id=444>
Tinne De Laet <tinne delaet [..] > changed:
What |Removed |Added -------------------------------------------------------------------------- Status|NEW |ASSIGNED--- Comment #2 from Tinne De Laet <tinne delaet [..] > 2007-08-17 09:25:57 ---It seems to me that this is a bug in boost or a mistake in using boost.
I posted a message on the Boost-users and Boost-ublas mailing list concerning
this problem.
Tinne
Configure bugmail: https://svn.fmtc.be/bugzilla/orocos/userprefs.cgi?tab=email
You are on the CC list for the bug.
You are the assignee for the bug.
___
I hereby promise not to top-post on the
BFL mailing list
BFL [..]
http://lists.mech.kuleuven.be/mailman/listinfo/bfl
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm