mdds broken

Stephan Bergmann sbergman at redhat.com
Tue May 21 02:17:11 PDT 2013


Building recent master, at least on Fedora 18 with --enable-dbgutil, 
fails in various tests due to problems in mdds headers, likely since 
<http://cgit.freedesktop.org/libreoffice/core/commit/?id=9785579ed0ec8e2e3e826c7e4cbbcaf51f8cb0d4> 
"Update mdds to 0.8.1."

I came up with the attached quick-hack workaround for the first problem 
encountered, but only to run into the next problem below in 
JunitTest_sc_unoapi soon after, so gave up.

Kohei, please fix these problems.

Stephan


> /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/debug/safe_iterator.h:493:
>     error: attempt to compare iterators from different sequences.
>
> Objects involved in the operation:
> iterator "lhs" @ 0x0x2aaad88af368 {
> type = N11__gnu_debug14_Safe_iteratorIN9__gnu_cxx17__normal_iteratorIPPN4mdds17multi_type_vectorINS3_3mtv18custom_block_func1ILi51ENS5_21default_element_blockILi51EN2sc12CellTextAttrEEEEEE5blockENSt9__cxx19986vectorISE_SaISE_EEEEENSt7__debug6vectorISE_SI_EEEE (mutable iterator);
>   state = past-the-end;
>   references sequence with type `NSt7__debug6vectorIPN4mdds17multi_type_vectorINS1_3mtv18custom_block_func1ILi51ENS3_21default_element_blockILi51EN2sc12CellTextAttrEEEEEE5blockESaISC_EEE' @ 0x0x2aaad88af368
> }
> iterator "rhs" @ 0x0x2aaacca5b3b0 {
> type = N11__gnu_debug14_Safe_iteratorIN9__gnu_cxx17__normal_iteratorIPKPN4mdds17multi_type_vectorINS3_3mtv18custom_block_func1ILi51ENS5_21default_element_blockILi51EN2sc12CellTextAttrEEEEEE5blockENSt9__cxx19986vectorISE_SaISE_EEEEENSt7__debug6vectorISE_SJ_EEEE (constant iterator);
>   state = past-the-end;
>   references sequence with type `NSt7__debug6vectorIPN4mdds17multi_type_vectorINS1_3mtv18custom_block_func1ILi51ENS3_21default_element_blockILi51EN2sc12CellTextAttrEEEEEE5blockESaISC_EEE' @ 0x0x2aaacca5b3b0
> }

> #13 <signal handler called>
> #14 0x0000003c80635ba5 in __GI_raise (sig=sig at entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:63
> #15 0x0000003c80637358 in __GI_abort () at abort.c:90
> #16 0x0000003c82eb193d in __gnu_debug::_Error_formatter::_M_error (this=0x2aaacca5b120) at ../../../../../libstdc++-v3/src/c++11/debug.cc:777
> #17 0x00002aaacd327a87 in __gnu_debug::operator==<__gnu_cxx::__normal_iterator<mdds::multi_type_vector<mdds::mtv::custom_block_func1<51, mdds::mtv::default_element_block<51, sc::CellTextAttr> > >::block**, std::__cxx1998::vector<mdds::multi_type_vector<mdds::mtv::custom_block_func1<51, mdds::mtv::default_element_block<51, sc::CellTextAttr> > >::block*, std::allocator<mdds::multi_type_vector<mdds::mtv::custom_block_func1<51, mdds::mtv::default_element_block<51, sc::CellTextAttr> > >::block*> > >, __gnu_cxx::__normal_iterator<mdds::multi_type_vector<mdds::mtv::custom_block_func1<51, mdds::mtv::default_element_block<51, sc::CellTextAttr> > >::block* const*, std::__cxx1998::vector<mdds::multi_type_vector<mdds::mtv::custom_block_func1<51, mdds::mtv::default_element_block<51, sc::CellTextAttr> > >::block*, std::allocator<mdds::multi_type_vector<mdds::mtv::custom_block_func1<51, mdds::mtv::default_element_block<51, sc::CellTextAttr> > >::block*> > >, std::__debug::vector<mdds::mu!
 lti_type_v
