From owner-freebsd-openoffice Sat Aug 10 6:23:20 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 A8E8337B400 for ; Sat, 10 Aug 2002 06:23:17 -0700 (PDT) Received: from mail.imp.ch (mail.imp.ch [157.161.1.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9CDC143E42 for ; Sat, 10 Aug 2002 06:23:16 -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 g7ADNFQx066677; Sat, 10 Aug 2002 15:23: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 g7ADNEYW650692; Sat, 10 Aug 2002 15:23:15 +0200 (MES) Date: Sat, 10 Aug 2002 15:24:55 +0200 (CEST) From: Martin Blapp To: Cc: Subject: Re: Crash with Test-Document in the second run. Memory allocation problem In-Reply-To: <20020810133026.G92422-100000@levais.imp.ch> Message-ID: <20020810152027.Q92422-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 What may be wrong here ? (gdb) frame 1 #1 0x285f6889 in rtl_uString_assign (ppThis=0x86cc894, pStr=0x2b822750) at strtmpl.c:1370 1370 IMPL_RTL_AQUIRE( pStr ); (gdb) list 1365 1366 void SAL_CALL IMPL_RTL_STRINGNAME( assign )( IMPL_RTL_STRINGDATA** ppThis, 1367 IMPL_RTL_STRINGDATA* pStr ) 1368 { 1369 /* must be done at first, if pStr == *ppThis */ 1370 IMPL_RTL_AQUIRE( pStr ); 1371 1372 if ( *ppThis ) 1373 IMPL_RTL_STRINGNAME( release )( *ppThis ); 1374 (gdb) p pStr $1 = (struct _rtl_uString *) 0x2b822750 (gdb) p ppThis $2 = (struct _rtl_uString **) 0x86cc894 (gdb) p pStr->refCount $3 = 1474660693 (gdb) p pStr->length $4 = -326937770 ^^^^^^^^^ This looks very wrong to me. (gdb) p pStr->buffer $5 = {59412} (gdb) p pStr->buffer[1] $6 = 0 If I use FORCE_SYSALLOC I end with: (gdb) frame 0 #0 0x285e18e2 in osl_incrementInterlockedCount (pCount=0x2b822750) at interlck.c:81 81 __asm__ __volatile__ ( (gdb) list 76 /*****************************************************************************/ 77 oslInterlockedCount SAL_CALL osl_incrementInterlockedCount(oslInterlockedCount* pCount) 78 { 79 oslInterlockedCount nCount; 80 81 __asm__ __volatile__ ( 82 "movl $1, %0\n\t" 83 "lock\n\t" 84 "xadd %0, %1\n\t" 85 "incl %0" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-openoffice" in the body of the message