From owner-freebsd-openoffice Sat Aug 10 4:36:52 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 25C3137B400 for ; Sat, 10 Aug 2002 04:36:50 -0700 (PDT) Received: from mail.imp.ch (mail.imp.ch [157.161.1.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 178FC43E42 for ; Sat, 10 Aug 2002 04:36:49 -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 g7ABalQx058106; Sat, 10 Aug 2002 13:36:47 +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 g7ABakYW645576; Sat, 10 Aug 2002 13:36:47 +0200 (MES) Date: Sat, 10 Aug 2002 13:38:27 +0200 (CEST) From: Martin Blapp To: Cc: Subject: Crash with Test-Document in the second run. Memory allocation problem In-Reply-To: <200208092032.27738.kevin.hendricks@sympatico.ca> Message-ID: <20020810133026.G92422-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 0x285ef215 in rtl_freeMemory (p=0x0) at alloc.c:1325 1325 RTL_MEMORY_ENQUEUE (&memory); (gdb) frame 0 #0 0x285ef215 in rtl_freeMemory (p=0x0) at alloc.c:1325 1325 RTL_MEMORY_ENQUEUE (&memory); (gdb) list 1320 DBG_MEMORY_VERIFY(memory); 1321 1322 /* clear 'used' bit, enqueue */ 1323 memory->m_length &= 0x7fffffff; 1324 1325 RTL_MEMORY_ENQUEUE (&memory); 1326 if (memory) 1327 { 1328 /* free memory page */ 1329 RTL_MEMORY_FREE(memory, memory->m_length); (gdb) What I don't understand. This part is only executed if p != NULL. Why is p suddenly NULL inside this function ? (gdb) p p $1 = (void *) 0x0 (gdb) p memory $2 = (struct __rtl_memory_desc_st *) 0x2e5141f8 (gdb) p memory->m_length $3 = 0 (gdb) p memory->m_blink $4 = (struct __rtl_memory_desc_st *) 0x0 (gdb) p memory->m_offset $5 = 0 (gdb) p memory->m_flink $6 = (struct __rtl_memory_desc_st *) 0x1 Huh ? We free Memory with a lenght of 0 ? Martin Martin Blapp, ------------------------------------------------------------------ ImproWare AG, UNIXSP & ISP, Zurlindenstrasse 29, 4133 Pratteln, CH Phone: +41 061 826 93 00: +41 61 826 93 01 PGP: PGP Fingerprint: B434 53FC C87C FE7B 0A18 B84C 8686 EF22 D300 551E ------------------------------------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-openoffice" in the body of the message