Issue 60480 - dbaccess: STL error: Iterators used in expression are from different owners
Summary: dbaccess: STL error: Iterators used in expression are from different owners
Status: CLOSED FIXED
Alias: None
Product: Base
Classification: Application
Component: code (show other issues)
Version: 680m150
Hardware: All All
: P3 Trivial (vote)
Target Milestone: OOo 2.0.2
Assignee: marc.neumann
QA Contact: issues@dba
URL:
Keywords:
: 60443 (view as issue list)
Depends on:
Blocks: 60482
  Show dependency tree
 
Reported: 2006-01-13 11:29 UTC by rt
Modified: 2006-05-31 14:29 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description rt 2006-01-13 11:29:43 UTC
With debug stl (as activated in SRC680 m150 for non product builds) smoketest
crashes in checking database funcionality. Error message:
../stlport/stl/debug/_debug.c(465): STL error: Iterators used in expression are
from different owners

First stack:
#0  0x42322861 in kill () from /lib/libc.so.6
#1  0x420c0acc in pthread_kill () from /lib/libpthread.so.0
#2  0x420c0fd6 in raise () from /lib/libpthread.so.0
#3  0x42323c81 in abort () from /lib/libc.so.6
#4  0x42142841 in _STLD::__stl_debug_engine<bool>::_Terminate () from
/tmp/rt/StarOffice/opt/staroffice8/program/libstlport_gcc_stldebug.so
#5  0x4214240d in _STLD::__stl_debug_engine<bool>::_Assert () from
/tmp/rt/StarOffice/opt/staroffice8/program/libstlport_gcc_stldebug.so
#6  0x47516044 in
_STLD::operator==<_STLD::__vector<vos::ORef<connectivity::ORowVector<connectivity::ORowSetValue>
>,
_STLD::allocator<vos::ORef<connectivity::ORowVector<connectivity::ORowSetValue>
> > > > (__x=@0x484c17b4, __y=@0xbfff981c) at _iterator.h:306
#7  0x47515cf1 in dbaccess::ORowSetCacheIterator::isNull (this=0x48a479a0)
    at
/home/rt94443/emptydir/SRC680/dbaccess/source/core/api/RowSetCacheIterator.cxx:125
#8  0x47545ecb in dbaccess::ORowSetBase::firePropertyChange (this=0x48a478f8,
_rOldRow=@0xbfff992c)
    at
/net/jumbo2.germany/ws1/SRC680/src/dbaccess/source/core/api/RowSetBase.cxx:1156
#9  0x4751f628 in dbaccess::ORowSet::moveToInsertRow (this=0x48a478a0)
    at /home/rt94443/emptydir/SRC680/dbaccess/source/core/api/RowSet.cxx:1301


Following occurences are at
   dbaccess/source/core/api/RowSetCacheIterator.cxx:108
-> dbaccess/source/core/api/CRowSetDataColumn.cxx:240

   dbaccess/source/core/api/RowSetCacheIterator.cxx:115
-> dbaccess/source/core/api/CRowSetDataColumn.cxx:248

   dbaccess/source/core/api/RowSetCacheIterator.cxx:115
-> dbaccess/source/core/api/RowSet.cxx:2503

   dbaccess/source/core/api/RowSetCache.cxx:1580

   dbaccess/source/core/api/RowSetCacheIterator.cxx:110
-> dbaccess/source/core/api/RowSet.cxx:1362

and there are probably more.
Comment 1 ocke.janssen 2006-01-16 13:48:49 UTC
Fixed in cws stlusagefix01
Comment 2 jens-heiner.rechtien 2006-01-16 17:00:06 UTC
Found another one during smoketest on linux "non-product": 
RowSetCache line 1408:

if ( aCacheIter->second.aIterator != m_pMatrix->end() &&
aCacheIter->second.aIterator != m_aInsertRow && !m_bInserted && !m_bModified)
{
    ....
}

The first term aCacheIter->second.aIterator != m_pMatrix->end() causes another 
../stlport/stl/debug/_debug.c(465): STL error: Iterators used in expression are
from different owners assertion.

Comment 3 ocke.janssen 2006-01-17 09:56:22 UTC
Fixed
Comment 4 jens-heiner.rechtien 2006-01-18 15:48:10 UTC
.

re-open issue and reassign to msc@openoffice.org
Comment 5 jens-heiner.rechtien 2006-01-18 15:48:20 UTC
reassign to msc@openoffice.org
Comment 6 jens-heiner.rechtien 2006-01-18 15:48:29 UTC
reset resolution to FIXED
Comment 7 Frank Schönheit 2006-01-19 09:32:47 UTC
*** Issue 60443 has been marked as a duplicate of this issue. ***
Comment 8 marc.neumann 2006-01-24 08:39:08 UTC
verified in cws stlusagefix01
Comment 9 jens-heiner.rechtien 2006-02-03 17:46:43 UTC
closing