Date: Sat, 10 Aug 2002 18:06:21 +0200 (CEST) From: Martin Blapp <mb@imp.ch> To: "Kevin B. Hendricks" <kevin.hendricks@sympatico.ca> Cc: <dev@porting.openoffice.org>, <openoffice@FreeBSD.ORG> Subject: Re: [porting-dev] Re: Crash with Test-Document in the second run. Memory allocation problem Message-ID: <20020810180153.H92422-100000@levais.imp.ch> In-Reply-To: <200208101152.29839.kevin.hendricks@sympatico.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, It looks for me like a bug in the history. > For any OUString dump the "buffer" using x/20x and you can look at the > second byte of every short (uniocode char) to see what the ascii code for > that string would be (just ignore the the high byte zeros from the > unicode). (gdb) frame 1 #1 0x285f7889 in rtl_uString_assign (ppThis=0x86cc894, pStr=0x2b824750) at strtmpl.c:1370 1370 IMPL_RTL_AQUIRE( pStr ); (gdb) x/20x ppThis->buffer 0x8390a48: 0x00740053 0x00720061 0x00720057 0x00740069 0x8390a58: 0x00720065 0x00350020 0x0030002e 0x00650000 0x8390a68: 0x005f0072 0x00300035 0x00000000 0x00000000 0x8390a78: 0x00000000 0x00000000 0x00000005 0x0000000e 0x8390a88: 0x00740053 0x00720061 0x00720057 0x00740069 (gdb) x/20x pStr->buffer 0x2b824758 <_ZN4gcc327cppu_unoInterfaceProxy_freeEP19_uno_ExtEnvironmentPv+8>: 0x0000e814 0x815b0000 0x002576c3 0x0c758b00 0x2b824768 <_ZN4gcc327cppu_unoInterfaceProxy_freeEP19_uno_ExtEnvironmentPv+24>: 0x8b10468b 0x76ff0450 0x0470ff14 0x8b3452ff 0x2b824778 <_ZN4gcc327cppu_unoInterfaceProxy_freeEP19_uno_ExtEnvironmentPv+40>: 0x108b1446 0xff240489 0xc4830852 0x1876ff04 0x2b824788 <_ZN4gcc327cppu_unoInterfaceProxy_freeEP19_uno_ExtEnvironmentPv+56>: 0xffb693e8 0x107e8bff 0xe8243c89 0xffffb788 0x2b824798 <_ZN4gcc327cppu_unoInterfaceProxy_freeEP19_uno_ExtEnvironmentPv+72>: 0x8510c483 0x831a75c0 0x7f800cec 0x0574002c Huh ? (gdb) frame 3 #3 0x281239a0 in SvtHistoryOptions::AppendItem(EHistoryType, rtl::OUString const&, rtl::OUString const&, rtl::OUString const&, rtl::OUString const&) (this=0xbfbfd374, eHistory=ePICKLIST, sURL=@0xbfbfd394, sFilter=@0xbfbfd414, sTitle=@0xbfbfd404, sPassword=@0xbfbfd3b4) at /usr/ports/editors/openoffice/work/oo_1.0.1_src/svtools/source/config/historyoptions.cxx:916 916 m_pDataContainer->AppendItem( eHistory, sURL, sFilter, sTitle, sPassword ); (gdb) print * (m_pDataContainer) $5 = {<> = {<No data fields>}, m_aPicklist = {<_Deque_base<IMPL_THistoryItem,_STL::allocator<IMPL_THistoryItem> >> = { _M_start = {<_Deque_iterator_base<IMPL_THistoryItem>> = {_M_cur = 0x86cc790, _M_first = 0x86cc720, _M_last = 0x86cc7a0, _M_node = 0x81d026c}, <No data fields>}, _M_finish = {<_Deque_iterator_base<IMPL_THistoryItem>> = {_M_cur = 0x86cc860, _M_first = 0x86cc820, _M_last = 0x86cc8a0, _M_node = 0x81d0270}, <No data fields>}, _M_map = {<allocator<IMPL_THistoryItem*>> = {<No data fields>}, _M_data = 0x81d0260}, _M_map_size = {<allocator<IMPL_THistoryItem>> = {<No data fields>}, _M_data = 8}}, <No data fields>}, m_nPicklistSize = 4, m_aHistory = {<_Deque_base<IMPL_THistoryItem,_STL::allocator<IMPL_THistoryItem> >> = { _M_start = {<_Deque_iterator_base<IMPL_THistoryItem>> = {_M_cur = 0x81d03a0, _M_first = 0x81d03a0, _M_last = 0x81d0420, _M_node = 0x81d028c}, <No data fields>}, _M_finish = {<_Deque_iterator_base<IMPL_THistoryItem>> = {_M_cur = 0x81d04d0, _M_first = 0x81d04a0, _M_last = 0x81d0520, _M_node = 0x81d0290}, <No data fields>}, _M_map = {<allocator<IMPL_THistoryItem*>> = {<No data fields>}, _M_data = 0x81d0280}, _M_map_size = {<allocator<IMPL_THistoryItem>> = {<No data fields>}, _M_data = 8}}, <No data fields>}, m_nHistorySize = 100, m_aHelpBookmarks = {<_Deque_base<IMPL_THistoryItem,_STL::allocator<IMPL_THistoryItem> >> = { _M_start = {<_Deque_iterator_base<IMPL_THistoryItem>> = {_M_cur = 0x81d0420, _M_first = 0x81d0420, _M_last = 0x81d04a0, _M_node = 0x81d02ac}, <No data fields>}, _M_finish = {<_Deque_iterator_base<IMPL_THistoryItem>> = {_M_cur = 0x81d0420, _M_first = 0x81d0420, _M_last = 0x81d04a0, _M_node = 0x81d02ac}, <No data fields>}, _M_map = {<allocator<IMPL_THistoryItem*>> = {<No data fields>}, _M_data = 0x81d02a0}, _M_map_size = {<allocator<IMPL_THistoryItem>> = {<No data fields>}, _M_data = 8}}, <No data fields>}, m_nHelpBookmarkSize = 10000} Thanks ! Martin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-openoffice" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020810180153.H92422-100000>