ector<mdds::mtv::custom_block_func1<51, mdds::mtv::default_element_block<51, sc::CellTextAttr> > >::block*, std::allocator<mdds::multi_type_vector<mdds::mtv::custom_block_func1<51, mdds::mtv::default_element_block<51, sc::CellTextAttr> > >::block*> > > (__lhs=, __rhs=) at /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/debug/safe_iterator.h:490
> #18 0x00002aaacd322697 in mdds::multi_type_vector<mdds::mtv::custom_block_func1<51, mdds::mtv::default_element_block<51, sc::CellTextAttr> > >::get_block_position (this=0x2aaad87abbb0, pos_hint=..., pos=0, start_row=@0x2aaacca5b448: 0, block_index=@0x2aaacca5b440: 0) at workdir/unxlngx6/UnpackedTarball/mdds/include/mdds/multi_type_vector_def.inl:507
> #19 0x00002aaacd31da97 in mdds::multi_type_vector<mdds::mtv::custom_block_func1<51, mdds::mtv::default_element_block<51, sc::CellTextAttr> > >::set<sc::CellTextAttr> (this=0x2aaad87abbb0, pos_hint=..., pos=0, value=...) at workdir/unxlngx6/UnpackedTarball/mdds/include/mdds/multi_type_vector_def.inl:209
> #20 0x00002aaacd317da7 in ScColumn::SetCell (this=0x2aaad87abbb0, rBlockPos=..., nRow=0, pNewCell=0x2aaafa5c91d0) at sc/source/core/data/column2.cxx:1508
> #21 0x00002aaacd333aa0 in ScColumn::Insert (this=0x2aaad87abbb0, rBlockPos=..., nRow=0, pNewCell=0x2aaafa5c91d0) at sc/source/core/data/column3.cxx:83
> #22 0x00002aaacd29bc02 in ScColumn::CopyToColumn (this=0x2aab64078cf0, rCxt=..., nRow1=0, nRow2=3, nFlags=255, bMarked=false, rColumn=..., pMarkData=0x2aaacca5c010, bAsLink=false) at sc/source/core/data/column.cxx:1466
> #23 0x00002aaacd29b6db in ScColumn::CopyToColumn (this=0x2aab64078cf0, rCxt=..., nRow1=0, nRow2=1048575, nFlags=255, bMarked=true, rColumn=..., pMarkData=0x2aaacca5c010, bAsLink=false) at sc/source/core/data/column.cxx:1386
> #24 0x00002aaacd5a8ec8 in ScTable::CopyToTable (this=0x2aab64078a60, rCxt=..., nCol1=0, nRow1=0, nCol2=1023, nRow2=1048575, nFlags=255, bMarked=true, pDestTab=0x2aaad87ab920, pMarkData=0x2aaacca5c010, bAsLink=false, bColRowFlags=true) at sc/source/core/data/table2.cxx:1035
> #25 0x00002aaacd38df9e in ScDocument::CopyTab (this=0x2aab6404a098, nOldPos=0, nNewPos=1, pOnlyMarked=0x2aaacca5c010) at sc/source/core/data/documen2.cxx:862
> #26 0x00002aaacda5c4a4 in ScDocShell::MakeScenario (this=0x2aab64049fa0, nTab=0, rName="ScScenarios", rComment="Range", rColor=rgb(192, 192, 192), nFlags=78, rMark=..., bRecord=1 '\001') at sc/source/ui/docshell/docsh5.cxx:768
> #27 0x00002aaacdc9b003 in ScScenariosObj::addNewByName (this=0x2aab13185a98, aName="ScScenarios", aRanges=uno::Sequence of length 1 = {...}, aComment="Range") at sc/source/ui/unoobj/docuno.cxx:3627
> #28 0x00002aaabca937e6 in gcc3::callVirtualMethod(void*, unsigned int, void*, _typelib_TypeDescriptionReference*, bool, unsigned long*, unsigned int, unsigned long*, unsigned int, double*, unsigned int) () from solver/unxlngx6/installation/opt/ure/lib/libgcc3_uno.so
> #29 0x00002aaabca926c0 in cpp_call (pThis=0x2aab640fc740, aVtableSlot=..., pReturnTypeRef=0x2521330, nParams=3, pParams=0x2aaad4018e50, pUnoReturn=0x0, pUnoArgs=0x2aaad8848da0, ppUnoExc=0x2aaacca5c6a8) at bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx:237
> #30 0x00002aaabca93203 in bridges::cpp_uno::shared::unoInterfaceProxyDispatch (pUnoI=0x2aab640fc740, pMemberDescr=0x2aaad400e410, pReturn=0x0, pArgs=0x2aaad8848da0, ppException=0x2aaacca5c6a8) at bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx:430
> #31 0x00002aaabe17215f in binaryurp::IncomingRequest::execute_throw (this=0x2aaad4019680, returnValue=0x2aaacca5cb10, outArguments=0x2aaacca5ca80) at binaryurp/source/incomingrequest.cxx:245
> #32 0x00002aaabe17102f in binaryurp::IncomingRequest::execute (this=0x2aaad4019680) at binaryurp/source/incomingrequest.cxx:74
> #33 0x00002aaabe18c3f1 in binaryurp::(anonymous namespace)::request (pThreadSpecificData=0x2aaad4019680) at binaryurp/source/reader.cxx:87
> #34 0x00002aaaab53e286 in cppu_threadpool::JobQueue::enter (this=0x2aaad4017c80, nDisposeId=46913189681136, bReturnWhenNoJob=1 '\001') at cppu/source/threadpool/jobqueue.cxx:115
> #35 0x00002aaaab541b7d in cppu_threadpool::ORequestThread::run (this=0x2aaad40197f0) at cppu/source/threadpool/thread.cxx:172
> #36 0x00002aaaab542363 in osl::threadFunc (param=0x2aaad4019800) at include/osl/thread.hxx:187
> #37 0x00002aaaaaac85fb in osl_thread_start_Impl (pData=0x2aaad40055e0) at sal/osl/unx/thread.c:251
> #38 0x0000003c80a07d15 in start_thread (arg=0x2aaacca5d700) at pthread_create.c:308
> #39 0x0000003c806f246d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:114
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Work-around-mdds-singular-iterator-problem.patch
Type: text/x-patch
Size: 18455 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20130521/7638dc3e/attachment.bin>


More information about the LibreOffice mailing list