From owner-freebsd-openoffice Sat Aug 10 8:10:31 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 0499037B405 for ; Sat, 10 Aug 2002 08:10:18 -0700 (PDT) Received: from mail.imp.ch (mail.imp.ch [157.161.1.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 13CA243E81 for ; Sat, 10 Aug 2002 08:10:17 -0700 (PDT) (envelope-from mb@imp.ch) Received: from nbs.imp.ch (nbs.imp.ch [157.161.4.7]) by mail.imp.ch (8.12.3/8.12.3) with ESMTP id g7AFAFQx075207; Sat, 10 Aug 2002 17:10:15 +0200 (CEST) (envelope-from Martin.Blapp@imp.ch) Received: from levais.imp.ch (levais.imp.ch [157.161.4.66]) by nbs.imp.ch (8.12.3/8.12.3) with ESMTP id g7AFAFYW611098; Sat, 10 Aug 2002 17:10:15 +0200 (MES) Date: Sat, 10 Aug 2002 17:11:55 +0200 (CEST) From: Martin Blapp To: "Kevin B. Hendricks" Cc: , Subject: Re: [porting-dev] Re: Crash with Test-Document in the second run. Memory allocation problem In-Reply-To: <200208101019.47869.kevin.hendricks@sympatico.ca> Message-ID: <20020810163251.P92422-100000@levais.imp.ch> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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, FreeBSD OO.org does crash in the second run. The MacOSx port does even crash in the first run of 10erTest5b.sxw. I'm interested what other ports do. > That code does atomic increment and decrement for reference counted > strings. > No. This code is fine, I've already veryfied this. I get this error only because pStr->refCount doesn't get decremented due free() failing. soffice.bin in free(): warning: page is already free FreeBSD's free() does just issue a warning, thats why we get further with -DFORCE_SYSALLOC. Without it, we fail earlier. > > (gdb) p pStr->refCount > > $3 = 1474660693 > > > > (gdb) p pStr->length > > $4 = -326937770 This lenght still looks bugus to me ... Here is frame 3: I don't know how to preceed here ... (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 ); Current language: auto; currently c++ (gdb) list 911 const OUStringsFilter , 912 const OUStringsTitle , 913 const OUStringsPassword ) 914 { 915 MutexGuard aGuard( GetOwnStaticMutex() ); 916 m_pDataContainer->AppendItem( eHistory, sURL, sFilter, sTitle, sPassword ); 917 } 918 919 //***************************************************************************************************************** 920 // private method (gdb) p m_pDataContainer $7 = (SvtHistoryOptions_Impl *) 0x81c5700 (gdb) p m_pDataContainer->AppendItem $8 = &SvtHistoryOptions_Impl::AppendItem(EHistoryType, rtl::OUString const&, rtl::OUString const&, rtl::OUString const&, rtl::OUString const&) How can I debug that function pointer ? Martin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-openoffice" in the body of the message