From owner-freebsd-openoffice Sat Aug 10 9:16:59 2002 Delivered-To: freebsd-openoffice@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C072437B401 for ; Sat, 10 Aug 2002 09:16:48 -0700 (PDT) Received: from tomts9-srv.bellnexxia.net (tomts9.bellnexxia.net [209.226.175.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 218E143E42 for ; Sat, 10 Aug 2002 09:16:48 -0700 (PDT) (envelope-from kevin.hendricks@sympatico.ca) Received: from localhost.localdomain ([65.93.133.235]) by tomts9-srv.bellnexxia.net (InterMail vM.5.01.04.19 201-253-122-122-119-20020516) with ESMTP id <20020810161701.LVZG12452.tomts9-srv.bellnexxia.net@localhost.localdomain>; Sat, 10 Aug 2002 12:17:01 -0400 Content-Type: text/plain; charset="iso-8859-1" From: "Kevin B. Hendricks" To: Martin Blapp Subject: Re: [porting-dev] Re: Crash with Test-Document in the second run. Memory allocation problem Date: Sat, 10 Aug 2002 12:18:43 -0400 X-Mailer: KMail [version 1.4] Cc: , References: <20020810180153.H92422-100000@levais.imp.ch> In-Reply-To: <20020810180153.H92422-100000@levais.imp.ch> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200208101218.43420.kevin.hendricks@sympatico.ca> Sender: owner-freebsd-openoffice@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, > (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 Are you sure this is the right place to look for the unicode data for that string? Please do a pType ppThis If it is the unicode buffer then throw out every high byte (which should be zero) and you get the hex string: 74 53 72 61 72 57 74 69 72 65 35 20 30 2e 65 00 As the asci string. Looking this up in my ascii table gives the following nonsense: tSrarWtEre5 0.e Which looks like nonsense to me.? Please try: print * ppThis print * pStr And lets check to make sure that we are looking at the right unicode data? Kevin > (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/hi >storyoptions.cxx:916 916 m_pDataContainer->AppendItem( > eHistory, sURL, sFilter, sTitle, sPassword ); > > (gdb) print * (m_pDataContainer) > $5 = {<> = {}, > m_aPicklist = > {<_Deque_base >> = > { _M_start = {<_Deque_iterator_base> = {_M_cur = > 0x86cc790, > _M_first = 0x86cc720, _M_last = 0x86cc7a0, _M_node = > 0x81d026c}, }, > _M_finish = {<_Deque_iterator_base> = {_M_cur = > 0x86cc860, > _M_first = 0x86cc820, _M_last = 0x86cc8a0, _M_node = > 0x81d0270}, }, > _M_map = {> = {}, > _M_data = 0x81d0260}, > _M_map_size = {> = { fields>}, _M_data = 8}}, }, m_nPicklistSize = 4, > m_aHistory = > {<_Deque_base >> = > { _M_start = {<_Deque_iterator_base> = {_M_cur = > 0x81d03a0, > _M_first = 0x81d03a0, _M_last = 0x81d0420, _M_node = > 0x81d028c}, }, > _M_finish = {<_Deque_iterator_base> = {_M_cur = > 0x81d04d0, > _M_first = 0x81d04a0, _M_last = 0x81d0520, _M_node = > 0x81d0290}, }, > _M_map = {> = {}, > _M_data = 0x81d0280}, > _M_map_size = {> = { fields>}, _M_data = 8}}, }, m_nHistorySize = 100, > m_aHelpBookmarks = > {<_Deque_base >> = > { _M_start = {<_Deque_iterator_base> = {_M_cur = > 0x81d0420, > _M_first = 0x81d0420, _M_last = 0x81d04a0, _M_node = > 0x81d02ac}, }, > _M_finish = {<_Deque_iterator_base> = {_M_cur = > 0x81d0420, > _M_first = 0x81d0420, _M_last = 0x81d04a0, _M_node = > 0x81d02ac}, }, > _M_map = {> = {}, > _M_data = 0x81d02a0}, > _M_map_size = {> = { fields>}, _M_data = 8}}, }, m_nHelpBookmarkSize = 10000} > > Thanks ! > > Martin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-openoffice" in the body of the message